Hi Sven, it's a simple <a>.
Patrick
Am 18.07.2013 16:08, schrieb Sven Meier:
> What's the markup of the component you're binding the AjaxLink to?
>
> Sven
>
> On 07/18/2013 03:53 PM, Patrick Davids wrote:
>> Hi all,
>>
>> I have a very special problem with ajax lazy loaded panels, which
>> contains ajax links.
>>
>> Problem: AjaxLink does not execute "onclick". Does not reach server / no
>> client-side execution in browser occurs.
>>
>> What I investigated until now:
>> - client-side script evaluation of lazy loading panel works.
>>
>> I can see script like this:
>> {Wicket.Ajax.ajax({"u":"./page?6-8.IBehaviorListener.VERY_LONG_ID","e":"click","c":"edtc5"});})();
>>
>>
>> - I stepped into the evaluated javascript code Wicket.Ajax.ajax(attrb)
>> with firebug.
>>
>> - inside a jquerys each() iterates over all elements, and adds onclick
>> event handling to the particular element/a-link ("c":"edtc5" of script
>> above).
>>
>> see:
>> wicket-ajax-jquery-ver-xyz.js
>> line: 1800
>> jQuery.each(attrs.e, function (idx, evt) {
>> Wicket.Event.add(attrs.c, evt, function (jqEvent, data) {
>> var call = new Wicket.Ajax.Call();
>> var attributes = jQuery.extend({}, attrs);
>> attributes.event = Wicket.Event.fix(jqEvent);
>> ...
>>
>>
>> So far so good...
>> At this point it gets tooooo deep for me. :-/
>>
>>
>> Can any wicket pro please help, why the onclick (I think its binded
>> correctly) of my link does not get fired to let execute the ajax request?
>>
>>
>> I already made a quickstart with different lazyloaded panels, and all
>> ajaxlinks are working fine.
>>
>> kind regards
>> Patrick
>> ---------------------------------------------------------------------
>> 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]
>
--
Mit freundlichen Grüßen,
Patrick Davids
NuboIT GmbH & Co. KG
Kieler Str. 103-107 • 25474 Bönningstedt
Email: [email protected]
Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg
Geschäftsführung der Verwaltungsgesellschaft
Daniel Fraga Zander
HRB10145Pi | Amtsgericht Pinneberg