3 Replies Latest reply on Jun 12, 2007 11:03 AM by Tuncay Altun

    Plz help, <a4j:outputPanel problem

    Tuncay Altun Newbie

      Hi all,

      I'm newbie to a4j. I have a big big problem.

      1. First time an edit page is loaded a <h:selectManyCheckbox with some selectItems are loaded and checkboxes are selected for given list of selectedItems. Thats fine.

      I have 2 radiobuttons. Depend on what radiobuttons is selected an action reloads and rerender a set of new checkboxes. After changing the list of checkboxes and back to initial list of checkboxes the checkboxes are not longere checked ?

        • 1. Re: Plz help, <a4j:outputPanel problem
          Tuncay Altun Newbie

          Forgot to write second prob. about outputPanel.

          I have a page with a <h:panelGrid columns="3"...



          How can I

          <h:panelGrid id="PanelGrid" columnClasses="formDescription, formValue, formError" columns="3">
          
          <h:outputLabel for="name" value="#{text['price.name']}"/>
           <h:inputText id="name" value="#{priceForm.price.name}" required="true">
           <v:commonsValidator type="required" arg="#{text['price.name']}"/>
           <f:validateLength maximum="50"/>
           </h:inputText>
           <t:message for="name"/>
          
          
          HOW CAN BELOW CODE BE ALLIGNED WITH ABOVE IN THE PANEL GRID WITH 3 COLUMNS??????
          
          <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>
          
          
          
          
          
          


          • 2. Re: Plz help, <a4j:outputPanel problem
            Adrian Mitev Master

            What's the scope of priceForm.selectedServices ?