[jboss-user] [Beginners Corner] - passing arguments to actions (via commandLink)

3po do-not-reply at jboss.com
Thu May 17 07:56:00 EDT 2007


Hi, i am using the following code to pass an object as argument to a component action method:

JSF:

<ice:commandLink action="#{noteManager.loadNotes(jobManager.job)}">
  | 	<ice:outputText value="Job Notes Exist" />
  | </ice:commandLink>

and my backing method in my noteManager component:

public String loadNotes(Job entity) throws NoSuchAlgorithmException {		
  | log.error(entity.getClass().toString());
  | }

The problem is the object i am passing is definitely of type Job.class, but it appears in the loadNotes() method as (this is what gets printed):

"org.jboss.seam.Component"

and i cannot cast it back into a Job. Any info / pointers greatly appreciated, thanks

-rich

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

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



More information about the jboss-user mailing list