if you need to submit the form use ajaxsubmitlink, if you dont then
use the normal ajaxlink.

-igor

On Tue, Jun 9, 2009 at 7:39 AM, Jade<[email protected]> wrote:
> Hi Igor,
>
>  Yes, I did understand that after a deeper look. But for my use case, which
> would a better one to use?
>
>  I cannot use a normal link as it would reload the screen and the
> modalwindow would vanish.
>
>  Please advise. Thanks for your time.
>
> Thanks,
> J
>
> On Tue, Jun 9, 2009 at 4:34 PM, Igor Vaynberg <[email protected]>wrote:
>
>> ajaxlink does not submit the form so no validation will happen and it
>> doesnt have an onsubmit method. you are mixing up ajaxlink,
>> ajaxsubmitlink, and ajaxbutton.
>>
>> -igor
>>
>> On Tue, Jun 9, 2009 at 2:30 AM, Jade<[email protected]> wrote:
>> > Hi all,
>> >
>> >  I am having a issue with AjaxLink and thought would get help from you.
>> >
>> >  I have a modal window which has a form with two ajax links, few check
>> boxes
>> > and a AjaxButton.The check boxes are bound inside a list view.
>> >
>> >  Now, out of the two ajax links - one ajax link is for checking all the
>> > check boxes and other is for unchecking all of them.
>> >
>> >  I also have validation added to the form to check at least one of the
>> check
>> > boxes is checked on submit. But the strange thing that happens is -
>> whenever
>> > the ajaxlink for none is clicked, the ajaxbutton's onSubmit  is not at
>> all
>> > called. And the validation does not happen in the form, which I came to
>> know
>> > by eclipse debug sequence.
>> >
>> >  Am I doing something wrong here, I am still very much confused why its
>> not
>> > called.
>> >
>> > Also, any advices for better implementation of the functionality would be
>> of
>> > great help.
>> >
>> > Thanks,
>> > Jade
>> >
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to