Hi all,
I have a problem of partial rendering. When I select a value from a combo box (and I send that value to a listener) every part of the page is rerendered, even if I defined the reRender and limitToList tag.
<ui:define name="body"> <h:form id="personx" styleClass="edit" style="width:1400px;margin:0 auto;"> <h:panelGrid id="grid_anagrafica" columns="1" style="xwidth:500px;"> <f:facet name="header">Personal</f:facet> <a:region> <s:decorate id="birthCountryField" template="layout/edit.xhtml"> <ui:define name="label">Birth State</ui:define> <h:selectOneMenu value="#{personHome.instance.birthCountry}" required="true" valueChangeListener="#{personaction.birthCountry}" onchange="submit()" reRender="grid_anagrafica" limitToList="true"> <s:selectItems value="#{countryList.resultList}" var="country" label="#{country.name}" /> <s:convertEntity /> </h:selectOneMenu> </s:decorate> </a:region> <h:outputText value="Check GRID_ANAGRAFICA #{personaction.check()} " /> </h:panelGrid> <h:panelGrid id="grid_datsanit" columns="1" style="xwidth:500px;"> <f:facet name="header">Dat Sanit</f:facet> <h:outputText value="Check GRID_DATSANIT #{personaction.check()}" /> </h:panelGrid> </h:form> </ui:define> </ui:composition>
h:selectOneMenu - does not provide any ajax functionality. It has no reRender nor limitToList. And calling submit() - you just sending normal request which causes full page reload. Read about a4j:support usage.