don't know about style.
Because then you will need different html files for the 2 sites.
And i think Dan want to use the same html but slightly different text on some places
(and some different urls to stylesheets and images)

So it is more like a resource bundle, didn't chris make something for this? That you can use
a model for all youre text?

johan

Eelco Hillenius wrote:
I think this is the kind of stuff 'style' was meant to be used for.
Maybe Johan can go into details more.

Otherwise simply subclassing, and each time providing the different
markup would work too.

Eelco


On 8/23/05, Dan Gould <[EMAIL PROTECTED]> wrote:
I've got a basic site working now.  (Thank you for all your help; once
it's a bit more stable, I'll send a link to the list).

Next, I want to be able to build multiple versions of the same site.  So,
http://a.foo.com/ and http://b.foo.com/ will have different text in a few
places, different logos, different CSS stylesheets, etc.  The general
structure is the same (and all the models, etc).

[So far, it looks like I need to look at the HttpServletRequest to get the
actual domain that's being called (that, or rewrite the URL with
UrlRewriteFilter or mod_rewrite to include the domain the the query).]

But, I'm wondering what the "best" way, in your opinions, to do the
customization is:

1) Make each changeable section have a span wicket:id="sitetext1" etc
section where I can change the text for that piece

2) Use Resource bundles: Can they be made to this this?  They look like
the best option, but I'm not quite clear if they can be used in this way.
After all, a domain is not a "Locale".

3) Have different copies of the markup and load different markup files
based on the domain (but use the same Page class with each one)

Any thoughts?

Thank you very much,
Dan


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to