Re: how to map 2 html files to 1 class?

2012-08-10 Thread vinitty
Guys, You can always create dynamic class Use java assist I was also having same problem and i use that and it works fine -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-map-2-html-files-to-1-class-tp1890619p4651138.html Sent from the Users forum mailing

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
age >> 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- >> >

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Jeremy Thomerson
kundi [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 > > >

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
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...@koodaripalvelu

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
lasses.  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

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Phil Housley
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: h

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
t; -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 >

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
--- > 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 : > > P

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Jeremy Thomerson
n.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 : > > PageA.html <> PageB.html &

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
t.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 : > PageA.html <> PageB.html <> PageC.html > > Think about it this way: > PageA.html

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
To: users@wicket.apache.org Subject: Re: how to map 2 html files to 1 class? But if all three html files are associated with the same Java class, how does this differ from separate skins? Is the distinction semantic, or am I missing something? Scott On Mon, Oct 5, 2009 at 2:44 PM, Alex Rass

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
e 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? > >>

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
di [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); > mountBookmark

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
> 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 tha

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
gt; the same time. (Should have made it clear earlier). > > > -Original Message- > From: Scott Swank [mailto:scott.sw...@gmail.com] > Sent: Monday, October 05, 2009 5:38 PM > To: users@wicket.apache.org > Subject: Re: how to map 2 html files to 1 class? > > Have you

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
for diff skins. All 3 need to be available at the same time. (Should have made it clear earlier). -Original Message- From: Scott Swank [mailto:scott.sw...@gmail.com] Sent: Monday, October 05, 2009 5:38 PM To: users@wicket.apache.org Subject: Re: how to map 2 html files to 1 class? Have

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
; mountBookmarkablePage("/PageC.html", PageHandler.class); > > > > > -Original Message- > From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] > Sent: Monday, October 05, 2009 5:23 PM > To: users@wicket.apache.org > Subject: Re: how t

RE: how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
PageHandler.class); mountBookmarkablePage("/PageC.html", PageHandler.class); -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Monday, October 05, 2009 5:23 PM To: users@wicket.apache.org Subject: Re: how to map 2

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
And ofcourse you could have polymorphism. AbstractPageWithDesiredCommonFunctionality.java with all your common logic, Page1Design extends AbstractPageWithDesiredCommonFunctionality Page2Design extends AbstractPageWithDesiredCommonFunctionality : : : Page-n-Design extends AbstractPageWithDesire

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
It's too late :) Apparently you wanted just the opposite. Well.. you could have: PageA.html: PageB.html: PageC.html: Page?.java: public class CommonPage extends WebPage { public CommonPage() { new PageContantHandler(this); } } ** Martin 2009/10/6 Martin Makundi : > Hi! > > I did not ex

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
Meant to say if (A-mode) { new PageVersionAContantHandler(this); } else { new PageVersionBContantHandler(this); // B ofcourse } ** Martin 2009/10/6 Martin Makundi : > Hi! > > I did not exactly understand what you are after, but you can always do > like this: > > CommonPage.html: > blabla ..

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Martin Makundi
Hi! I did not exactly understand what you are after, but you can always do like this: CommonPage.html: blabla ... CommonPage.java: public class CommonPage extends WebPage { public CommonPage() { if (A-mode) { new PageVersionAContantHandler(this); } else { new PageV