Announcement Announcement Module
Collapse
No announcement yet.
DelegatingVariableResolver does not find nested jsf beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DelegatingVariableResolver does not find nested jsf beans

    Hello,

    in my faces-config.xm I have the following configuration

    Code:
    	<application>
    		<variable-resolver>
    			org.springframework.web.jsf.DelegatingVariableResolver
    		</variable-resolver>
    	</application>
    
    	<managed-bean>
    		<managed-bean-name>UserInfoBean</managed-bean-name>
    		<managed-bean-class>nl.abz.ace.jsf.beans.UserInfoBean</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    
    		<managed-property>
    			<property-name>klantInfo</property-name>
    			<value>#{KlantInfo}</value>
    		</managed-property>
    
    	</managed-bean>
     
    	<managed-bean>
    		<managed-bean-name>ListBean</managed-bean-name>
    		<managed-bean-class>
    			nl.abz.ace.jsf.beans.ListBean
    		</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    
    		<managed-property>
    			<property-name>userInfo</property-name>
     			<value>#{UserInfoBean}</value>  
    		</managed-property>
    		<managed-property>
    			<property-name>aceAPIDelegate</property-name>
    			<value>#{aceAPI}</value>
    		</managed-property>
    
    	</managed-bean>
    Now if I put in my jsp the following:
    Code:
    <h:outputText value="#{UserInfoBean.userCommonName}"/>
    everything is OK, but using:

    Code:
    <h:outputText value="#{ListBean.userInfo.userCommonName}"/>
    I get
    Code:
    2006-10-09 17:44:03,188 ERROR [ExecuteThread: '24' for queue: 'weblogic.kernel.Default'] renderkit.RendererUtils  - Property not found - called by component : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/message_list.jsp][Class: org.apache.myfaces.custom.div.Div,Id: _id0][Class: javax.faces.component.html.HtmlOutputText,Id: userinfo_companyname]}
    I'm using spring 1.2.7 and myfaces 1.1.1. I have tried upgrading to myfaces 1.1.4, but this results in the same error.
    If I remove the DelegatingVariableResolver the longer expression also works (but of course my spring beans are not found anymore).

    Ideas anyone?

    TIA

    Wim.

  • #2
    Was this ever solved?

    Comment


    • #3
      Can you still reproduce the problem? If the problem is still there please create an issue on JIRA. Thanks.

      Comment

      Working...
      X