- You are right, I really said tr:table.
I asked in the JDev forum, but nobody knows... Then, I found following in the

http://myfaces.apache.org/trinidad/devguide/table.html :

"Usually, the default behavior of the Table (with respect to displaying and 
hiding details) is sufficient. In some cases, however, it might be desirable to 
programmatically display or hide the details for a particular row. This can be 
done via the RowKeySet object obtained from the Table by calling the 
getDisclosureState() method. First, make the relevant row current by calling 
setRowIndex(...) or setRowKey(...) on the Table, and then call add() or 
remove() on the RowKeySet object. Adding the row to the set displays the 
details of the row. Removing the row hides them"

- So, I think this can be done somehow in the RowDisclosureListener for table, 
there is RowDisclosureEvent, but do not know how ....

Anyone know ?



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Matthias Wessendorf
Sent: Wednesday, May 20, 2009 7:59 PM
To: MyFaces Discussion
Subject: Re: FW: table : how to expand just one detailStamp ?

perhaps I read the mail wrong, but doesn't it say tr:table ?

For RichClient questions I'd suggest to ask on the oracle related forums.

Sure Trinidad is the base of RCF, but that does not mean that every
"feature" is 100% working :-).

-Matthias

2009/5/20 Svetozar Radojčin <[email protected]>:
> - Yes, but as I said, this does not work for RichTable, unfortunately :-( ...
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of 
> Matthias Wessendorf
> Sent: Wednesday, May 20, 2009 3:35 PM
> To: MyFaces Discussion
> Subject: Re: FW: table : how to expand just one detailStamp ?
>
>
> As Frank said, in this archive, there is some disclosureListener(...) method.
>
> Please take a look:
> http://thepeninsulasedge.com/frank_nimphius/wp-content/uploads/2008/05/OldAndLostBlogBusterTips.zip
>
> -M
>
>>
>> Is this really that complicated to achieve ?
>>
>>
>>
>> From: Svetozar Radojčin
>> Sent: Wednesday, May 20, 2009 12:53 PM
>> To: 'MyFaces Discussion'
>> Subject: RE: table : how to expand just one detailStamp ?
>>
>>
>>
>> Hi,    thanks for response
>>
>>
>>
>> "detailStamp" is a facet for <tr:table>, for example
>>
>>
>>
>> <tr:table var="row" value="#{myBean.allDepartments}">
>>
>>   <f:facet name="detailStamp">
>>
>>        ....
>>
>>   </f:facet>
>>
>> </tr:table>
>>
>>
>>
>> In my case, detailStamp contains anoter tr:table, with all employees from
>> the current department
>>
>> So, when user expand one detailStamp, what I want, is :
>>
>> 1.   to close previously opened detail stamp
>>
>> 2.        Set the current Row, in order to enable detailStamp to show
>> Employees for current Department
>>
>>
>>
>>
>> 2009/5/20 Svetozar Radojčin <[email protected]>
>>
>> Hi all,
>>
>> What I want, it to set the current row automatically when selecting the +
>> image (for detailStamp) _and to close previously opened detail stamp when a
>> new detailStamp opens. So, how to select an tr:table row with the detail
>> stamp link ?
>> In that way, user does not need to select particular row first, in order to
>> see all his detail records, contained in the detailStamp
>>
>> Any idea ?
>>
>>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Reply via email to