I could be wrong, but here is my guess.
For a component parameter x with direction=in,
after the component's renderComponent is exceuted,
the parameter x is reset to its default value.
Please see p225 to 228 in TIA for more details.
The following might be a quick fix.
In your component, create an instance varaible
copyOfX.
In the method renderComponent, set copyOfX to x.
In the page class, access copyOfX instead of x.
Shing
--- mike jones <[EMAIL PROTECTED]> wrote:
> Hello
> I am tring to access the property of a component in
> the page class but it
> always returns null.
> The property is declared...
> <parameter name="error" type="java.lang.String"
> required="yes"
> direction="in" />
>
> has an abstact getter and setter in the component
> class
>
> public abstract class WithError extends ValidField
> ... {
> ....
> public abstract String getError();
> public abstract void setDisabled(boolean value);
>
> ...
> }
>
> but in a method in the page class when I try to
> acess it
>
> ((ErroredValidField) component).getError();
>
> It always equals null.
> However when I check the value in the render
> component method it has the
> correct value.
> How can I get this value?
> TIA
> cheers
> Mike
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]