PDA

View Full Version : Request in Validator MultiActionController



MEETmou
Aug 9th, 2010, 05:49 AM
Hello,

I am using a MultiActionController. It's view has 3 different submit-buttons (save, remove and edit). All 3 submits use the same method in my controller.

My controller has a validator.

I want a particular validation for the case that the user has pressed the button edit, but I do not know how to access the HTTPrequest from within the validator.

My idea was to call a custom validator-method from within the controller (but not from the processButton()-method because this is too late to processBindErrors isnt it?) but where could I call such a method? Inside handleRequestInternal I do not have an Errors-Object.

Thanks in advance!