2 Replies Latest reply on Nov 22, 2010 6:36 AM by glasfeu

    rich:accordion did not post every data in M3 and M4

    glasfeu

      Hi,

       

      With a rich:accordion, only one of rich:accordionItem posts their datas at the same time. Is it normal ? I tried in M3 then in M4.

      Here is the code :

       

       

      <h:form id="testDid">
          <rich:accordion switchType="client" bypassUpdates="">
              <rich:accordionItem header="Prénom" switchType="client">
                  <h:inputText value="#{testDid.prenom}" />
                  Bean : #{testDid}
                  cid : #{testDid.conversation.id}
              </rich:accordionItem>
              <rich:accordionItem header="Nom" switchType="client">
                  <h:inputText value="#{testDid.nom}" />
                  Bean : #{testDid}
                  cid : #{testDid.conversation.id}
              </rich:accordionItem>
              <rich:accordionItem header="Autre" switchType="client">
                  accordéon 3
                  Bean : #{testDid}
                  cid : #{testDid.conversation.id}
              </rich:accordionItem>
          </rich:accordion>
          <h:commandButton action="#{testDid.valider}" title="Valider" />
      </h:form>
      

       

       

      @Named("testDid")
      @ConversationScoped
      public class TestDid implements Serializable {
      
          private static final long serialVersionUID = -2802573805357374444L;
      
          private String prenom;
          private String nom;
      
          @Inject
          private Conversation conversation;
      
          @PostConstruct
          public void init() {
              conversation.begin();
              prenom = "prenom";
              nom = "nom";
          }
      
          public void valider() {
              logger.info("valider");
          }
      
          public void setPrenom(String prenom) {
              this.prenom = prenom;
          }
      
          public String getPrenom() {
              return prenom;
          }
      
          public void setNom(String nom) {
              this.nom = nom;
          }
      
          public String getNom() {
              return nom;
          }
      
          public Conversation getConversation() {
              return this.conversation;
          }
      }
      

       

      It is the same bean, the same conversation but only one accordionItem posts their datas. As usual every of them makes a "getProperty" when the page is rendered.

       

      Thanks for your help !