[ http://issues.apache.org/jira/browse/WICKET-56?page=comments#action_12451545 ] Gili commented on WICKET-56: ----------------------------
Yes, setRenderBodyOnly(true) makes "name" go away but it's not a solution because if the <div> was marked up with other attributes (such as CSS styles) you are stripping them away silently. That is precisely what I happen to have in my own HTML code. Can't you just get Wicket to not add the name attribute? > RadioChoice produces invalid XHTML > ---------------------------------- > > Key: WICKET-56 > URL: http://issues.apache.org/jira/browse/WICKET-56 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.2.3 > Reporter: Gili > > If a RadioChoice component is bound to a <div> tag then Wicket adds a "name" > attribute, but the XHTML validator complains that "NAME" may not be defined > for a <div>. It looks as if only the actual <input> tags are supposed to > contain "name", not the parent tag. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira