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 <[email protected]>: > 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 > <[email protected]>wrote: > >> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Jeremy Thomerson > http://www.wickettraining.com > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
