Hello Aaron,
Thank you for the explanation. Now it all makes sense. So, to use forward, I
need the @DontValidate on the B method that is invoked.
-a
On 27 July 2010 22:02, Aaron Porter <aa...@mongus.com> wrote:
> Hi Aaron,
> It is validating with A then it forwards to B which receives the same
> request parameters so it tries to validate and bind to B also. You may want
> to redirect to B instead of forwarding to it if you're not trying to pass
> the request parameters along. With a forward the URL in the browser will
> make it look like you're still at A. With a redirect the URL in the browser
> will end up the location for B. Just depends on what you're trying to do.
>
> Aaron
>
>
> On 07/27/2010 04:57 PM, Aaron Stromas wrote:
>
> Greetings,
>
> I have an action bean A with a property x with getter/setter. The submit
> method of A returns a ForwardResolution to action bean B. The property X is
> annotated with @Validate:
>
> class A extends BaseAction {
>
> @Validate(on="submit", required=true, mask="...")
> private String x;
>
> public Resolution submit() {
> ...
> return ForwardResolution(B.class):
> }
>
> public Strign getX() {return x;}
> public void setX(Stirng x) { this.x = x;}
>
> In the logs I see something like this:
>
> Could not bind property with name [x] to bean of type: B: Bean class B does
> not contain a property called 'x'. As a result the following expression
> could not be evaluated: x
>
> Why is the validation is attempted on bean B, instead of A???
>
> Thanks a lot in advance,
>
> -a
>
> --
> Aaron Stromas
> Mobile: +1 703 203 9169
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more
> details:http://ad.doubleclick.net/clk;226879339;13503038;l?http://clk.atdmt.com/CRS/go/247765532/direct/01/
>
>
> _______________________________________________
> Stripes-users mailing
> liststripes-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users