incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Gibbons" <cgibb...@solutionstream.com>
Subject RE: How do I reset a component using PPR
Date Wed, 04 Apr 2007 18:33:31 GMT
I am using the RI JSF implementation and facelets, not sure if this is
related or not, I would think that if I have my partialTrigger attribute
set on a component, that it should update with the values in the backing
bean, but this is not happening on any of my PPR components, the only
way I can get something on the page to update, is binding it to a
UIXEditable value component and calling reset.

Chris

-----Original Message-----
From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
Matthias Wessendorf
Sent: Wednesday, April 04, 2007 11:52 AM
To: adffaces-user@incubator.apache.org
Subject: Re: How do I reset a component using PPR

resetValue is only a convenience method to call some more
EditableValueHolder methods:

    setValue(null);
    setSubmittedValue(null);
    setLocalValueSet(false);
    setValid(true);

tried to call:
    setValue(null);

on ValueHolder ?



On 4/4/07, Scott O'Bryan <darkarena@gmail.com> wrote:
> You have the component's partialTrigger attribute set, correct?
> Chris Gibbons wrote:
> > OK I have a component that will submit a PPR and I have 2 components
> > that will respond to that PPR event.   One is an inputText
component,
> > and one is a outputText component.  I have both of them bound with a
> > binding= setting.  In my bean the inputText component I can bind to
a
> > UIXEditableValue, and in my changeListener I can do
> > component.resetValue() and that works, the component gets updated on
the
> > page.  However the outputText cannot be bound to a UIXEditableValue,
how
> > can I reset this components value and have the value displayed on
the
> > page?  Just setting the bean value is not sufficient.  Somehow I
need to
> > reset that component.  Anyone have any ideas?
> >
> >
> >
> > Chris Gibbons
> >
> >
> >
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message