The concept you are talking about is correct in general Adrian, but means something different than your interpretation here. The intent of the screen, form and other widgets is to define structure and business level artifacts (not technical or visual). They are meant to be externally styled, hence the use of "style" attributes, and yes even "id" attributes.

In other words, certain elements in the screen and form widgets (didn't check the others) already DO have id attributes on them, and if necessary we could add it to others as well.

-David


On Nov 26, 2007, at 9:14 AM, Adrian Crum wrote:

I had suggested adding the ID attribute (and others) to all widget elements earlier this year. The response was that we shouldn't tie widget code too closely to HTML output, since the intent is to use widgets to render to more than one output format.

-Adrian

Jonathon -- Improov wrote:

I did this on a private Widget Engine enhancement, along with AJAX. Unfortunately, that enhancement was licensed private months ago. Sorry. Frankly, I don't think the "id" attribute is really great. It's always possible, maybe even preferable, to reference HTML elements in a structured DOM way. I'd be willing to discuss this further if some of us are committed to working on this and putting it back to OFBiz.
Jonathon
Anil Patel wrote:
Hi,
Some Form Widget elements don't have "id" attribute. Id on html elements makes them lot easier to work with from Javascript. I'll appreciate If somebody evaluate possibility of having id attribute on all form widget
elements and possibly implement them.

Regards
Anil Patel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to