Alternately, I'm unsure why variation wouldn't work for you, something like:
public EmptyPage(String pageVariation) { this.pageVariation = pageVariation; } @Override public String getVariation() { return pageVariation; } Then you could have html classes such as: BasePage_home.html BasePage_index.html BasePage_something.html >From there you could look at MixedParamUrlCodingStrategy to set up urls such as www.domain.com/some/path/home www.domain.com/some/path/index www.domain.com/some/path/something Scott On Mon, Oct 5, 2009 at 3:50 PM, Martin Makundi <martin.maku...@koodaripalvelut.com> wrote: >> But yes, at least you should be able to take the html file name as >> parameter to a bookmarkable page somehow and work from there? >> >> www.domain.com/PageHandler/intro.html/show >> or >> www.domain.com/PageHandler/show/intro.html > > And then override this: > > public MarkupStream getAssociatedMarkupStream(final boolean > throwException) > { > try > { > return > getApplication().getMarkupSettings().getMarkupCache().getMarkupStream(this, > false, throwException); > } > > or something there inside...? > > > ** > Martin >> >> ** >> Martin >> >> 2009/10/6 Alex Rass <a...@itbsllc.com>: >>> Standardizing footers across the site. >>> So I will have a dozen pages which are bare content + footer from a common >>> file/db. >>> I don't want to have THAT many useless classes. If I do - wicket is a >>> failure. >>> >>> -----Original Message----- >>> From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] >>> Sent: Monday, October 05, 2009 6:27 PM >>> To: users@wicket.apache.org >>> Subject: Re: how to map 2 html files to 1 class? >>> >>> What are you handling there ? >>> >>> ** >>> Martin >>> >>> 2009/10/6 Alex Rass <a...@itbsllc.com>: >>>> PageA.html <> PageB.html <> PageC.html >>>> >>>> Think about it this way: >>>> PageA.html = Privacy Page >>>> PageB.html = SiteMap Page. >>>> >>>> I want to "handle" them both in same java class file cause hardly anything >>>> is going on there. >>>> >>>> >>>> -----Original Message----- >>>> From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] >>>> Sent: Monday, October 05, 2009 6:08 PM >>>> To: users@wicket.apache.org >>>> Subject: Re: how to map 2 html files to 1 class? >>>> >>>>> PageHandler.java, that handles all 3. >>>>> mountBookmarkablePage("/PageA.html", PageHandler.class); >>>>> mountBookmarkablePage("/PageB.html", PageHandler.class); >>>>> mountBookmarkablePage("/PageC.html", PageHandler.class); >>>> >>>> This is a bit confusing, you ar giving different aliases to the same >>>> page. Is that what you want or you really want different html files >>>> also..`? >>>> >>>> ** >>>> Martin >>>> >>>> --------------------------------------------------------------------- >>>> 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 >>> >>> >>> >>> --------------------------------------------------------------------- >>> 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