Maybe I've found a bug.
This is the code implementing a simple page, in a very new clean project.
Code: Select all
<!DOCTYPE html>
<html xmlns="http://www.w3c.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui">
<h:head></h:head>
<h:body>
<h:form id="myform">
<p:outputPanel id="pnl1">
<p:outputLabel id="lbl1" value="Name:" />
<p:inputText id="nametxt" value="#{testBck.name}" />
<p:commandButton id="namebtn" partialSubmit="true" process="@this,nametxt" update="@form" value="DoPartial"
type="submit" action="#{testBck.doAction}">
</p:commandButton>
<h:outputText id="result" value="#{testBck.name}"/>
<p:spacer width="20"/>
<p:commandLink id="second" action="#{testBck.doAction}" partialSubmit="true" value="Open Confirm">
<p:confirm header="Confirm" message="Do you confirm?"/>
</p:commandLink>
</p:outputPanel>
</h:form>
<p:confirmDialog id="globalConfirm" widgetVar="globalConfirm" global="true">
<p:commandButton id="yesBtn" value="Yes" type="button" style="float:left" styleClass="ui-confirmdialog-yes"/>
<p:commandButton id="noBtn" value="No" type="button" style="float:right" styleClass="ui-confirmdialog-no"/>
</p:confirmDialog>
</h:body>
</html>
Code: Select all
package com.smi.test.bck;
public class TestBck {
public String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String doAction() {
return null;
}
}
- IF I just click the link OpenConfirm then confirm dialog appear correctly.
IF I first perform a partial submit and rendering clicking button DoPartial and then I click the link OpenConfirm, confirm dialog displays with empty header and empty message.
IF I do both steps in order, confirm dialog is correct.
Is this a bug or is this a wrong use?
Thanks to everybody whould ask the post.
TechnicalInfo
PrimeFaces 5.0.6
JSF 2.2 by MyFaces2.2
Tomcat 7.0.37
Oracle jdk 1.7.0_55
Xubuntu 14.04
Firefox 31.0
Chrome 36.0.1985.143
If needed I can upload the eclipse project, about 13MB.