Hi, I have browsed/read the previous threads regarding this topic and read the wiki on styling and localisation - but its inconclusive as to how this should be tackled.
I have my app running on multiple domains. Each domain - when you hit it, sets a style into the session - so they appear to be different apps. So I can have something like MyPanel_client1_en_AU.html most of the time this will resolve to MyPanel.html Now, if I want to have a component implemented inside MyPanel, with its own variant, then I was hoping to do this: MyComponent_myVariant.html However - the lookup I get is MyComponent_myVariant_client1_en_AU.html ... MyComponent_myVariant_client1.html MyComponent.html It treats "myVariant_client1" as a single style value. Now - the wiki says that this is expected (see http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html) - it also says that the possibilities are "exponential" ;) How would I achieve variants working in conjunction with style? Seems the touchpoints would be writing my own ResourceNameIterator, and writing my own ResourceStreamLocator. Surely there is a cleaner simpler way - It feels dirty having to add this functionality, and the existence of ResourceNameIterator and ResourceStreamLocator indicates that it has already been thought about a fair amount. -- View this message in context: http://www.nabble.com/Question-re%3A-style-and-variation-tp22302526p22302526.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
