I have a component of type Dialog:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:body>
<composite:interface>
</composite:interface>
<composite:implementation>
<p:dialog modal="true" widgetVar="statusDialog" showHeader="false"
draggable="false" closable="false" resizable="false">
<p:graphicImage value="#{msg.pbpfBarraAjax}" />
</p:dialog>
</composite:implementation>
</h:body>
</html>
Code: Select all
<p:commandButton value="#{msg.login}" onclick="statusDialog.show()" action="#{loginBean.logon}" image="ui-icon ui-icon-unlocked" ajax="false" />
What am I doing wrong?