[richfaces-issues] [JBoss JIRA] Resolved: (RF-3340) tree: javax.faces.FacesException: Exception while validating component

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Mon Jan 26 06:18:44 EST 2009


     [ https://jira.jboss.org/jira/browse/RF-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski resolved RF-3340.
--------------------------------

    Fix Version/s: 3.3.1
                       (was: Future)
       Resolution: Out of Date
         Assignee: Tsikhon Kuprevich  (was: Nick Belaevski)


Works fine with 3.3.1

> tree: javax.faces.FacesException: Exception while validating component
> ----------------------------------------------------------------------
>
>                 Key: RF-3340
>                 URL: https://jira.jboss.org/jira/browse/RF-3340
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: myfaces 1.2.2
>            Reporter: Aleksej Yanul
>            Assignee: Tsikhon Kuprevich
>             Fix For: 3.3.1
>
>
> Is reproduced when in treeNode to add ajaxSingle = "true"
> 1. open tree
> 2. expand node
> 3. to move node
> 		
> <rich:tree id="tree" switchType="#{bean.switchType}" value="#{bean.data}" var="data" selectedClass="#{style.selectedClass}" styleClass="#{style.styleClass}" style="#{style.style}" highlightedClass="#{style.highlightedClass}" 
> 			nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}" changeExpandListener="#{bean.onExpand}"
> 			nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}" onselected="window.status='selectedNode: '+event.selectedNode;"
> 			onexpand="window.status='expandedNode: '+event.expandedNode" oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
> 			ajaxSubmitSelection="true" reRender="outputText, selectOneListbox" preserveModel="none" dragIndicator="treeIndicator"
> 			immediate="false" acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}"  icon="#{bean.icon}" dropListener="#{bean.processDrop}">
> 			<rich:dndParam name="treeParam" value="Tree Parameter" />
> 			<rich:dndParam name="accept" value="accept" />
> 			<rich:treeNode type="input" dropListener="#{bean.processDrop}" ajaxSingle="true"
> 				oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
> 				onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')" >
> 				<h:outputText value="#{data} : " />
> 				<h:inputText value="#{data.name}" required="true" styleClass="inputs">
> 				</h:inputText>
> 				<rich:dndParam name="nodeParam" value="Node Parameter" />
> 			</rich:treeNode>
> 			<rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
> 				<h:outputText value="#{data}" />
> 			</rich:treeNode>
> 		</rich:tree>
> ////////////////////////////////////////////////////////
> javax.faces.FacesException: javax.faces.FacesException: Exception while validating component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /Tree/Tree.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1410692482_1][Class: org.richfaces.component.html.HtmlTree,Id: tree][Class: org.richfaces.component.html.HtmlTreeNode,Id: j_id_jsp_1410692482_7][Class: javax.faces.component.html.HtmlInputText,Id: j_id_jsp_1410692482_9]}
> 	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:155)
> 	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
> 	at org.richfaces.component.UITree.invokeOnComponent(UITree.java:971)
> 	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:161)
> 	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
> 	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:161)
> 	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
> 	at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
> 	at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
> 	at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
> 	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
> 	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
> 	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.faces.FacesException: Exception while validating component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /Tree/Tree.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1410692482_1][Class: org.richfaces.component.html.HtmlTree,Id: tree][Class: org.richfaces.component.html.HtmlTreeNode,Id: j_id_jsp_1410692482_7][Class: javax.faces.component.html.HtmlInputText,Id: j_id_jsp_1410692482_9]}
> 	at javax.faces.component.UIInput.validate(UIInput.java:346)
> 	at javax.faces.component.UIInput.processValidators(UIInput.java:144)
> 	at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:658)
> 	at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
> 	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:152)
> 	... 33 more
> Caused by: org.apache.jasper.el.JspPropertyNotFoundException: /Tree/Tree.jsp(31,4) '#{data.name}' Target Unreachable, identifier 'data' resolved to null
> 	at org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
> 	at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:58)
> 	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:391)
> 	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:743)
> 	at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.getConvertedValue(HtmlTextRendererBase.java:219)
> 	at javax.faces.component.UIInput.getConvertedValue(UIInput.java:380)
> 	at javax.faces.component.UIInput.validate(UIInput.java:328)
> 	... 37 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list