after you manage to disable the detail column
it's really easy to have a link that does the same thing the original one
does
if you look a bit in the generated code you'll notice a pattern on the
onclick event:
to show:
return _submitHideShow('_idJsp1',1,'show','_idJsp12','_idJsp12dd2','2')
'_idJsp1 - is the id of the form
'_idJsp12' - is the id of the table
'_idJsp12dd2' - is the id of the link itself (format:
tableId+'dd'+rowNumber)
to hide:
"return _submitHideShow('_idJsp1',1,'hide','_idJsp12','_idJsp12dd2','2')"
only 'show' is replaced with 'hide'
so you don't have to do it programatically
just use the trinidad js code ;)
On Thu, Apr 10, 2008 at 2:37 PM, Mathias Walter <[EMAIL PROTECTED]>
wrote:
> Henk,
>
> would you open a JIRA issue, please?
>
> --
> Kind regards,
> Mathias
>
> > -----Original Message-----
> > From: Henk Vanhoe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 10, 2008 1:55 PM
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] Disable details-link
> >
> >
> > Hi,
> >
> > It would help me a lot if you would commit your code. But
> > even if you
> > don't want to commit it, I would be very glad if you could
> > post the code
> > here, so I could add it myself to my own copy of the trinidad source
> > code and recompile it...
> >
> > On the other hand, if other people are interested in this
> > functionality,
> > an extra attribute "detailsLinkEnabled" may be more flexible, because
> > then you could show all details by default when this
> > attribute is false
> > (with the skinning property I suppose you still need to expand all
> > detail rows yourself with the disclosedRowKeys attribute).
> >
> > Thanks a lot,
> > Henk
> >
> > Cristi Toth wrote:
> > > Hi,
> > >
> > > I did if for a client with an extra skinning property
> > something like:
> > > af|table {
> > > -tr-show-detail-column:false;
> > > }
> > >
> > > I'm not 100% happy with my code, so I didn't hurry to commit it.
> > > But I might do it, if other people want it and like it.
> > >
> > > Regards,
> > >
> > > On Wed, Apr 9, 2008 at 9:28 AM, Henk Vanhoe <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
> > >
> > > Hi,
> > >
> > > I suppose it would not be particularly difficult to add an extra
> > > attribute to the trinidad table, something like a
> > > "detailsLinkEnabled" attribute with which it would be
> > possible to
> > > show/hide the extra "Details"-column. That would be
> > handy when the
> > > detailstamp should always be shown or when you want to show/hide
> > > the detailstamp with pure client-side javascript (which
> > is faster
> > > than PPR with small pages and with which you can avoid
> > some extra
> > > complexities related with PPR). But of course, if there
> > is another
> > > way to do that, I would prefer not to add an extra attribute...
> > >
> > > Regards,
> > > Henk
> > >
> > >
> > > Henk Vanhoe wrote:
> > >
> > > Hi,
> > >
> > > Another question I was having...
> > >
> > > In one of our tables we are using the detailStamp
> > facet. When
> > > I add a detailStamp there automatically appears an extra
> > > column with a "Details"-link in it. Does anybody
> > know a way to
> > > disable this column? (The details should always be
> > visible in
> > > the screen we are building.) I noticed there is an
> > > "allDetailsEnabled" attribute where I could
> > disable/enable the
> > > show/hide all links, but I don't find a similar
> > attribute for
> > > the regular show/hide links...
> > >
> > > Thanks,
> > > Henk
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Cristi Toth
> > >
> > > -------------
> > > Codebeat
> > > www.codebeat.ro <http://www.codebeat.ro>
>
>
--
Cristi Toth
-------------
Codebeat
www.codebeat.ro