-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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>
Asked: 2012-06-20 07:50:13 +0800
Seen: 90 times
Last updated: Jun 20 '12