incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: Dynamic id's with Partial Page Rendering
Date Tue, 03 Apr 2007 20:31:40 GMT
Yes, that's definitely a workaround!

regards,

Martin

On 4/3/07, Matthias Wessendorf <matzew@apache.org> wrote:
> Martin,
>
> do you know the ID of the part that should be rendered, or are you
> able to *calculate* it on the server?
>
> RequestContext.addPartialTarget(UIComp) might be an option:
>
> <sample>
>     UIXTable table = (UIXTable) event.getComponent().findComponent("userTable");
>     table.setValue(this.users);
>     RequestContext afContext = RequestContext.getCurrentInstance();
>     afContext.addPartialTarget(table);
> </sample>
>
>
> On 4/3/07, Martin Marinschek <martin.marinschek@gmail.com> wrote:
> > Hi *,
> >
> > I'm using partial page rendering, where the triggering component is
> > supposed to sit in a data-table (e.g. commandButton as a kid of
> > dataTable, table has 15 rows, so 15 buttons).
> >
> > The button have an id like:
> >
> > myTable:1:myButton
> >
> > When any of the buttons has been clicked, I want to update a separate
> > part of the page, but I can't specify each button in the
> > partialTriggers attribute, I don't even know yet how many buttons
> > there might be.
> >
> > Tomahawk's pprPanelGroup has a partialTriggerExpression attribute,
> > where I can put a reg-ex to solve this issue. Is there something like
> > this in Trinidad as well? Any ideas for a workaround?
> >
> > regards,
> >
> > Martin
> >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message