Is it possible to inject object that is outjected from a stateless ejb? I've
been having this problem for a couple of days now and really hope to get a
solution here.
I have a stateless ejb which is triggered from a bookmarked url. here is what
it looks like:
| @Stateless
| @Name("shopAction")
| public class ShopAction ...
| {
| @RequestParameter
| String id;
|
| @Out
| List items;
|
| public void showShop(){
| items=getShopItems(id);
| }
|
| }
|
As you can see it outject items to the jsf page. in my jsf page, each item has
got a checkbox so user can tick the boxes and click "Buy now" to submit the
request. Here I have a stateful bean which injects items, so it know what items
the user has chosen.
| @Stateful
| @Name("bookAction")
| public class ShopAction ...
| {
|
| @In(scope=Conversation)
| List items;
|
| @Begin
| public String buyNow(){
| List selectedItem=getSelected(items);
| ....
| }
| }
|
The code above doesn't work because Seam doesn't inject object from previous
stateless operation.
Is there anyway to pass outjected object from a stateless ejb to its following
converstaion?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946479#3946479
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946479
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user