Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
Josh, I tried to run the app, but I couldn't resolve an issue with maven. May be you have seen something similar before. I had deleted the corresponding wicket/1.4.12 direcotry from maven repo to forse it to re download, but no luck. I am using maven 3. Do I need to install all these required pr

Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Mansour Al Akeel
Marco, thank you. I have implemented already the pages as a panel to be replaced, and this was a requirement to do it with ajax. So I can not follow this route at this point. But what you have here is the exact functionality I am after. It will be nice if I can disable the current link, but I need

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Marco Springer
Hi Mansour For reloading different pages I'm using BookmarkablePageLink (non-ajax), that have the option for "setAutoEnable(true)'. When this option is set for each BookmarkablePageLink and one BookmarkablePageLink is clicked on the website, the generated HTML for that link is changed. For example

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
Josh, Yes each link is reloading a different page, and the list of the links is not rebuilt. Only the contents part of the page. What would your css alternative solution be ? How can I get the clicked link disabled and assing it a class, excluding the rest of the links, without breaking the ajax f

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Josh Kamau
hi. Have you tried something like myLink.add(new AttributeAppender(...)); or myLink.add(new AttributeModifier(...)) this methods can add/modify a css class in a markup element. Please check the javadocs for method details if this is what you want. However, if i were in your situation, i wou

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
Bruno, There' no bug here. It's just something I need to do, and unable to find a way to do it with wicket. All I need to do is to highlight the clicked ajaxLink in a list. I am not sure how to add a css class to this link only, knowing that there is other links in this list. I just didn't get any

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Bruno Borges
Please provide a quickstart with the use case, so we can reproduce the bug. Bruno Borges www.brunoborges.com.br +55 21 76727099 "The glory of great men should always be measured by the means they have used to acquire it." - Francois de La Rochefoucauld On Sun, Mar 27, 2011 at 8:37 PM, Mansou

Re: Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
No answer yet. Any thing not clear ? On Sun Mar 27,2011 07:37 pm, Mansour Al Akeel wrote: > Hello all, > I have created a dynamic menu using AjaxLink. Clicking a link results in > dispalying the correcponding class on the screen. It's common, to > display the clicked link in a different color/ba

Highlight current/clicked AjaxLink

2011-03-27 Thread Mansour Al Akeel
Hello all, I have created a dynamic menu using AjaxLink. Clicking a link results in dispalying the correcponding class on the screen. It's common, to display the clicked link in a different color/background ... etc. But I wasn't able to find a way to achieve this. Any advice tutorial, article ?