1 Reply Latest reply on May 17, 2007 9:16 AM by Rich Jones

    passing arguments to actions (via commandLink)

    Rich Jones Newbie

      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