[jboss-user] [JBoss Seam] - Re: Newbie Question on JSF/Seam

pete.muir@jboss.org do-not-reply at jboss.com
Fri Jun 22 05:08:59 EDT 2007


Page parameters are the best way to do this:

<s:link action="#{bean.select}" value="Select"/>
  |    <f:param name="clientId" value="#{foo.clientId}" />
  |    <f:param name="programId" value="#{foo.programId}" />
  | </s:link>

Where foo is the var in the datatable.

<page view-id="/list.xhtml">
  |    <param name="clientId" value="#{client.id}" />
  |    <param name="clientId" value="#{program.id}" />

@In Client client;
  | @In Program program;
  | 
  | public void select() {
  | }

You have injected the selected client and program (you need to make client and program available as contextual variables) - you can then put them in the session or whatever - watch out for LazyInitializationExceptions though.  Read the SeamApplicationFramework chapter for more on this approach

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

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



More information about the jboss-user mailing list