Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

managed-property problem  RSS feed

 
Lucian Smith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a managed bean:

<managed-bean>
<managed-bean-name>searchForm</managed-bean-name>
<managed-bean-class>com.mycompany.SearchForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>searchManager</property-name>
<value>#{searchManager}</value>
</managed-property>
</managed-bean>

JSF will instantiate it correctly, but it will never call the setSearchManager setter (I have a log4j info statement as the first line in setSearchManager function, nothing ever prints). #{searchManager} is a Spring bean. I have Spring's Variable Resolver in my faces config, and it works for many other managed beans, so it APPEARS it isn't Spring's Variable Resolver.. Lastly, the Spring bean is configured find because I've passed it to and used it with other Spring beans..

My question is, how do I troubleshoot this? Any suggestions?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using an IDE, have you stepped through it with a debugger? Would you mind showing us your com.mycompany.SearchForm class?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!