Thanks. I will look at the maven archetype. More than just pages, I am looking at links, forms, inputs etc. For example, to create a link I am either use <a href=""> in the HTML, or I can use Wicket link component model, what's the difference and which one should I use?
Btw, my goal is to automatically generate a working Wicket app with full database integration using JPA and security integration as well. The Seam code generation project that I did was a success, you can write a spec like this one: http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml and instantly get a working app like this: live demo link: http://demo.clickframes.org/tracker Of course you can add/remove pages from the app by changing the appspec xml. I am trying to replicate the same thing for Wicket, hoping to get some help from user community! On Sat, Feb 6, 2010 at 4:09 PM, Riyad Kalla <rka...@gmail.com> wrote: > Vineet, very cool stuff you are wooing on. As for best practices with > regard > to layout, there is actually a Maven Wicket archetype that would probably > answer those questions well. From what I remember its pretty straight > forward maven web layout. And yes, HTML and Java source are in same main > packages together. > > On Feb 6, 2010 1:33 PM, "Vineet Manohar" <vineet.mano...@gmail.com> wrote: > > Hi, > > I am trying to write a code generator (using Clickframes code generation > framework) which would generate a fully working Wicket project directly > from > the Spec. Is there a document which describes the best practice for > folder/package structure in a wicket project. > > To write the code generator, the only thing I need to know is the Wicket > project structure that I should be created. For example: > 1) should html files be colocated in src/main/java/com/mypackage/ along > with > Java files (as in the helloworld example) or in src/main/webapp. > 2) should there be one html file per page (I am assuming yes) > ... and other such questions related to folder structure > > I am the lead developer of open source code generation framework > Clickframes > (http://www.clickframes.org) and have written a similar code generator for > JSF/Seam which instantly gives you a working app directly from the spec > which the developer can then customize. I think a similar approach for > Wicket would be very helpful to Wicket users who are trying to start a > brand > new project. > > Here's what I have so far. > http://code.google.com/p/clickframes-wicket-plugin/ > > I am a Wicket novice, so any help or direction is appreciated. > > Thanks, > > Vineet Manohar > http://www.vineetmanohar.com >