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, and you're 
wondering why "cliente" isn't being injected from your form, it's because 
remoting calls need to explicitly specify any parameters that you require to be 
passed.  I.e. your login method prototype would need to be:


  |   public String login(Cliente client)
  | 

On the client side you would need to create a new Cliente object and populate 
it with the username and password, then pass this object as a parameter in your 
remote call.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985648#3985648

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985648
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to