Re: change (redirect) the markup html file
On Wed, May 26, 2010 at 8:08 AM, Daniel Aschauer daniel.ascha...@gmail.comwrote: Thanks! But, I don't have a setStyle in WebPage-class, there is a setStyle-method only in ResourceReference? How could I use this? Sorry, I forgot that setStyle is only on the session for page-level styling. I suppose the best bet may be to use that parameter to either refer to different fragments within the page or else different panels, each with their own markup. -- Jeremy Thomerson http://www.wickettraining.com
Re: change (redirect) the markup html file
Thanks! But, I don't have a setStyle in WebPage-class, there is a setStyle-method only in ResourceReference? How could I use this? Daniel 2010/5/25 Jeremy Thomerson jer...@wickettraining.com: You could use style for this if you'd like, and use a PageParameter to set the style in the constructor (SomePage_style1.html, SomePage_style2.html) public SomePage(PageParameters params) { setStyle(params.get(style)); } On Tue, May 25, 2010 at 5:23 AM, Daniel Aschauer daniel.ascha...@gmail.comwrote: Hello! Maybe a simple question, but I didn't figured it out yet. I have a set of very simular mainly static pages, so I want to use one java class and depending on a given parameter use differnt html-markup files. Is there a method that does this kind of redirect or changes the name of the refered .html? Thanks alot, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
change (redirect) the markup html file
Hello! Maybe a simple question, but I didn't figured it out yet. I have a set of very simular mainly static pages, so I want to use one java class and depending on a given parameter use differnt html-markup files. Is there a method that does this kind of redirect or changes the name of the refered .html? Thanks alot, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: change (redirect) the markup html file
You could use style for this if you'd like, and use a PageParameter to set the style in the constructor (SomePage_style1.html, SomePage_style2.html) public SomePage(PageParameters params) { setStyle(params.get(style)); } On Tue, May 25, 2010 at 5:23 AM, Daniel Aschauer daniel.ascha...@gmail.comwrote: Hello! Maybe a simple question, but I didn't figured it out yet. I have a set of very simular mainly static pages, so I want to use one java class and depending on a given parameter use differnt html-markup files. Is there a method that does this kind of redirect or changes the name of the refered .html? Thanks alot, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com