This is only a voice of one, and a Struts 2 newcomer at that, but I use themes (and Freemarker) and think they're the greatest thing since sliced bread. What I like about them is that they can make "best practices" automatic. The built in themes sensibly assign IDs, associate labels with their respective form fields, produce good (X) HTML, etc. I've created my own theme that, among other things, automatically looks up a label (based on the field name) from the resource bundle, using the "label" parameter as a default value. Point is, it does/can produce the HTML that we wish the web designers would give us, but they don't.

That said, I've had some frustrations with them. The need to define a component was non-obvious, but once I learned it, I found it super spiffy. I share Ian's frustration with extending a profile, and I wish components could have open/body/close sections.

So, for what it's worth: +1 themes, +1 freemarker, -∞ JSP. :)

P.S. I hope to share my theme with the Struts project someday, but two things have to happen before I can. a) I've got to clean it up, and b) I've got to get approval from my employer.

On Oct 5, 2007, at 1:02 PM, Ian Roughley wrote:

What is the impact on themes going to be? Or is the consensus that themes aren't really used, and individualizing the themes into tags, with writing more HTML code by hand is the solution?

Don't get me wrong - I have a love-hate relationship with theme's. I think they are nice for some things, but generally miss- understood and a cause of quiet a few problems. One of the biggest issues I've personally had, is there is not a good way to extend one theme from another (and not a good way of implementing a solution).

/Ian

Piero Sartini wrote:
S2 without freemarker would be great: +1

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to