We have on object model that is a property of a page and form component
values are mapped to properties of this.
This model is validated by an external service and stores the errors in the
model and this is done within the submit action of the page.
The errors in the model are set as parameters on the components in an
attempt to (following the submission) determine if there are any errors in
the model for those components fields on the form. If there are errors then
the submitting page is redisplayed with the error messages underneath.
The problem is I cannot access the properties on the components error
parameter in the page as they have been nulled. Thus I cant determine
whether or not to return to the page.
Thanks
Mike
On 7/2/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote:
>
> Mike, from a higher level, what are you trying to do?
>
> Jamie
>
>
> On Jul 1, 2005, at 8:28 PM, mike jones 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
"If we can hit that bull's-eye, the rest of the dominos will fall like a
house of cards - Checkmate."