In xml and xhtml however, you cannot have an attribute without an assigned value. Wicket is doing it properly. See here for more:
http://www.w3schools.com/xhtml/xhtml_syntax.asp --Andrew --- Nathan Hamblen <[EMAIL PROTECTED]> wrote: > Is there any support for what W3C calls boolean > attributes? (Boolean > attributes are those that shouldn't have an assigned > value, they're just > there or not there.) > > I need to enable and disable form components in > subsequent requests and > I'm having a hard time with AttributeModifier. It > insists on giving > attributes a value, so I have it put in "TRUE" and > it outputs > 'disabled="TRUE"'. That's not really correct but it > works. > > I overrode AttributeModifier's isEnabled() method to > return false when I > do want the components enabled, but in that case it > outputs > 'disabled="disabled"'. That doesn't seem right, > since the modifier is > disabled and the attribute isn't in the template. > Luckily though, the > weird markup actually works as hoped in IE and > Firefox. > > Could AttributeModifier be a little smarter and > handle boolean > attributes? I'd rather not be spewing out this nutty > HTML if I can help > it, but I'd hate to have to subclass each kind of > form component just > for this. > > Nathan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user