Dialog problems with PF Layout

UI Components for JSF
Post Reply
User avatar
bardu
Posts: 293
Joined: 30 Dec 2009, 08:27
Location: Canada

19 Jan 2010, 18:26

When using PF Layout for the page layout and setting the Dialog attributes fixedCenter= true or x,y to some valid values the Dialog component doesn't show up.
JSF-2.0, mojarra-2.1 | PrimeFaces-3.0-M1 | GFv3.1 | NetBeans 7 | Ubuntu 11.04
www.yukonlive.ca
www.yukonlive.de

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Jan 2010, 12:32

Any javascript errors?

User avatar
bardu
Posts: 293
Joined: 30 Dec 2009, 08:27
Location: Canada

21 Jan 2010, 18:35

No, Firebug doesn't show any errors. However in the browser status bar the message "Waiting for localhost ..." is shown.

Here is my code:

Code: Select all

<h:panelGrid>
       <a href="#" onclick="dlg.show()">Forgot Password?</a>
       <p:dialog header="Enter Email Address" width="205px" height="140px" widgetVar="dlg" visible="false" fixedCenter="true" >
              <h:form prependId="false">
                   <h:panelGrid >
                           <h:outputLabel for="emailAddress" value="Email Address:" />
                            <h:inputText styleClass="input-field" maxlength="50" size="20" id="emailAddress" value="#{Bean.emailAddress}" />
                   </h:panelGrid>
                   <h:panelGrid width="100%" style="text-align: center; vertical-align: middle; margin-top: 10px">
                             <p:commandButton value="Submit" actionListener="#{Bean.recoveryAction}"  oncomplete="dlg.hide();"/>
                   </h:panelGrid>
             </h:form>
       </p:dialog>
</h:panelGrid>
JSF-2.0, mojarra-2.1 | PrimeFaces-3.0-M1 | GFv3.1 | NetBeans 7 | Ubuntu 11.04
www.yukonlive.ca
www.yukonlive.de

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Jan 2010, 13:28

Can you try same dialog on another page that has no layout so we can understand it's a problem with layout. Also try setting zindex attribute of dialog to a high value 100.

User avatar
bardu
Posts: 293
Joined: 30 Dec 2009, 08:27
Location: Canada

22 Jan 2010, 17:33

The posted dialog code works fine on a "normal" page. For now I have given up using PF Layout, because I run in to some issues I haven't the time to investigate solutions. Because I have decided to use PrimeFaces for all my future web and mobile web apps I have already a steep learning curve on CSS and JavaScript ;)
JSF-2.0, mojarra-2.1 | PrimeFaces-3.0-M1 | GFv3.1 | NetBeans 7 | Ubuntu 11.04
www.yukonlive.ca
www.yukonlive.de

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests