myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda" <brunoara...@gmail.com>
Subject Re: [trinidad] ShowDetail not working properly inside tables?
Date Tue, 26 Aug 2008 08:21:44 GMT
Hi,

2008/8/25 Andrew Robinson <andrew.rw.robinson@gmail.com>

> Go to http://www.irian.at/trinidad-demo/faces/components/table.jspx
>
> Use firebug to inspect the DOM. You will see that the onclick uses
> javascript to disclose the links:
>
> return _submitHideShow('_idJsp1',1,'hide','_idJsp12','_idJsp12dd1','1')
>
> Now, from what you said, it seems like you are not using detail
> stamps, but rather putting a tr:showDetail in a column?
>

Yes, that is right :)


>
> It also uses custom Javascript (taken from
> http://www.irian.at/trinidad-demo/faces/components/showDetail.jspx):
>
> return _submitHideShow('_idJsp1',1,'show','hs1','hs1__xc_')
>
> I would verify that the arguments passed are correct. Unfortunately I
> have no time for Trinidad at the moment to try to reproduce the
> problem for you. If you submit a simple jspx or xhtml file perhaps
> someone can look into it for you. Without a test case it will probably
> take a lot longer. The easiest for the developers is probably for you
> to reproduce the problem in the trinidad-demo project from SVN and
> then upload a patch/diff file so that the developers don't have to try
> to get an environment up and running.
>

Yeah, if I have some time this week I will try to fix it myself. Just wanted
to know if someone else had this problem, which does not seem the case. As I
am a developer myself if I find something I will commit it right away :)

Thanks,

Bruno


>
> -Andrew
>
> On Mon, Aug 25, 2008 at 1:13 PM, Bruno Aranda <brunoaranda@gmail.com>
> wrote:
> > So if I get the same client id for each component then is this a bug?
> (the
> > javascript uses the client id to disclose the element) Or it is only
> > happening to me? If I have time I will have a closer look, in the
> meanwhile
> > I am just using a little custom component with javascript.
> > Thanks,
> >
> > Bruno
> >
> > 2008/8/24 Andrew Robinson <andrew.rw.robinson@gmail.com>
> >>
> >> That is not what I said. There is only one component that is stamped.
> >> Each stamp changes the client ID, not the ID of the component. The
> >> index of the row is added to the client ID. For example,
> >> myForm:myTable:0:myInputText where 0 means the first row.
> >>
> >> On Sat, Aug 23, 2008 at 10:47 AM, Bruno Aranda <brunoaranda@gmail.com>
> >> wrote:
> >> > So the component cannot work inside tables.
> >> >
> >> > Bruno
> >> >
> >> > 2008/8/22 Andrew Robinson <andrew.rw.robinson@gmail.com>
> >> >>
> >> >> No
> >> >>
> >> >> There is one component that is stamped.
> >> >>
> >> >> On Thu, Aug 21, 2008 at 4:48 AM, Bruno Aranda <brunoaranda@gmail.com
> >
> >> >> wrote:
> >> >> > Ok, I guess this is a bug. I am not very familiar with trinidad
> >> >> > renderers.
> >> >> > Debugging at the ShowDetailRenderer class I see that the clientId
> is
> >> >> > always
> >> >> > the same for all the CoreShowDetail components in the table.
> >> >> > Shouldn't
> >> >> > they
> >> >> > have an index appended to the id?
> >> >> >
> >> >> > Bruno
> >> >> >
> >> >> > 2008/8/19 Bruno Aranda <brunoaranda@gmail.com>
> >> >> >>
> >> >> >> Hi,
> >> >> >>
> >> >> >> I am using trinidad 1.2.9 and I have realised that showDetail
is
> not
> >> >> >> working properly when inside the column in a table? I have
a
> column
> >> >> >> with
> >> >> >> showDetail and whenever I click in it only the showDetail
from the
> >> >> >> first row
> >> >> >> is disclosed. All the showDetails have the same id so, as
expected
> >> >> >> by
> >> >> >> the
> >> >> >> javascript function, only the first one will be disclosed.
Is this
> a
> >> >> >> bug? Am
> >> >> >> I missing something?
> >> >> >>
> >> >> >> Thanks guys,
> >> >> >>
> >> >> >> Bruno
> >> >> >
> >> >> >
> >> >
> >> >
> >
> >
>

Mime
View raw message