any reason why you'd not like to use javascript?

On 8/11/06, Simon Raveh <[EMAIL PROTECTED]> wrote:

Is there a way to tie a submit button to the refresh/cancel listener
without  using javascript using tapestry 4.0

Simon

Karthik N wrote:
> your search should be bound to the form refresh listener - that way
> validations won't fire.
>
> On 8/11/06, Theo vN <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> I use the same Form to either create (create button) a record or to
>> search (search button) for records.
>>
>> I want to do input validation (only server-side is ok) when I create a
>> record  but not for when I search (maybe even other validation rules
>> for when I search).
>>
>> The build in tapestry validation seems to occur before "action" and
>> "listener" invocations take place.
>>
>> What "hook" can I use to setup a custom validator (as required or null
>> or whatever)  based upon which button was pressed (or which listener
>> is going to be invoked).
>>
>> One could of course do the validation "by hand" in the final listener
>> methods, but that would be a pity.
>>
>> Thanks in advance
>> --
>> Regards
>> Theo
>>
>> ---------------------------------------------------------------------
>> 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]




--
Thanks, Karthik

Reply via email to