I would like to have client validation working...
My aproach was to implement the required validation on server side, on
onValidateForm.
That way the rest of the client validation still working on.
But i think this should be one easy stuff... but i don't know if tapestry
allows to bypass client side validation.



2009/4/6 Tapestry Infodea <[email protected]>

> You are right!
> Using the client side validation the follows method is not called:
>
> void onValidateForm() {
>        if (saveMode) form.clearErrors();
> }
>
> If you use ... <t:form t:clientValidation="false" ...
> the above workaround works.
>
>
> Roberto.
>
>
> Pedro Januário ha scritto:
>
>> Hi Roberto,
>>
>> I suppose that you are talking about server side code, Form.clearError(),
>> isn't it?
>> The main problem is on client side.
>>
>>
>> 2009/4/6 Tapestry Infodea <[email protected]>
>>
>>  Hi,
>>> you can use Form.clearErrors() when you save.
>>>
>>> Roberto.
>>>
>>> Pedro Januário ha scritto:
>>>
>>>  Hi Jorge,
>>>
>>>> Probably i didn't explained very well.
>>>> The idea was to kept the client validation turned on, and i don't want
>>>> to
>>>> display any required validation message on save submit button.
>>>> The aproach that you mentioned, need's client validations turned off.
>>>>
>>>> Regards.
>>>>
>>>> 2009/4/6 Jorge Saridis <[email protected]>
>>>>
>>>>  Use onSubmit form the save button, and onSuccess for the finish one
>>>>
>>>>>
>>>>>
>>>>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>>>>>
>>>>> 2009/4/6 Pedro Januário <[email protected]>:
>>>>>
>>>>>  Hi,
>>>>>>
>>>>>> I have the need to use a form with two submit buttons: save & finish.
>>>>>> The form contains 3 required fields.
>>>>>> I would like to know if it's possible to bypass the required field
>>>>>> validation on the save button submit.
>>>>>>
>>>>>> Is there any workaround on it?
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Pedro Januário
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>>>>
>>>>> 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]
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Cumprimentos...
Pedro Januário

Reply via email to