myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Richards <>
Subject RE: [Trinidad] treeTable dynamic rowSelection
Date Tue, 18 Sep 2007 08:01:16 GMT
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 []
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.

On 9/17/07, Andrew Richards <<>>
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
-- AnotherParentRow

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?



View raw message