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 PPR response is applied to DOM
Date Thu, 10 Apr 2008 17:42:36 GMT
Panel group layout is pretty simple, and will do what you need.

Example:

<tr:panelGroupLayout partialTargets="exampleButton">
  <tr:commandLink rendered="#{buttonWasClicked}" text="visible now!"/>
</tr:panelGroupLayout>

<tr:commandButton id="exampleButton" text="Show it" partialSubmit="true">
  <f:setPropertyActionListener target="#{buttonWasClicked}" value="#{true}" />
</tr:commandButton>

On Thu, Apr 10, 2008 at 10:23 AM, Simon Lessard
<simon.lessard.3@gmail.com> wrote:
> Hi Renzo, yes a simple invisible div or even span with the right id is
> enough. PPR need that only to know where to place the refreshed item with
> the specified id.
>
> ~ Simon
>
>
>
> On Thu, Apr 10, 2008 at 12:17 PM, Renzo Tomaselli
> <renzo.tomaselli@tecnotp.it> wrote:
>
> > Hi, I wonder if anybody can enlight me about this topic.
> > Assume having to add something new to a page through PPR: this requires
> updating some enclosing container, since PPR is all about updating (e.g.
> replacing) DOM parts, not adding new stuff. For example, adding a new panel
> to a container already owning some of them.
> > Such a container might be lenghty to refresh - so an alternative solution
> might be achieved from having a placeholder to mark the future part to be
> added by means of addPartialTarget.
> > The question is whether all is needed is a proper id to match the selected
> component to redraw. If yes, a simple empty and hidden div is enough.
> > Any comment is appreciated,
> >
> > -- Renzo
> >
> >
>
>

Mime
View raw message