What I'm trying to do at the moment (and the purpose of starting this thread)
is creating custom form fields, that have different types of HTML depending
on the variant.

So I could do

new LabelledTextField("banana") {
  public String getVariation() {
    return "complex";
  } 
}

new LabelledTextField("banana") {
  public String getVariation() {
    return "basic";
  } 
}

I need these to work in conjunction with style which is driven by the users
session.  This handles the "skin" or look n feel of the app, and various
branded images.


An alternative approach could be:

Style = handles just the css filename and images
Locale = handles the properties files and images
Variant = handles the HTML files

Not all resources are created equal.


Brill Pappin wrote:
> 
> For my own edification, I missed the thread on "style".
> what exactly is the "style" that is different from the variation?
> 
> I guess for Locale, it *does* use the double underscores when you have  
> a placeholder as in the case of a country only.
> I think its a familiar model and using it for another "feature" would  
> not be so bad (although I admin, it's ugly)... I'd be very cautious  
> about what other chars you use as delimiters though.
> 
> - Brill
> 

-- 
View this message in context: 
http://www.nabble.com/Question-re%3A-style-and-variation-tp22302526p22341732.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]

Reply via email to