Last year I created two Wicket applications for use by customers. The
two applications had a virtually identical navigation struction and
similar kinds of displays, so as you might expect, I built a great many
specialized Wicket panels and parent page classes to be shared by both
applications.

I used an IDE mandated by my employer -- Jbuilder 2006 -- which provides
various "builds" (web build, ejb build, Javadoc build, etc.) within the
context of a single project. I created one project for application A and
another for application B.

To avoid duplicating the objects I built that were used in both
applications, I placed them in a root project C upon which both
applications A and B were dependent.

All three projects contained a web build:

*       Root project C contained a Wicket web application for trying out
my reusable components.
*       Root project A contained a web build consisting of two Wicket
applications:  (1) a Wicket application for playing with and testing the
reusable components built for that application only, and (2) a Wicket
application for the users. I also added (3) a non-Wicket stateless
servlet.
*       Root project B likewise contained a web build consisting of two
Wicket applications: (1) a Wicket application for testing project B
specific components, and (2) a Wicket application for the users.

I now have the opportunity to upgrade to JBuilder 2007, which is based
on Eclipse and is very different from JBuilder 2006.  (This is exciting
because I may finally get to use the Wicket plug-in.)  My main concern
is that in Eclipse every build type must be a separate project. I do not
like the results I get using the automatic JBuilder 2007 import wizards;
I get the impression that it's not designed for the kind of project
structure I was using. (In particular, most people would probably
consider it weird to have a Web project be dependent upon another Web
project.)

What sort of Eclipse project structure would be appropriate for what
I've done?  Should I create three Eclipse Web projects, with two of them
each depending upon the third?

Or would Eclipse be confused by the attempt to make one web project
depend upon another?  If so, should the root project C be divided into:

1.      a web project with the deployment information for testing, and 
2.      a simple Java project to contain the classes and HTML files
against which the deliverable applications will be compiled, and to be
incorporated into their deployment deliverables?

Is there any reason to divide projects A or B into muliple Eclipse
projects?
 
How, in Eclipse, do I specify whether a projects required dependency
should have its classes deployed in the deliverable (versus, say, the
kind of dependency that you can expect to already be deployed to the web
server's own lib directory)?
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to