7 Replies Latest reply on Jun 12, 2008 3:06 PM by lgweb

    ModalPanel question?

    lgweb

      Setting the ModalPanel shown to be shown at the top of the page?

        • 1. Re: ModalPanel question?

          Did you read the documentation?

          • 2. Re: ModalPanel question?
            lgweb


            Yes I looked at documentation and saw the property and put the property top = "center-left" in fact not know which values the property accepts top :( .
            thanks.

            • 3. Re: ModalPanel question?

              why not top="0" ?

              • 4. Re: ModalPanel question?
                lgweb

                Modalpanel this with my top and left = 1 ,
                see this as being presented the ModalPanel:

                http://www.4shared.com/file/51074631/da88d305/Sergey.html?

                • 5. Re: ModalPanel question?

                  if you have a FireBug, look at the top level tag of the modal panel. It should be something like:

                  <div id="........" class="dr-mpnl-panel rich-mpnl_panel" style=".......">

                  What is inside the style?

                  • 6. Re: ModalPanel question?
                    lgweb

                    my ModalPanel defined this way:

                    <rich:modalPanel id="loadCliente" autosized="true" top="1" left="1">
                     <f:facet name="header">
                     <h:outputLabel value="#{msg.cadastrarcliente}"/>
                     </f:facet>
                     <f:facet name="controls">
                     <h:graphicImage value="/images/BOTOES/cancel.png" width="20" height="20"styleClass="imagem"
                     style="cursor:pointer" onclick="Richfaces.hideModalPanel('loadCliente')" />
                     </f:facet>
                     <center>
                     <c:import url="/view/cliente/modal.jsp"></c:import>
                     </center>
                    </rich:modalPanel>
                    


                    inside it has a <c:import.........> it is the content of the panel, in this case the content within a (<f:subview>) will be that this is what is causing this unwanted effect ?

                    • 7. Re: ModalPanel question?
                      lgweb

                      sergey solved the problem was a lack of small lack of attention on my part was calling the modal panel thus:
                      oncomplete = "Richfaces.showModalPanel ( 'loadCliente' (width: 450, top: 200))"
                      Thank you for your help and forgive me for the lack of attention.
                      hugs.