7 Replies Latest reply on May 15, 2008 9:10 AM by titou09

    render modalPanel after the setters have been called on the

    titou09

      We would like to display a modal panel AFTER the setters are called on the backing bean, basically:


      - the users display the page and enters some text in 2 inputText fields
      - then he clicks on the "afficher" button that ideally should :
      - perform a post to the server and trigger the setters on the BB to set the value freshly entered, in the BB
      - when the call to the server comes back, display the modalPanel that will fetch the data from the BB (Call the getters)

      The code below does not work, the modal panel does not popup. :
      - is it possible to do that?
      -what's wrong with the following code?
      ...
      <h:inputText id="ajoutTitre" value="#{sectionDonnees.titreSection}" size="50" maxlength="50" />
      ...
      <h:inputText id="ajoutTextet" value="#{sectionDonnees.textetSection}" size="50" maxlength="50" />
      ...
      
      <rich:modalPanel id="panel" width="350" height="100">
       <f:facet name="header"><h:outputText value="Modal Panel"/></f:facet>
       <table class="detail">
       <tr><td><h:outputText id="previewTitre" value="#{sectionDonnees.previewTitre}" /></td></tr>
       <tr><td><h:outputText id="previewTexte" value="#{sectionDonnees.previewTexte}" /></td></tr>
       </table>
      </rich:modalPanel>
      
      <a4j:commandButton id="afficher" value="afficher" >
       <rich:componentControl for="panel" event="oncomplete" attachTo="afficher" operation="show" />
      </a4j:commandButton>