I'm looking for thoughts on ways to create a site that can be branded
by a customer.  It should do the following:

* run in a single webapp deployed in a WAR file
* multiple host names resolve to this same web app
   domain1.com -> myapp.com
   domain2.com --> myapp.com
* based on the host name, the app selects a skin (color scheme,
images, maybe even layout changes)
* users need to be able to alter colors, images, and layout in real
time, so updating the WAR with new skins isn't possible
* need to pull alternate CSS content and perhaps HTML markup from a
database and images from a location outside of the WAR.

This needs to be kind of like blogger.com, where a user can change
images and colors, and the application displays their blog that way.
But in my case, the content on the page primarily remains the same,
just the way it is presented changes.

So I'm looking at the localization and style features thinking they
might help.  But they rely on alternate versions of files to be in the
WAR.
http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

What methods would you recommend to get the current hostname from the request?
Whould this be best done in the RequestCycle, the Session, or?
What techniques would be useful for using external CSS, images, and HTML?
Will getStyle/setStyle even help since the content is external of the WAR?

I realize that I shouldn't allow users to modify HTML markup that
contains wicket tags.  That could break things very quickly.

I'm just starting to think about how to do this, so I'm looking for
any suggestions to direct me to the right tools for the job.

Thanks,
Tauren

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to