Thanks Martin; but it doesn't make sense to me, sorry.
Wicket generates below code for a simple counter increment example.
var wcall =
wicketAjaxGet('?wicket:interface=:2:panel1:okla::IBehaviorListener:0:',
function() {
}.bind(this), function() {
}.bind(this), function() {
return Wicket.$('okla') != null;
}.bind(this));
return !wcall;
Any suggestions ?
Thanks.
________________________________
From: Martin Grigorov <[email protected]>
To: [email protected]
Sent: Thu, July 14, 2011 2:46:04 PM
Subject: Re: Generate ajax link
See how AjaxLink generates its markup.
On Thu, Jul 14, 2011 at 2:31 PM, Lurtz Nazgul <[email protected]> wrote:
> I mean; generating ajax link format
>
> Instead of
>
> <li><a href='?thePanel=com.test.PanelOne'></a></li>
>
> I want to generate ajax link on the fly
>
> Example :
> <a onclick="var
> wcall=wicketAjaxGet('wicket/page?2-1.IBehaviorListener.0-c1--link',function()
{
> }.bind(this),function() { }.bind(this), function() {return Wicket.$('idc') !=
> null;}.bind(this));return !wcall;" id="idc" href="#">increment</a>
>
> Any suggestions ?
>
> Thanks.
>
>
>
>
> ________________________________
> From: Andrea Del Bene <[email protected]>
> To: [email protected]
> Sent: Thu, July 14, 2011 2:00:32 PM
> Subject: Re: Generate ajax link
>
> Hi,
>
> you can use Loop component to generate a dynamic number of links. For example:
>
>
>
> HTML code:
>
> <ol title="MenĂ¹" class="main_menu">
> <li style="list-style: none;" wicket:id="itemList">
> <a wicket:id="menuItem"></a>
> </li>
> </ol>
>
>
>
> Java code:
>
>
> List<AbstractLink> linkList = ...
> Loop loop = new Loop("itemList", linkList.size()) {
> @Override
> protected void populateItem(LoopItem item) {
> AbstractLink curLink = linkList.get(item.getIndex());
> item.add(curLink);
> }
> };
>
>
>
>> Hi all;
>>
>> I can generate normal links in to my dynamic menu
>>
>> <li><a href='?thePanel=com.test.PanelOne'></a></li>
>> ...
>>
>> I wonder if i can generate those links in ajax link format ?
>>
>> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]