[richfaces-issues] [JBoss JIRA] (RF-13785) Validation inside popupPanel is ignored when form is submitted

Cody Lerum (JIRA) issues at jboss.org
Tue Aug 19 15:43:31 EDT 2014


    [ https://issues.jboss.org/browse/RF-13785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994094#comment-12994094 ] 

Cody Lerum edited comment on RF-13785 at 8/19/14 3:43 PM:
----------------------------------------------------------

[~michpetrov]

I just started picking up an NPE on rev e926ef568c08ffe10fc63ab3c2ec077147b070d3

{code}
 at org.richfaces.context.ExtendedPartialViewContext.detectRenderAll
    at org.richfaces.context.ExtendedPartialViewContext.isRenderAll
    at com.sun.faces.application.NavigationHandlerImpl.updateRenderTargets
    at com.sun.faces.application.NavigationHandlerImpl.handleNavigation
    at com.sun.faces.application.NavigationHandlerImpl.handleNavigation
    at com.ocpsoft.pretty.faces2.application.PrettyNavigationHandler.handleNavigation
    at org.ocpsoft.rewrite.faces.RewriteNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.config.view.navigation.ViewConfigAwareNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.scope.viewaccess.ViewAccessScopedAwareNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper.handleNavigation
    at com.sun.faces.application.ActionListenerImpl.processAction
    at org.apache.deltaspike.jsf.impl.config.view.ViewControllerActionListener.processAction
    at org.apache.deltaspike.jsf.impl.listener.action.DeltaSpikeActionListener.processAction
    at javax.faces.component.UICommand.broadcast
    at javax.faces.component.UIViewRoot.broadcastEvents
    at javax.faces.component.UIViewRoot.processApplication
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute
    at com.sun.faces.lifecycle.Phase.doPhase
    at com.sun.faces.lifecycle.LifecycleImpl.execute
    at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute
    at javax.faces.lifecycle.LifecycleWrapper.execute
    at javax.faces.webapp.FacesServlet.service
    at io.undertow.servlet.handlers.ServletHandler.handleRequest
{code}


was (Author: clerum):
[~michpetrov]

I just started picking up an NPE on rev e926ef568c08ffe10fc63ab3c2ec077147b070d3

 at org.richfaces.context.ExtendedPartialViewContext.detectRenderAll
    at org.richfaces.context.ExtendedPartialViewContext.isRenderAll
    at com.sun.faces.application.NavigationHandlerImpl.updateRenderTargets
    at com.sun.faces.application.NavigationHandlerImpl.handleNavigation
    at com.sun.faces.application.NavigationHandlerImpl.handleNavigation
    at com.ocpsoft.pretty.faces2.application.PrettyNavigationHandler.handleNavigation
    at org.ocpsoft.rewrite.faces.RewriteNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.config.view.navigation.ViewConfigAwareNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.scope.viewaccess.ViewAccessScopedAwareNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandler.handleNavigation
    at org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandlerWrapper.handleNavigation
    at com.sun.faces.application.ActionListenerImpl.processAction
    at org.apache.deltaspike.jsf.impl.config.view.ViewControllerActionListener.processAction
    at org.apache.deltaspike.jsf.impl.listener.action.DeltaSpikeActionListener.processAction
    at javax.faces.component.UICommand.broadcast
    at javax.faces.component.UIViewRoot.broadcastEvents
    at javax.faces.component.UIViewRoot.processApplication
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute
    at com.sun.faces.lifecycle.Phase.doPhase
    at com.sun.faces.lifecycle.LifecycleImpl.execute
    at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute
    at javax.faces.lifecycle.LifecycleWrapper.execute
    at javax.faces.webapp.FacesServlet.service
    at io.undertow.servlet.handlers.ServletHandler.handleRequest

> 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.Alpha3, 4.5.0.Beta1
>            Reporter: Juraj Húska
>            Assignee: Michal Petrov
>            Priority: Blocker
>             Fix For: 4.5.0.Beta1
>
>
> 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)



More information about the richfaces-issues mailing list