--- On Sun, 11/23/08, andyandy wrote:
> I have the following bean structure
> Customer
> Address
> CreditCard
> The problem is when the same page must be displayed again
> with the old data, due to validation errors from the user.
> The values of the properties of the Customer bean are
You want to look in to creating your own type
converters.
http://struts.apache.org/2.x/docs/type-conversion.html
--- Asaf Paris Mandoki <[EMAIL PROTECTED]> wrote:
> So what I should do is remove the
> ParametersInterceptor from my
> interceptors configuration and add my "extended"
> version ?
>
So what I should do is remove the ParametersInterceptor from my
interceptors configuration and add my "extended" version ?
I think this is what I was looking for. II'l have to do some experimenting.
To answer Sean Conlon what I need is more complicated. The example
wasn't good. The bottom is tha
That magic starts happening in
http://struts.apache.org/2.0.8/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ParametersInterceptor.html
ParametersInterceptor . Take a look at the javadocs and source to see how
its done. You could then extend the class or write a new interceptor which
I'm not sure if I completely understand what exactly you are trying to do, but
on the Bean, why not just have something like this:
public void setUserInput(Long num){
this.userInput = num * 2L;
}
If this does not help, please give more information.
- Sean
I think so, look at this.
http://www.learntechnology.net/validate-manually.do
My implementation down here.
/*** CODE ***
/**
* This method is used to execute validation rules
* The good-part,
* 1. can chose to not validate if cancel is submitted .
* 2. If validate excepti
Thanks Laurie,
Its a shame that's the case because having the framework do all the type
conversion makes things so much easier.
I guess this short cut has cost me in the long run!! =)
Cheers
Tom
On 2/11/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Tom Ansley wrote:
> > Hi all,
> >
> > I hav
Tom Ansley wrote:
Hi all,
I have a form that uses validator to check for simple validation like making
sure that a cash amount is a double. I have the "cancel" button on the form
set so that if it is pressed that validation does not take place. This is
great except when you type a letter into
Tom,
Your expectation is incorrect. The form is always populated. The
cancellation doesn't cancel the population, but cancels the validation.
There has been lengthy discussions about this. Feel free to sign up to
bugzilla and vote this in the 1.2 branch:
http://issues.apache.org/bu
9 matches
Mail list logo