This content has been marked as final.
Show 1 reply
-
1. Re: Newbie Question on JSF/Seam
pmuir Jun 22, 2007 5:08 AM (in response to rvaneperen)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