Hello List,

Maybe this should be more on the click-developers list, but here we go. 

In the Textfield class the size attribute is always set, regardless of
the value of size. Since the size-attribute is optional for the input
tag, I would like it to be conditional, just as it is the case with
maxLength and tabIndex. It now severely ruins the looks of the
FormTable, since it contains size="20" textfields, while the css-style
on the column defines the width (in my case).

Subclassing TextField, overriding render() and yanking out the
appendAttribute(getSize()) is an option, but why not make unused
attributes optional?

The JavaDoc even points to the W3C spec, where we can see most of the
attributes are #IMPLIED  :)

Greets,

WarnerJan Veldhuis

Reply via email to