I can't seem to get a dialogue and growl tag to render correctly. It just shows as the top line of the page as opposed to a pop up dialogue (I have attached a screen shot). It also never hits the bound method on the backing bean.
Here is the code for the page. Please let me know if you need to see something else.
Facelets Template
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view contentType="text/html"
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:a="http://richfaces.org/a4j"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:p="http://primefaces.prime.com.tr/ui">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>#{globalPropertyService.applicationName}</title>
<link rel="shortcut icon" href="#{request.contextPath}/favicon.ico" />
<a:loadStyle src="resource:///stylesheet/theme.xcss" />
<a:loadStyle src="/stylesheet/theme.css" />
<ui:insert name="head" />
<p:resources />
</head>
<body>
<h:form id="idleMonitorForm">
<p:dialog header="#{messages.admin_idleMonitorHeader}"
widgetVar="idleDialog"
modal="true"
fixedCenter="true"
close="false"
rendered="#{identity.loggedIn}">
<h:outputText value="#{messages.admin_idleMonitorMessage}" />
</p:dialog>
<p:idleMonitor timeout="10000"
onidle="idleDialog.show();"
onactive="idleDialog.hide();"
idleListener="#{userSession.idleListener}"
update="idleListenerMessage"
rendered="#{identity.loggedIn}"/>
<p:growl id="idleListenerMessage"
showDetail="true"
sticky="true" />
</h:form>
<ui:include src="menu.xhtml">
<ui:param name="projectName" value="#{globalPropertyService.applicationName}" />
</ui:include>
<div class="body">
<h:messages id="messages" globalOnly="true" styleClass="message"
errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
rendered="#{showGlobalMessages != 'false'}" />
<ui:insert name="body" />
</div>
<div class="footer">
Powered by <a href="http://www.primefaces.org">PrimeFaces</a> and <a href="http://jboss.com/products/seam">Seam</a>
</div>
</body>
</html>
</f:view>[/code]
Problem with IdleMonitor and Dialogue/Growl
-
- Posts: 30
- Joined: 13 Oct 2010, 07:09
- Location: Herriman, UT, USA
Ray Van Eperen
JBoss 7
Mojarra 2.1.21
PrimeFaces 5
JBoss 7
Mojarra 2.1.21
PrimeFaces 5
-
- Information
-
Who is online
Users browsing this forum: No registered users and 54 guests