[jboss-user] [JBoss Seam] - Re: ManyToOne OneToMany

jknotzke do-not-reply at jboss.com
Thu Aug 9 10:48:30 EDT 2007

"david.spark" wrote : I don't use seam-gen much so can't really imagine that page :-)
  | It seems like you're passing the athleteID to workoutList.xhtml. That's not the same as passing an instance of athlete, so unless something happens in workoutList.xhtml to convert the ID back to an instance of Athlete there's no 'athlete' available to @In. What does workoutList.xhtml do with the ID?
  | What is athlete.java? If it's an entityBean then @Out won't do much there.

   Ah ha, well i can confirm it's not doing much! ;-)

   athlete.java is an Entity Bean.
   Essentially, what I am trying to do is pass a particular athlete that was chosen via a web page to another webpage that then passes it to a statless session bean. You see creating a workout is not done via a form. It's done by parsing a csv file. The only user intervention is in uploading this csv file.

    So I have an stateless session bean that uploads the file, parses it and then persists it.

    The problem is that I need to associate the athlete with the workout. So i need a reference to the chosen athlete.

    Any ideas ?



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

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

More information about the jboss-user mailing list