Yes - this sounds like a good idea.  I believe you could also call
setVariation(parameters.get(0 or "type", etc)) in your constructor and use
the parameter to determine which HTML file is rendered.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Oct 5, 2009 at 5:44 PM, Phil Housley <undeconstruc...@gmail.com>wrote:

> 2009/10/5 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.
>
> It sounds as though you don't actually want to use any Wicket features
> for the content of any of these pages, so I don't think you actually
> want to create pages for them at all.
>
> Instead, I would have a general "content" page, and then interpret the
> rest of the URL as an argument.  I can't remember which type of mount
> you need, but you would basically interpret something like:
>
> /content/home
> /content/index
> /content/something
>
> as all being the same page, with a single parameter.  Then in the page
> class you just print out some raw HTML content for the entire middle
> bit of the page.  There are various ways to do that, and you have a
> free choice if really all you want to do is write straight to the
> response.
>
> > -----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
> >
> >
>
>
>
> --
> Phil Housley
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to