myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: [Trinidad] how to PPR a table row upon selecting its detail contents
Date Tue, 12 Feb 2008 16:05:18 GMT
Different row is one in which the index of the data model needs to be
changed. All components that you want to change without updating the
datamodel can be PPR'd declaratively. Documentation says that
UIComponent.findComponent looks in facets, is it should work IMO.

-Andrew

On Feb 12, 2008 2:49 AM, Renzo Tomaselli <renzo.tomaselli@tecnotp.it> wrote:

>  This way it doesn't work. I tried to place partialTriggers on a single
> column cell (tr:outputText), but the entire page is rendered - according to
> my debugger.
> The dev. guide says that PPR on a different row requires using
> addPartialTarget(), but it is unclear whether detail row is considered a
> different row and how to get the cell component (all row components,
> actually).
>
>
> -- Renzo
>
> Andrew Robinson wrote:
>
> You can add a partialTriggers for all the components in your columns so
> that they update for the current row. More work, but it should work.
>
> On Feb 11, 2008 11:38 AM, Renzo Tomaselli <renzo.tomaselli@tecnotp.it>
> wrote:
>
> >  Oh well, I guess that in such case the tag documentation is wrong in
> > reporting the partialTriggers attribute on tr:column.
> > Indeed I want to PPR a row - not a column. So either I spread
> > partialTriggers on all cells - not sure whether all will PPR though - or I
> > might try using addPartialTarget(). In the latter case however I miss the
> > way to identify the row component (or single cell components).
> >
> > -- Renzo
> >
> >
> > Andrew Robinson wrote:
> >
> > You can't PPR a column.
> >
> > On Feb 11, 2008 11:22 AM, Renzo Tomaselli <renzo.tomaselli@tecnotp.it>
> > wrote:
> >
> > > Hi, I have a tr:table where rows can show details through a tr:tree
> > > representing several versions of row contents.
> > > I would PPR row fields upon selecting detail nodes, hosting
> > > tr:commandLinks.
> > > Columns are dynamic, such as:
> > >
> > > <tr:table id="result" ...
> > >    <c:forEach var="column" items="#{bean.columnHeaders}"
> > > varStatus="iteration">
> > >          <tr:column id="col#{iteration.index}"
> > > partialTriggers="versionTree:thisv">
> > >
> > > Then I have as table detail:
> > >
> > > <f:facet name="detailStamp">
> > >        <tr:tree id="versionTree"
> > >            <f:facet name="nodeStamp">
> > >                    <tr:commandLink id="thisv"  ...
> > > partialSubmit="true">
> > > ...
> > >
> > > But - although bean action is actually reached upon clicking nodes -
> > > there is no PPR, no refresh.
> > > Instead I got several times (once per column):
> > >
> > > WARNING: No PPR-capable 'id' found for elements of
> > > CoreColumn[UIXFacesBeanImpl, id=col1]. This component has not
> > > written-out an 'id' attribute.
> > >
> > > I guess the PPR target should defined in some other way - but after
> > > all
> > > I don't want to refresh the entire table, just the current row.
> > > And of course - I use Facelets.
> > > Any suggestion is welcome.
> > >
> > > -- Renzo
> > >
> > >
> >
>

Mime
View raw message