Dialog problems with PF Layout
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
www.yukonlive.ca
www.yukonlive.de
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Any javascript errors?
No, Firebug doesn't show any errors. However in the browser status bar the message "Waiting for localhost ..." is shown.
Here is my code:
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
www.yukonlive.ca
www.yukonlive.de
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
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
www.yukonlive.ca
www.yukonlive.de
-
- Information
-
Who is online
Users browsing this forum: No registered users and 60 guests