Dialog Modal not working

UI Components for JSF
Post Reply
fiktion
Posts: 100
Joined: 25 Aug 2010, 17:47

14 Sep 2010, 15:04

I am trying to get a modal dialog to show up on my entire screen and nothing is coming up but there are no errors either. Is there something I am missing? I followed the example in the documentation. My code looks like this. I have also tried to place my p:dialog outside of my layout and that does not work either.

Code: Select all

<body>
      <p:layout fullPage="true">
            <p:dialog header="Help" widgetVar="help" zindex="100">
                       <h:outputText value="THIS IS A TEST FOR HELP DIALOG" />
            </p:dialog>

            <p:layoutUnit position="top" >
                    <h:panelGroup>
                               <h:form>
                                        <div id="userbar">
                                               <a href="#" onclick="help.show();">Show</a>
                                        </div>
                               </h:form>
                    </h:panelGroup>
            </p:layoutUnit>

           <p:layoutUnit position="bottom">
                   ....
           </p:layoutUnit>

           <ui:include src"./body.xhtml" />
      </p:layout>
</body>

fiktion
Posts: 100
Joined: 25 Aug 2010, 17:47

14 Sep 2010, 15:34

Got it to work. The Dialog must be put outside the p:layout and not before. It must be after the p:layout.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 28 guests