I have a JSF file with a rather large form, the form consists of 3 parts: user data (a set od calendars and data inputs), user items (a data table and a small table with some inputs and a button that adds a new entry based on the information provided in the small table), others (something like user data). I have one huge and every part is a nested (because for example when pressing the "add item" button I want to validate it).
But when I press the "register" button which is supposed to handle the whole huge form (all 3 parts) is there a way to skip a single nested ? Because while registering a new user I don't really need to validate the fields in the data table which is used to add new items. So basically given something like:
<h:form>
<a4j:region>
<a4j:region>
</a4j:region>
<a4j:region id="skipMe">
</a4j:region>
<a4j:region>
</a4j:region>
</a4j:region>
<a4j:commandButton value="Register" action="#{bean.someAction}"/>
</h:form>
Is there a way to skip the validation of all the components in the region with the "skipMe" id when we click the commandButton?