[jboss-user] [JBoss Seam] - DataModel and DataModelSelection and

ZeddMaxim do-not-reply at jboss.com
Tue Aug 29 13:13:12 EDT 2006


I've seen a few posts out there regarding this, and no one ever seems to come up with a solid answer, so I thought I'd post this in hopes someone will find it useful.

I have a simple data table set up such as in the Message List example, with a clickable link in each row (to edit that object).  No matter which row I clicked, the first item was always selected / injected.  A similar table on another page in the same application (hitting the same SFSB!) worked just fine.

Item (1) on page 13 of the Seam tutorial states:  anonymous wrote : The @DataModel annotation exposes an attribute of type java.util.List to the JSF page as an instance  of javax.faces.model.DataModel... The key to my understanding came out of when I finally realized that this meant it outjected the list.  I had my h:dataTable's value set to SFSB-name.list (so it was calling the list's getter) instead of just the outjected "#{list}".

Once I fixed this, the @DataModelSelection variable was populated perfectly.

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

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



More information about the jboss-user mailing list