[jboss-user] [JBoss Seam] - Re: Injection and remoting

sbryzak2 do-not-reply at jboss.com
Mon Nov 13 18:46:08 EST 2006


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



More information about the jboss-user mailing list