Everyone,

I have several intranet sites that I am working on.  All of them should
have the same basic look, but will have different top menus (for
navigation).  Toward this end, I have created a library (jar) that will
contain the base page, its markup, and the css and images needed for the
look of the pages.  I load the css from within the base page using a
PackageResourceReference and intend to do the same with images (which
will be a bit unwieldy as there are quite a few images and I'll have to
create wicket components just to point to them).

The problem I have is with the menu.  Each web app will have its own
subclass of my base page and must implement an abstract initHeaderMenu()
method to install the navigational menu.  This navigational menu uses
images that are provided in my common library.  Each subclass can create
its own PackageResourceReferences using super's class or I can provide
protected methods in the base class that will return appropriate
PackageResourceReferences like:

protected PackageResourceReference getMenuLeftGraphic() { ... }
protected PackageResourceReference getMenuRightGraphic() { ... }
protected PackageResourceReference getMenuSeperatorGraphic() { ... }

Am I missing anything?  Is there an easier way to do this?  Plugging in
the css is easy enough.  Plugging in the images seems overly complex.

Thanks,
-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP

Attachment: signature.asc
Description: This is a digitally signed message part

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