• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

"bind" property

 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm creating a dataTable with multiple rows dynamically populated.
One of the column is another dataTable also dynamically populated.

This is the code for the inner dataTable :


I'm using [ rendered="#{beanCollection.render}" ] to dynamically display or not each of the inner dataTable.

I would rather want to do this in an event listener doing something like dataTable2.setRender(false).

However, since my dataTable is bound to [ binding="#{Page1.dataTable2}" ], it doesnt work.. each row is bound to the same var name. So they are either all displayed or all hidden.

How could I bind this to different var name for each row.
something like :


Just to make sure, my big dataTable contains rows of dataTable, which is what I want to hide or show.
Please tell me if I'm not clear enough, I find it difficult to explain this.

Thanks,
Alex
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this...


just change onklick back to "onclick"

hope that helps
[ May 25, 2005: Message edited by: Marius Cloete ]
 
Whatever you say buddy! And I believe this tiny ad too:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic