2 Replies Latest reply on Jun 12, 2007 7:10 AM by tuncay

    selectManyCheckbox does not rerender it's selected items ?

    tuncay

      Hi,

      I hope somebody can help on this problem.

      My problem is: first time I edit a page I get a list of select items and those items that are selected are shown. Changing the radiobutton and back to the previous radiobutton that have some selected items the checboxes are not checked it seems that it loose it's state ? even if the selectedItems list is loaded and set, why? The JSF code

      <h:outputLabel rendered="#{priceForm.selectedMatrixTypeId!=2}" for="provider" value="#{text['price.provider']}"/>
       <h:selectOneRadio id="provider" rendered="#{priceForm.selectedMatrixTypeId!=2}" value="#{priceForm.selectedProviderId}" required="true" valueChangeListener="#{priceForm.providerChanged}" immediate="true" layout="pageDirection" layoutWidth="1">
       <a4j:support event="onclick" immediate="true" reRender="service" >
       <a4j:actionparam id="priceId" value="#{priceForm.price.id}"/>
       </a4j:support>
       <f:selectItems value="#{priceForm.selectProviders}"/>
       <v:commonsValidator type="required" arg="#{text['price.provider']}"/>
       </h:selectOneRadio>
       <t:message rendered="#{priceForm.selectedMatrixTypeId!=2}" for="provider" styleClass="fieldError"/>
      
       <a4j:outputPanel id="outer">
       <a4j:outputPanel layout="none">
       <a4j:outputPanel id="inner" rendered="#{priceForm.basicPriceSelected == false}" keepTransient="true">
       <h:outputLabel for="service" value="#{text['price.service']}"/>
       <h:panelGroup>
       <h:outputText value="#{text['priceForm.service.help']}" styleClass="smallFormDescription"/>
       <f:verbatim>
       <br/>
       </f:verbatim>
       <h:selectManyCheckbox id="service" value="#{priceForm.selectedServices}" layout="pageDirection" layoutWidth="1">
       <f:selectItems value="#{priceForm.selectServices}" />
       </h:selectManyCheckbox>
       </h:panelGroup>
       <t:message for="service" />
       </a4j:outputPanel>
       </a4j:outputPanel>
       </a4j:outputPanel>
      
      


      Thanks in advance,

      //tua