I read in the docs that you can differentiate between muliple classes by using
the annotation injection:
| @In(name="currentUser")
| User currentUser;
|
| @In(name="assignedUser")
| User assignedUser;
|
| @In(name="requestingUser")
| User requestingUser;
|
How can I "create" these objects in my managed bean? I mean, if I have an
Entity Bean with a Seam name of "user", how do I reference a "new" user class.
| Owner information: #{user.username}
| Requesting User: #{user.username}
| Assigned to: #{user.username}
|
Obviously, this will reference the same "user" instantiation. How can I create
a NEW user instantiation, so I can do this:
| Owner information: #{currentUser.username}
| Requesting User: #{requestingUser.username}
| Assigned User: #{assignedUser.username}
|
Thanks for your advice!! I feel that this is something super simple, but I
cannot think of it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910522#3910522
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910522
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user