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



Reply via email to