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 <adelb...@ciseonweb.it> To: users@wicket.apache.org 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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org