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

how to map 2 html files to 1 class?

2009-10-05 Thread Alex Rass
Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10 similar html pages to same class (for same behavior). Doing this: webApplication.mountBookmarkablePage(/page1.html, pageClass); Gets wicket to associate set

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

2009-10-05 Thread Martin Makundi
PageVersionAContantHandler(this); } } } Maybe you wanted something different? ** Martin 2009/10/6 Alex Rass a...@itbsllc.com: Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10 similar html pages

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

2009-10-05 Thread Martin Makundi
? ** Martin 2009/10/6 Alex Rass a...@itbsllc.com: Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10 similar html pages to same class (for same behavior). Doing this: webApplication.mountBookmarkablePage

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

2009-10-05 Thread Martin Makundi
{       new PageVersionAContantHandler(this);     }  } } Maybe you wanted something different? ** Martin 2009/10/6 Alex Rass a...@itbsllc.com: Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10

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

2009-10-05 Thread Martin Makundi
? ** Martin 2009/10/6 Alex Rass a...@itbsllc.com: Hi. Spent hours now trying to figure out how to map 2 html files to 1 class. If someone knows the answer - please help. I need to map 10 similar html pages to same class (for same behavior). Doing this: webApplication.mountBookmarkablePage

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

2009-10-05 Thread Alex Rass
, 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 html files to 1 class? And ofcourse you could have polymorphism

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

2009-10-05 Thread Scott Swank
...@koodaripalvelut.com] Sent: Monday, October 05, 2009 5:23 PM To: users@wicket.apache.org Subject: Re: how to map 2 html files to 1 class? And ofcourse you could have polymorphism. AbstractPageWithDesiredCommonFunctionality.java with all your common logic, Page1Design extends

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

2009-10-05 Thread Alex Rass
. 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 you considered

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

2009-10-05 Thread Scott Swank
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 considered using variant or style? http://cwiki.apache.org

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 that what

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

2009-10-05 Thread Alex Rass
...@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

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

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

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

2009-10-05 Thread Alex Rass
@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 a...@itbsllc.com

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

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

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

2009-10-05 Thread Jeremy Thomerson
...@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

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

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

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

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

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

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

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

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

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

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

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

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

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

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