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 to at least show it's current in the style.
On Mon Mar 28,2011 08:46 am, Marco Springer wrote: > 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: > My current page is Home and the other available page link is the Gallery. > > <span><em>Home</em></span> > <a href="gallery">Gallery</a> > > After clicking on the Gallery button: > <a href="home">Home</a> > <span><em>Gallery</em></span> > > I think this does the job perfectly, in my case... Perhaps you can > apply it for your case as well. > > For a more detailed description: > http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.BookmarkablePageLinkPage > > G'luck > > Marco. > > On 28 March 2011 07:48, Mansour Al Akeel <mansour.alak...@gmail.com> wrote: > > 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 functionality for the AjaxLink ? > > > > On Mon Mar 28,2011 07:51 am, Josh Kamau wrote: > >> 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 would use css only to archieve this > >> , that is , if each link reloads a different page. > >> > >> > >> Josh. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org