The ADF Faces partial trigger code is basically server-side event triggered:
"in response to any server-side event on component 'foo', please
re-render me too".

This isn't especially fine-grained, but in practice it rarely needs to be,
and in the event of such needs, there are programmatic APIs.

This seems (though I haven't seen any more than what Travis has said here)
client-side: in response to an "onchange" JS event from a particular,
repaint me.
Rather different...   The way we'd do that in ADF Faces is make formText2
"autoSubmit" - so you get a partial request any time formText2 changes - and
then have partialTriggers on the output component point at formText2.  This
way, it's processed in strictly JSF terms, w/o lots of DOM assumptions or
JS handling.  (E.g., how do you know that all input components are actually
going to have one DOM element that delivers an onchange event?  Whereas
you do know that all EditableValueHolders will deliver ValueChangeEvents.)

-- Adam


On 4/6/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> What I remember, the ADF-Faces partials allow an m:n relationship
> between triggers and updated components/regions.
>
> Is that the same here?
>
> regards,
>
> Martin
>
> On 4/7/06, Travis Reeder <[EMAIL PROTECTED]> wrote:
> > Basicallys lets a component listen for events on another component, all via
> > ajax.
> >
> > Sample usage on inputAjax.jsp.
> >
> >      <s:outputText value="#{inputAjaxBean.waitingText2}">
> >         <s:listener on="formText2"/>
> >     </s:outputText>
> >
> > Only works with the sandbox OutputText right now, but after I get some
> > feedback and discussion on it, I figure it would be nice to have across the
> > board.  It's a bit more functional than the ADF partial triggers because it
> > *will* be able to support different event types (onChange currently) and
> > different actions (update currently, but will could support other actions
> > including calling an arbitrary javascript).
> >
> > Any feedback appreciated.  And thoughts about applying this to all MyFaces
> > components?
> >
> > Travis
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Reply via email to