This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark ""bind" property" Watch ""bind" property" New topic
Author

"bind" property

Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
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
Marius Cloete
Greenhorn

Joined: Apr 14, 2005
Posts: 10
Try this...


just change onklick back to "onclick"

hope that helps
[ May 25, 2005: Message edited by: Marius Cloete ]

If the compiler ain't happy then no body is....<br /> <br />SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "bind" property
 
Similar Threads
Formatting problem.
Problem with h:selectManyCheckbox
if else in h:dataTable
Please HELP me. How To Hard Code Values in Each Row of a dataTable?
jsf controls in h:datatable