1 Reply Latest reply on Nov 13, 2009 9:00 AM by Ilya Shaikovsky

    Problems with partial rendering

    Fabio Affinito Newbie

      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>


      Being the personaction.check() a method returning a timestamp. I would expect that only the first timestamp should be update when a country is selected. What did I wrong?

      Thanks in advance.

      F.A.