[jboss-user] [JBoss Seam] - Re: s:link + method parameter

damianharvey do-not-reply at jboss.com
Thu Jan 24 17:55:00 EST 2008


This has been discussed on this forum a lot. As Pete says in section 31.1.2 of the doc linked to, if you want to use s:link or s:button inside an iterative component then the list that the iterative component uses must be annotated with @DataModel.

In your case your "cat" bean will be something like:
  | @DataModel
  | List<Question> questionList = new ArrayList<Question>();
  | but note that this will outject a context variable called "questionList", so  your datatable will have to refer to it like:<h:dataTable styleClass="dataTable" columnClasses="categoryName" var="question" value="#{questionList}"> (note that the value attribute has changed)

Cheers,

Damian


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

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



More information about the jboss-user mailing list