I too have a bit of an issue with putting @Name, @Scope and @Roles in entity beans. That
said, I wouldn't want Spring-style external XML declarations either.
Would it be possible to have a configurable naming strategy? The default would be the
conventional "same as ClassName but lowercase first char", since most people
seem to go with that.
Another way around this would be to always reference entity beans via property accessors
on the JSF action classes. (I don't have an issue using @Name/@Scope in the action
class.) So instead of:
#{user}
One would use:
#{myActionBean.user}
Then you can just use bijection within the managed beans to get entity beans in and out of
context.
Opinions?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967027#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...