Class SkipValidators

  • All Implemented Interfaces:

    public class SkipValidators
    extends TagHandler

    The <o:skipValidators> taghandler allows the developer to entirely skip validation when executing an UICommand or ClientBehaviorHolder action. This taghandler must be placed inside an UICommand or ClientBehaviorHolder component (client behavior holder components are those components supporting <f:ajax>).


    For example, when adding a new row to the data table, you'd like to not immediately validate all empty rows.

         <h:dataTable value="#{bean.items}" var="item">
                 <h:inputText value="#{item.value}" required="true" />
         <h:commandButton value="add new row" action="#{bean.add}">
             <o:skipValidators />
         <h:commandButton value="save all data" action="#{}" />
         <h:messages />

    Note that converters will still run and that model values will still be updated. This behavior is by design.

    Michele Mariotti, Bauke Scholtz