I got rid of all my code that used @datamodelselection in favor
of using the parameter seam 1.1 supports.

Now I use:
<h:dataTable var="i" value="#{datalist}">
  |    <h:column>
  |      <h:commandButton action="#{dataManager.selectItem(i)}" value="select 
#{i.name}"/>
  |   </h:column
  | </h:dataTable>

This works really well, especially if you have nested tables, you can pass
the current table row selection into the function as multiple parameters
using:
<h:dataTable var="i" value="#{datalist}">
  |    <h:column>
  |      <h:dataTable var="j" value="#{i.subdatalist}">
  |        <h:column>
  |          <h:commandButton action="#{dataManager.select
  | SubItem(i,j)}" value="select #{j.name}"/>
  |        </h:column
  |      </h:dataTable>
  |   </h:column
  | </h:dataTable>

Of course this requires you to use Facelets and seam 1.1 with the seam 
FaceletViewHandler, but it REALLY simplifies things alot.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983048
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to