Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
This issue was raised by Andrus Adamchik:
"I used Click AJAX features and discovered that most standard
controls are not XHTML compatible. So I had to create my own ugly
formatter method to filter Field output:
public String xml(Field field) {
// fixing click bug - fields rendering is not XHTML compatible
if (field == null)
{ return ""; } String string = field.toString();
if (string.startsWith("<input"))
else if (string.startsWith("<select"))
{ string = string.replace("selected", "selected='selected'"); } return string;
}
It would be nice if the framework could generate XHTML by default or
have a flag somewhere to control it."