[jboss-user] [JBoss Seam] - Passing parameters in jsf method calls?

jcranwellward do-not-reply at jboss.com
Wed Apr 11 11:24:19 EDT 2007


Hello to all,

I was wondering what the syntax is for passing a parameter in a jsf method call. I have a page flow where I want to set an attribute of my bean before displaying a page:

<start-state name="start">
        
        	<action name="#{contactManager.setContactType("Registrant")}"/>
        
 </start-state>

"Registrant" is a literal string.

In the bean I have this method:

public void setContactType(String typeIn) {
	 contactType= typeIn;
  }

I think this is possible although I thin the syntax for the call is slightly different.

Thanks for all the help,

James

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036414



More information about the jboss-user mailing list