[jboss-user] [JBoss Seam] - Re: using EL for variable ID's within columns

dinaddan do-not-reply at jboss.com
Tue Jun 19 18:53:50 EDT 2007


It is possible now with RichFaces 3.0.1 (just downloaded it and seems to work)

You need to use rich:dataTable instead of h:dataTable (may require some CSS tuning, because rich:dataTable forces inheritance of rich-table style sheets) and specify rowKeyVar attribute to get variable holding current row number.

For example if you use:

  | <h:form id="myForm">
  |     <rich:dataTable id="myTable" rowVarKey="rowIdx">
  |         ...
  |         <rich:modalPanel id="myPanel">
  |         </rich:modalPanel>
  |         ...
  |     </rich:dataTable>
  | </h:form>
  | 

Then you can reference your panel ID in each row as:

  | Richfaces.showModalPanel('myForm:myTable:#{rowIdx}:myPanel')
  | 

Note that those panels don't require #{task.id} anymore. Their Id will be generated in the context of their container.

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

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



More information about the jboss-user mailing list