Hi John,

in general I would agree with you, but in this special case (using
layout-render) the usage of getContext().getSourcePageResolution()
raises the described exception. By using a forward resolution to a
concrete view, no exception is thrown. Surely a workaround, but it works ;-)

Greetings,
Marcus


Newman, John W schrieb:
>
> I believe this line return new ForwardResolution(VIEW);
>
>  
>
> Should be return getContext().getSourcePageResolution(); since you are
> adding errors  ?
>
>  
>
> I have seen this stack trace at random points in the past but never
> frequent enough to actually do anything about it.  I haven’t seen it
> pop up for several months.
>
>  
>
> *From:* CN Yee [mailto:[email protected]]
> *Sent:* Friday, March 20, 2009 7:24 AM
> *To:* [email protected]
> *Subject:* Re: [Stripes-users] Problems with @ValidationMethod
>
>  
>
> Hi Marcus,
>
> What I did was like the following, syntax could be a bit off:
>
> public Resolution save() {
>     ... check for error...
>     if (errorFound) {
>         SimpleError error = new SimpleError("Error found!");
>         getContext().getValidationErrors().addGlobalError(error);
>         SimpleMessage msg = new SimpleMessage("Double check");
>         getContext().getMessages.add(msg);
>         return new ForwardResolution(VIEW);
>     }
>     ...
> }
>
>
> Sorry I am using gmail to post the reply - I could not figure out how
> to place my message under yours.
>
> Regards,
> Yee
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> ------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to