2 Replies Latest reply on May 9, 2008 6:29 PM by eicki

    Modalpanel

      hey everybody good afternoon,
      I would like to know, how i do to button to works

      my code is this
      [code}
      <rich:modalPanel id="panel" width="750" height="300">

      <f:facet name="header">
      <h:panelGroup>
      <h:outputText value="Dados"></h:outputText>
      </h:panelGroup>
      </f:facet>
      <f:facet name="controls">
      <h:panelGroup>
      <h:graphicImage value="/close.png" style="cursor:pointer" id="hidelink"/>
      <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
      </h:panelGroup>
      </f:facet>


      <h:outputText value="Confira os dados: " style="font-style: italic; font-size: 1.5em"/>


      <h:outputText value="Nome:" style="font-style: italic"/>
      <h:outputText id="textnome" value="#{ususario.nome}"/>

      Sobrenome
      <h:outputText id="textsobrenome" value="#{ususario.sobrenome}"/>

      CPF
      <h:outputText id="textcpf" value="#{ususario.cpf}"/>

      Endereço
      <h:outputText id="textendereco" value="#{ususario.endereco}"/>


      <h:commandButton id="inser" value="Inserir Dados" action="#{ususario.inserir}" />





      </rich:modalPanel>

        • 1. Re: Modalpanel

           

          "MiguelCPJava" wrote:
          hey everybody good afternoon,
          I would like to know, how i do to button to works

          my code is this
          <rich:modalPanel id="panel" width="750" height="300">
          
           <f:facet name="header">
           <h:panelGroup>
           <h:outputText value="Dados"></h:outputText>
           </h:panelGroup>
           </f:facet>
           <f:facet name="controls">
           <h:panelGroup>
           <h:graphicImage value="/close.png" style="cursor:pointer" id="hidelink"/>
           <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
           </h:panelGroup>
           </f:facet>
           <table id="mainDataTable">
           <tr>
           <td> <h:outputText value="Confira os dados: " style="font-style: italic; font-size: 1.5em"/> </td> </tr><br/>
           <br/>
           <tr>
           <td> <h:outputText value="Nome:" style="font-style: italic"/></td>
           <td> <h:outputText id="textnome" value="#{ususario.nome}"/> </td></tr>
           <tr>
           <td> Sobrenome</td>
           <td> <h:outputText id="textsobrenome" value="#{ususario.sobrenome}"/> </td></tr>
           <tr>
           <td> CPF </td>
           <td><h:outputText id="textcpf" value="#{ususario.cpf}"/></td></tr>
           <tr>
           <td> Endereço </td>
           <td> <h:outputText id="textendereco" value="#{ususario.endereco}"/></td>
           </tr>
           <tr>
           <td> <h:commandButton id="inser" value="Inserir Dados" action="#{ususario.inserir}" /> </td>
          
           <td> </td>
           </tr>
          
           </table>
           </rich:modalPanel>
          


          the action of commandbutton don´t works and i don´t know what i do.


          • 2. Re: Modalpanel
            eicki

            The modal panel must define its own form as due to some ie bug it is moved to the top of the dom so buttons won't work if the panel does not define its own form.