Please read the posts in full.
GOAL: to not have 200 classes that do NOTHING but inherit from parent class
and are empty inside.

-----Original Message-----
From: Jeremy Thomerson [mailto:[email protected]] 
Sent: Monday, October 05, 2009 6:38 PM
To: [email protected]
Subject: Re: how to map 2 html files to 1 class?

Do you use page inheritance?  The header / footer / common navbars should go
in a common parent class.  Then your child classes have only the content
that is unique to that class.

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



On Mon, Oct 5, 2009 at 5:36 PM, Alex Rass <[email protected]> wrote:

> 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:[email protected]]
> Sent: Monday, October 05, 2009 6:27 PM
> To: [email protected]
> Subject: Re: how to map 2 html files to 1 class?
>
> What are you handling there ?
>
> **
> Martin
>
> 2009/10/6 Alex Rass <[email protected]>:
> > 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:[email protected]]
> > Sent: Monday, October 05, 2009 6:08 PM
> > To: [email protected]
> > 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: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to