Validation error with different result in PF 11 and PF 14 #3423
Unanswered
AndrewChurchill1970
asked this question in
PrimeFaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
Problem: After validation failed the bean value is not shown anymore in p:dialog.
steps: open dialog, default value of bean is shown, delete content of inputfield, press OK, validation error caused, press cancel, open dialog again => no bean value shown in inputfield (in PF 11 the bean value has been shown)
xhtml-page:
<h:head>
<title>PF Validation Problem</title>
</h:head>
<h:body id="body">
<h:form id="baseForm">
<p:commandButton process="@this" title="open dialog" update="carId" onclick="PF('dlgIdWidget').show();" />
</h:body>
bean:
public class TestView implements Serializable
{
private static final long serialVersionUID = 4290918565613185179L;
private String car = new String();
}
web.xml:
primefaces.RESET_VALUES
false
What we tried:
if we use return true instead of return false in onclick() =>
onclick="PF('dlgIdWidget').hide(); return true;"
it works with some sideeffects:
INFO:
In PF 11 it works in both cases (true or false for that parameter) =>
primefaces.RESET_VALUES
Has anyone an idea or a solution for our problem?
Beta Was this translation helpful? Give feedback.
All reactions