Reply To: Ajax

Splash Forums Rewrite Users Ajax Reply To: Ajax

#27039

Andreu
Participant

on 2nd page have filter

        <!--FILTER-->
        <h:form id="detailedFilter">
            <p:growl id="filter" showDetail="true" />
            <p:panel header="-= FILTER =-" style="margin-bottom:10px;">
                <p:panelGrid id="default" 
                             columns="2" >
                    <p:outputLabel for="category" 
                                   value="Category: " />
                    <p:selectOneMenu id="category" 
                                     value="#{searchFilterController.CATEGORY}" 
                                     style="width:300px">
                        <p:ajax listener="#{searchFilterController.onCategoryChange()}"
                                update="@form" />
                        <f:selectItem itemLabel="" 
                                      itemValue="" 
                                      noSelectionOption="true" />
                        <f:selectItems value="#{searchFilterController.CATEGORIES}" />
                    </p:selectOneMenu>

                    <p:outputLabel for="autoMark" 
                                   value="Mark: " />
                    <p:selectOneMenu id="autoMark" 
                                     value="#{searchFilterController.AUTO_MARK}" 
                                     style="width:300px">
                        <p:ajax listener="#{searchFilterController.onAutoMarkChange()}"
                                update="autoModel" />
                        <f:selectItem itemLabel="" 
                                      itemValue="" 
                                      noSelectionOption="true" />
                        <f:selectItems value="#{searchFilterController.AUTO_MARKS}" />
                    </p:selectOneMenu>
                </p:panelGrid>

                <p:commandButton value="Submit" 
                                 update="filter" 
                                 actionListener="#{searchFilterController.displayLocation}" 
                                 icon="ui-icon-check" 
                />
            </p:panel>
        </h:form>
  • This reply was modified 6 years, 9 months ago by  Andreu.
  • This reply was modified 6 years, 9 months ago by  Andreu.