What is the part that changes and why does it have to be ajax in this case? Also, Session#setStyle is a default Wicket way of 'skinning'; just like Wicket will pick up i18n files (e.g. FormInput_nl), it will pick up a style too.
If you really want to do it the ajax way you probably have to remove a css entry and add a new one dynamically using javascript (e.g. using AjaxRequestTarget#appendJavaScript). Eelco On 8/2/06, itsliang <[EMAIL PROTECTED]> wrote: > > Hi there, > > I can use the example code below to change the skin (a.k.a theme, style) of > my web pages. I, however, wonder to know if it is possible to change my skin > by using ajax link. Any idea would be appreciated. > > Link link = new Link("example") { > public void onClick() { > super.getSession.setStype("style2"); > } > } > > Regards, > Chih-liang Chang > -- > View this message in context: > http://www.nabble.com/How-to-change-theme-skin-style-on-the-fly-by-using-ajax--tf2043311.html#a5625609 > Sent from the Wicket - User forum at Nabble.com. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user