1

I have multiple forms on a page, one of which is processed when a specific button is pressed. However I have a couple of fields in this form that I don't actually want to be processed. I have this so far:

In an xhtml template

<h:form id="formX">
     <ui:insert name="formX"/>
</h:form>

in an xhtml file that uses this template

<ui:define name="formX">
    <p:commandButton process="@(#formX :not('.dontProcess')"/>

    <p:inputText.../>
    <p:inputText.../>
    <p:inputText.../>
    <p:selectOneMenu styleClass="dontProcess"/>
    <p:inputText styleClass="dontProcess"/>
</ui:define>

but the last inputText and the selectOneMenu are still processed. Is the syntax in the process attribute correct? Is it legitimate to have a jQuery :not() selector after #formX? Is there any easier way to stop these fields being processed by JSF?

Jonathan Viccary
  • 722
  • 1
  • 9
  • 27

0 Answers0