Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF-EL  RSS feed

 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi *

I would like to bind the string value in an object. Quite simple but I am having problems when I accessing sub-object properties, for instance:


#{user.confirmPassword} <--- works

#{userAddCommand.user.password} <--- fails

The userAddCommand object has all the relevant get/set properties to access User so I was hoping this would just work, and that I would be able to drill down to sub object properties.

Am I missing something, do I need to write my own resolver to solve this?

NOTE: I am intergrating this with Spring Web Flow

regards
[ December 06, 2006: Message edited by: James Clinton ]
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ensure that you have getUser() / setUser() methods in userAddCommand bean and then getPassword()/ setPassword() methods in user bean.

If you have then submit the code where you are trying to use this JSF EL expression
 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the basics are in place.

I think the problem is to do with SWF as this is managing my beans.
 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem was in spring config.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!