[jboss-user] [JBoss Seam] - Re: Action argument is null when it shouldn't be null

fmars do-not-reply at jboss.com
Mon Jul 16 20:38:26 EDT 2007


i have the same problem in a different way. The parameter passed to method is null.

i have a <s:link> in a dataTable :

<rich:dataTable value="#{genes}" var="gene" ....> ....
  | <s:link action="#{tableviewer.displayTargetSequences(gene)}"> ...</s:link>
  | .....</rich:dataTable>

tableviewer is stateless session bean for outjection the parameter and redirection.

@Stateless
  | @Name("tableviewer")
  | public class TableViewerAction implements ITableViewer{    
  | @Out private Gene selectedGene;
  |     
  | public TableViewerAction() {}
  |     
  | public String displayTargetSequences(Gene gene) {
  |         selectedGene = gene;
  |         return "/targetSequenceViewer.xhtml";
  |    }
  | }

This bean is used only here and constructed probably right after the user clicked on it. Is this the problem?

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

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



More information about the jboss-user mailing list