7 Replies Latest reply on Jul 10, 2009 8:37 AM by John Who

    problems with modal panel

    John Who Newbie

      Hi everybody,

      I'm trying to add a modal panel to my webapp but I'm still having some problems with my modal panel.

      I want to submit some form-informations of the modal panel so I tried to reproduce this example(http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/rich_modalPanel.html)

      This is my code:

      <html>
      <head></head>
      <body>
      <f:view>
      
      (...)
      <f:subview>
      <h:form>
      
      (...)
      <rich:modalPanel id="kommentar">
       <f:facet name="header">
       <h:outputText value="What ever..." />
       </f:facet>
       <f:facet name="controls">
       <h:commandLink value="Close" style="cursor:pointer" onclick="Richfaces.hideModalPanel('kommentar')" />
       </f:facet>
       <p>
       <br>blabla:<br><br>
       <h:inputTextarea value="#{mb.newKommentar}" cols="40" rows="5" />
       </p>
       <h:form>
       <h:commandButton value="Kommentar erfassen" actionListener="#{mb.anzeigeKontakt}" />
       <h:commandLink actionListener="#{mb.anzeigeKontakt}" value="Test" />
       </h:form>
      </rich:modalPanel>
      (...)
      
      </h:form>
      </f:subview>
      (...)
      
      </f:view>
      </body>
      </html>
      


      (The bold code was just an attempt of an already working link)
      In both cases I don't reach my action-Method in my managed bean.

      Can anybody help me?
      Thanks in advance!