Hey Chris,

ValueHolder is plain JSF:
http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/component/ValueHolder.html

UIXValue implements this interfaces

where EditableValueHolder interfaces is implemented by
UIXEditableValue (which extends UIXValue)

-Matthias

On 4/4/07, Chris Gibbons <[EMAIL PROTECTED]> wrote:
What is ValueHolder?  How do I get to it on a Component?  I my bean I
have the field mapped to a UIComponent, how do I make a call
setValue(null) on this component?

Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Wednesday, April 04, 2007 11:52 AM
To: [email protected]
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 <[EMAIL PROTECTED]> 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



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

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

Reply via email to