[
https://issues.jboss.org/browse/RF-13785?page=com.atlassian.jira.plugin.s...
]
Juraj Húska updated RF-13785:
-----------------------------
Steps to Reproduce:
# It can be reproduced on showcase as there are such popups
# load showcase from Openshift:
http://showcase-latest.richfaces.org/richfaces/component-sample.jsf?demo=...
# click on "_Show popup_" button
# write into name input e.g.: "_a_"
# click on the "_Save_" button
# see that the panel is closed, even when there are validation errors
was:
# It can be reproduced on showcase as there are such popups
# deploy showcase, and, load e.g.:
http://localhost:8080/showcase/richfaces/component-sample.jsf?demo=focus&...
# click on "_Show popup_" button
# write into name input e.g.: "_a_"
# click on the "_Save_" button
# see that the panel is closed, even when there are validation errors
Validation inside popupPanel is ignored when form is submitted
--------------------------------------------------------------
Key: RF-13785
URL:
https://issues.jboss.org/browse/RF-13785
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-validators
Affects Versions: 4.5.0.Beta1
Reporter: Juraj Húska
Priority: Blocker
Consider please a form with multiple inputs inside {{popupPanel}}, which is configured to
hide when there are no validation issues.
*The issue is:* If the form is submitted e.g. with {{a4j:commandButton}}, then it hides
even when there are some validation issues.
{{PopupPanel}} has set {{oncomplete}} attribute to:
{code:JavaScript}
oncomplete="if (!#{facesContext.validationFailed}) {
#{rich:component('popup')}.hide(); } "
{code}
{{facesContext.validationFailed}} is wrongly evaluated always to {{false}}.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)