Re: Putting HTML files in src/main/webapp

2010-10-06 Thread Avraham Rosenzweig
Try this: http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/ On Tue, Sep 28, 2010 at 12:45 PM, elesi jsar...@gmail.com wrote: Could i change html resource folder, even if my project don't have a maven folder structure? I mean no resources folder, etc.? -- View this

Re: Putting HTML files in src/main/webapp

2010-09-28 Thread elesi
Could i change html resource folder, even if my project don't have a maven folder structure? I mean no resources folder, etc.? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Offline-Applications-tp1883788p2716953.html Sent from the Users forum mailing list

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
On 05/05/2009, at 1:28 AM, Alan Garfield wrote: The hack I have with maven at the moment properly constructs the war by copying all the .html files into the classes folder for Wicket to find... What 'hack' do you need for Maven to include the HTML in the classes directory?

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Luther Baker
Separates the code from the templates so the designers don't have to checkout the whole project, also keeps all the content in one directory. Even though they are dynamic template files for wicket there is a certain amount of static stuff that would be nice to be in one place. If you simply

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Alan Garfield
On Tue, 2009-05-05 at 03:03 -0500, Luther Baker wrote: Separates the code from the templates so the designers don't have to checkout the whole project, also keeps all the content in one directory. Even though they are dynamic template files for wicket there is a certain amount of static

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread James Carman
Ok, if you really want to do this and you don't want to use src/main/resources, have you checked out: http://wicketstuff.org/wicket13/customresourceloading/ That has some code examples on how to load html templates from the document root. That might help you. On Mon, May 4, 2009 at 9:31 PM,

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
Alan, The fragment of XML from the pom that I posted IS in the Wicket Quickstart generated via mvn archetype:generate. It's also in the pom when you use the helper code available here: http://wicket.apache.org/quickstart.html Hence why it's not a hack, it's standard Maven stuff. You don't

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Alan Garfield
On Tue, 2009-05-05 at 07:23 -0400, James Carman wrote: Ok, if you really want to do this and you don't want to use src/main/resources, have you checked out: http://wicketstuff.org/wicket13/customresourceloading/ That has some code examples on how to load html templates from the document

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Richard Allen
To make Luther's point more explicit: Wicket allows you to bundle everything a Wicket component needs (Java code, HTML, CSS, images, etc.) into a single JAR and drop that JAR into the WEB-INF/lib directory of any WAR, thereby making the JAR essentially self-contained and reusable. The benefit

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Alan Garfield
On Tue, 2009-05-05 at 12:33 +0100, Steve Swinsburg wrote: Alan, The fragment of XML from the pom that I posted IS in the Wicket Quickstart generated via mvn archetype:generate. It's also in the pom when you use the helper code available here: http://wicket.apache.org/quickstart.html

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Alan Garfield
On Tue, 2009-05-05 at 08:26 -0400, Richard Allen wrote: To make Luther's point more explicit: Wicket allows you to bundle everything a Wicket component needs (Java code, HTML, CSS, images, etc.) into a single JAR and drop that JAR into the WEB-INF/lib directory of any WAR, thereby making the

Re: Putting HTML files in src/main/webapp

2009-05-05 Thread Steve Swinsburg
Ok glad you got it sorted. For reference, you can adjust the excludes/includes in the build section of the POM to exclude the HTML files from being added. Then use the maven-war-plugin to take control of what goes where. cheers, Steve On 5 May 2009, at 13:52, Alan Garfield wrote:

Re: Putting HTML files in src/main/webapp

2009-05-04 Thread Richard Allen
If you are using packagingwar/packaging, then the maven-war-plugin will automatically pick up the resources in src/main/webapp, which means you do not have to configure that directory as a resource. Additionally, the maven-resources-plugin automatically picks up resources in src/main/resources, so

Re: Putting HTML files in src/main/webapp

2009-05-04 Thread Alan Garfield
On Mon, 2009-05-04 at 08:55 -0400, Richard Allen wrote: If you are using packagingwar/packaging, then the maven-war-plugin will automatically pick up the resources in src/main/webapp, which means you do not have to configure that directory as a resource. Additionally, the

Re: Putting HTML files in src/main/webapp

2009-05-04 Thread James Carman
What's the justification of having them in src/main/webapp again? On Mon, May 4, 2009 at 8:28 PM, Alan Garfield a...@fromorbit.com wrote: On Mon, 2009-05-04 at 08:55 -0400, Richard Allen wrote: If you are using packagingwar/packaging, then the maven-war-plugin will automatically pick up the

Re: Putting HTML files in src/main/webapp

2009-05-04 Thread Alan Garfield
On Mon, 2009-05-04 at 21:07 -0400, James Carman wrote: What's the justification of having them in src/main/webapp again? Separates the code from the templates so the designers don't have to checkout the whole project, also keeps all the content in one directory. Even though they are dynamic