Thank you very much!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3986094#3986094
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3986094
___
jboss-user mailing list
Thank you very much for the fast reply.
sbryzak2 wrote : The login() method in your example is clearly intended to be
invoked within a JSF context - it adds messages via FacesMessages and returns
an action string. Remoting is not intended to be used to call action methods
such as this.
|
gllambi wrote :
| I'm new to Remoting and Ajax, can you give me a good example when to use it?
|
It's hard to give a definitive answer, because I'm sure there's some usage
scenarios that I haven't even thought of yet. In general, you should use it
when your page can benefit from making a
Injection should work just fine. Can you post a code sample?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985125#3985125
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985125
sbryzak2 wrote : Injection should work just fine. Can you post a code sample?
Here is the Session Bean
| package org.seam.ejemplo.login.session;
|
| import java.util.List;
|
| import javax.ejb.Stateless;
| import javax.persistence.EntityManager;
| import
The login() method in your example is clearly intended to be invoked within a
JSF context - it adds messages via FacesMessages and returns an action string.
Remoting is not intended to be used to call action methods such as this.
If however this is just an experiment to see how remoting works,