[S2] question on validation

2007-02-09 Thread Daniel Amadei

Hi All,

Suppose I have an action called a.A with some methods for updating
records and other for querying or just redirecting.

If I set up the validation file, it works for update but also for the
querying and redirection methods, which is not what I want.

My question is: is there a way to configure the validation for an
action to work just for some methods and not for others?

Thanks,
Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] question on validation

2007-02-09 Thread Dave Newton
--- Daniel Amadei wrote:
 My question is: is there a way to configure the
 validation for an action to work just for some 
 methods and not for others?

This is off the top of my head; typical grain-of-salt
warnings apply.

In addition to tweaking the list of methods that are
skipped for the validation interceptor (fine if you
have consistent method names, otherwise... not so
fine) I belive you can use the curiously-named alias
feature:

ActionName-methodName-validation.xml

which defines the validation for a method of an
Action.

I think; it's Friday, it's late, and I don't have my
dev box :/

Dave



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] question on validation

2007-02-09 Thread Daniel Amadei

Hi Dave,

It did not work for the method but worked for the action alias this way:

A-alias-validation.xml

Thanks a lot for your help again.
Daniel

2007/2/10, Dave Newton [EMAIL PROTECTED]:

--- Daniel Amadei wrote:
 My question is: is there a way to configure the
 validation for an action to work just for some
 methods and not for others?

This is off the top of my head; typical grain-of-salt
warnings apply.

In addition to tweaking the list of methods that are
skipped for the validation interceptor (fine if you
have consistent method names, otherwise... not so
fine) I belive you can use the curiously-named alias
feature:

ActionName-methodName-validation.xml

which defines the validation for a method of an
Action.

I think; it's Friday, it's late, and I don't have my
dev box :/

Dave





Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]