Dialog not working

UI Components for JSF
Post Reply
Lotfus
Posts: 46
Joined: 14 Mar 2011, 13:02
Location: Swtizerland-Lausanne

26 Apr 2011, 12:06

Hello,

I would like to use a modal dialog, as shown in the show case: http://www.primefaces.org/showcase/ui/dialog.jsf

It's not working, neither the modal neither the basic... I tried it in many places, and even with this very simple code:

Code: Select all

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:sf="http://www.springframework.org/tags/faces" xmlns:p="http://primefaces.prime.com.tr/ui"
    xmlns:sec="http://www.springframework.org/security/tags" xmlns:c="http://java.sun.com/jsp/jstl/core">

    <p:dialog header="Modal Dialog" widgetVar="widgetTemp">
        <h:outputText value="Resistance to PrimeFaces is futile!" />
    </p:dialog>

</ui:composition>

any ideas please!? Thanks.

Lotfus
Posts: 46
Joined: 14 Mar 2011, 13:02
Location: Swtizerland-Lausanne

26 Apr 2011, 12:23

Sorry I found... I didn't pay attention that I have to create a button before:

Code: Select all

    <p:commandButton value="Basic" onclick="widgetTemp.show();" type="button" />

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests