Thanks Abhishek, that seems a viable solution.

I'm told what I'm wanting to-do was possible with ADF so I thought it still may 
be possible with Trinidad however I will try and implement your suggestion.

Many thanks, Andy

________________________________
From: Abhi [mailto:[EMAIL PROTECTED]
Sent: 17 September 2007 16:59
To: MyFaces Discussion
Subject: Re: [Trinidad] treeTable dynamic rowSelection

Hi Andrew,

I doubt that you can control row selection at row level.

What you can do just add some  commandNavigationItem in each row that will call 
an action event. On that event you can write logic for row selection. That will 
act as an selection point. You can use radio buttons or check box also.

Now you can control rendering of this commandNavigationItem based on some 
condition. The condition can be if getChildren return empty array, it's a child 
node.

~Abhishek
On 9/17/07, Andrew Richards <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Hello all,

I have a Trinidad treeTable with row selection set to single as follows...

<tr:treeTable rowSelection="single">

I have a hierarchy of nested beans which has a getChildren method to allow me 
to show a hierarchy of child rows.

Is there any way I can say row selection is only possible on the child rows? i.e

-- ParentRow
-----ChildRow
-----ChildRow
-- AnotherParentRow
-----ChildRow
-----ChildRow

At present row selection is possible on all rows where I would prefer on the 
child rows to be selected?.

Or is there a better way I can represent this hierarchy?

Thanks

Andy

Reply via email to