0

need to use Databinder.saveall to validate only some component in the first tab but it validate all

asked 2012-06-20 07:50:13 +0800

dearest555 gravatar image dearest555
111

I have 2 tab panel and I would like to validate only components in the first tab panel

I use validate method

public void validateAll()
{
try
{
binder.saveAll();
}
catch(WrongValueException e)
{
formValidated = false;
throw e;
}

}

form.zul
<tabbox id= "tabBox" width="100%" >
<tabs>
<tab id="requesterInfoTab" label="Requester Info" visible="true" selected="TRUE"/>
<tab id="productInfoTab" label="Product EHSR Info" visible ="true"/>
</tabs>
<tabpanels>
<tabpanel>
<grid >
<rows>
<row>
Stock :
<stockbox id="stock" readonly="@{formCtrl.processStarted}" value="@{formCtrl.document.stock, converter=com.mmm.workflow.ui.StockTypeConverter, save-when='self.onChange',access=both}" constraint="${stc}"/>
</row>
</rows>
</grid>
</tabpanel>
<tabpanel>
<grid >
<rows>
<row>
Government Name:
<textbox id="government" readonly="@{formCtrl.processStarted}" value="@{formCtrl.document.governmentname, save-when='self.onChange'}" constraint="no empty:Please insert Government Name" width="300px" />
</row>
<row>
Status:
<combobox width="300px" id="processstatus" readonly="true" value="@{formCtrl.document.processstatus,converter=com.mmm.workflow.ui.ProcessStatusConverter, save-when='self.onChange'}" constraint="no empty:Please select Status" >
</combobox>
</row>
</rows>
</grid>
</tabpanel>

delete flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-06-20 07:50:13 +0800

Seen: 90 times

Last updated: Jun 20 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More