Thank you for your answer. It was very helpful.


Ian Roughley wrote:
> 
> you can always use <s:submit name="method:delete" value="Delete" /> and 
> <s:submit value="Execute" /> - then you don't need the logic to 
> determine which button was clicked in the execute() method, and you can 
> use the validation config below.
> 
> /ian
> 
> Igor Vlasov wrote:
>> This is not a solution.
>>
>> I have 2 submit button in one form: one for save and another for delete.
>> All
>> of them submit the form data to execute() method. There I can determine
>> which button was pressed and do  an appropriate bussines action.
>>
>> The problem is that i must to validate the data when "OK" button is
>> pressed
>> and  NOT validate when "DEL" button is pressed.
>>
>>
>> ros wrote:
>>   
>>> For struts it's                 
>>> <interceptor-ref name="validation">
>>>     cancel,execute,delete,edit,list,print
>>> </interceptor-ref>
>>>
>>> Hope this helps.
>>>
>>> ros
>>>
>>>
>>> Igor Vlasov wrote:
>>>     
>>>> And how to disable the SERVER side validation when delete button
>>>> clicked
>>>> ?
>>>>
>>>>
>>>>
>>>> ros wrote:
>>>>       
>>>>> Java Script validation fro button disabled by 
>>>>>
>>>>> <s:submit cssClass="button" method="delete" key="button.delete"
>>>>>                        
>>>>> onclick="document.getElementById('ticketForm').onsubmit = null;" />
>>>>>
>>>>>
>>>>> ros wrote:
>>>>>         
>>>>>> If I have in one form DELETE and SAVE buttons, how to turn off client
>>>>>> side validation for DELETE button?
>>>>>>
>>>>>>           
>>>>>         
>>>>       
>>>     
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13269628
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to