p:confirm display empty messages

UI Components for JSF
Post Reply
fante76
Posts: 5
Joined: 29 May 2014, 14:43

28 Aug 2014, 16:38

Hi to everyone.

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>
The referenced backing bean is the following

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;
	}

}

Well, the strange effect is, after loading the page:
  • 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.
I've tryed to insert definition of p:confirmDialog inside form, but nothing change.

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.

fante76
Posts: 5
Joined: 29 May 2014, 14:43

01 Sep 2014, 09:56

I've created an issue for this bug, after testing it with latest primeFaces release 5.0.6.

Issue number is 7354.
https://code.google.com/p/primefaces/is ... il?id=7354

ascatem
Posts: 18
Joined: 23 Feb 2014, 11:06

08 Sep 2014, 12:06

I've the same issue, anyone?

Vsevolod Golovanov
Posts: 10
Joined: 12 May 2014, 16:09

24 Sep 2014, 17:49

Same problem in PF 5.0.7.
Is there a workaround?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests