If there is any specific pattern in which your HTML
files will be named then you can add
logic to pick up the correspoding HTML file
looking at the java class name.
for example when you are trying to load page
with the name Foo_Bar.java you can map Foo-Bar.HTML as the mark
up.
hope this helps
regards
Dipu
----- Original Message -----
Sent: Thursday, October 20, 2005 7:56
AM
Subject: Re: [Wicket-user] Markup and
matching Java class
Juergen,
It seems the howto is talking about locating
markups in different places other than the default class package where the
markup's class is defined. That I know is possible. But let me be more
specific with my question.
Say I have a html Foo-Bar.html. Wicket
requires me to have a class Foo-Bar.java, right? But as you know Foo-Bar is an
illegal name for a Java class because of the character '-'. How do you create
the class for Foo-Bar.html?
Francis
On 10/19/05, Juergen
Donnerstag <[EMAIL PROTECTED]>
wrote:
Please
see http://www.wicket-wiki.org.uk/wiki/index.php/Howto
and the two entries in the Configuration
section.
Juergen
On 10/19/05, Francis Amanfo < [EMAIL PROTECTED]> wrote: > Hi
all, > > This requirement of Wicket that a markup and
its corresponding Java class > must have the same name is violating a
usecase that I have. The generated > markup from sources I have no
control on have sometimes filenames containing > identifiers like the
hyphen which is not legal to appear in Java class > names. So my
question is does anyone has a trick I can use to overcome this >
shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java.
How > can this be solved in Wicket without renaming the markup
file? > > Francis >
-------------------------------------------------------
This SF.Net email is sponsored by: Power Architecture Resource
Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________ Wicket-user
mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
|
- Re: [Wicket-user] Markup and matching Java class Dipu
-