[richfaces-issues] [JBoss JIRA] Resolved: (RF-2331) Template generator works incorrect with JDK 1.6.
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Tue Feb 26 21:45:42 EST 2008
[ http://jira.jboss.com/jira/browse/RF-2331?page=all ]
Nick Belaevski resolved RF-2331.
--------------------------------
Resolution: Duplicate Issue
> Template generator works incorrect with JDK 1.6.
> ------------------------------------------------
>
> Key: RF-2331
> URL: http://jira.jboss.com/jira/browse/RF-2331
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: $ mvn --version
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "linux" version: "2.6.24-1-amd64" arch: "amd64" Family: "unix"
> Reporter: Sergey Halipov
>
> EL expressions in inplaceinput.jspx template are incorrect processed. It works fine with JDK 1.5.
> Template code:
> <input id='#{clientId}tempValue'
> class='rich-inplace-field'
> style='display:none;'
> type='text'
> maxlength='#{component.attributes["inputMaxLength"]}'
> autocomplete="off"
> value='#{fieldValue}'
> tabindex='#{component.attributes["tabindex"]}'
> onchange='#{component.attributes["onchange"]}'
> onselect='#{component.attributes["onselect"]}'
> onblur='#{component.attributes["onblur"]}'
> onfocus='#{component.attributes["onfocus"]}'
> onclick='#{component.attributes["oninputclick"]}'
> ondblclick='#{component.attributes["oninputdblclick"]}'
> onkeydown='#{component.attributes["oninputkeydown"]}'
> onkeypress='#{component.attributes["oninputkeypress"]}'
> onkeyup='#{component.attributes["oninputkeyup"]}'
> onmousedown='#{component.attributes["oninputmousedown"]}'
> onmousemove='#{component.attributes["oninputmousemove"]}'
> onmouseout='#{component.attributes["oninputmouseout"]}'
> onmouseover='#{component.attributes["oninputmouseover"]}'
> onmouseup='#{component.attributes["oninputmouseup"]}'
>
> />
> Generated Java code:
> writer.startElement("input", component);
> getUtils().writeAttribute(writer, "autocomplete", "off" );
> getUtils().writeAttribute(writer, "class", "rich-inplace-field" );
> getUtils().writeAttribute(writer, "id", convertToString(clientId) + "tempValue" );
> getUtils().writeAttribute(writer, "maxlength", component.getAttributes().get("inputMaxLength") );
> getUtils().writeAttribute(writer, "onblur", component.getAttributes().get("onblur") );
> getUtils().writeAttribute(writer, "onchange", component.getAttributes().get("onchange") );
> getUtils().writeAttribute(writer, "onclick", "#{component.attributes[\"oninputdblclick" );
> getUtils().writeAttribute(writer, "ondblclick", component.getAttributes().get("oninputdblclick") );
> getUtils().writeAttribute(writer, "onfocus", component.getAttributes().get("onfocus") );
> getUtils().writeAttribute(writer, "onkeydown", "#{component.attributes[\"oninputkeypress\"]" );
> getUtils().writeAttribute(writer, "onkeypress", component.getAttributes().get("oninputkeypress") );
> getUtils().writeAttribute(writer, "onkeyup", "#{component.attributes[\"oninputmousedow" );
> getUtils().writeAttribute(writer, "onmousedown", component.getAttributes().get("oninputmousedown") );
> getUtils().writeAttribute(writer, "onmousemove", convertToString(component.getAttributes().get("oninputmouseout")) + "}" );
> getUtils().writeAttribute(writer, "onmouseout", component.getAttributes().get("oninputmouseout") );
> getUtils().writeAttribute(writer, "onmouseover", convertToString(component.getAttributes().get("oninputmouseup")) + "]}" );
> getUtils().writeAttribute(writer, "onmouseup", component.getAttributes().get("oninputmouseup") );
> getUtils().writeAttribute(writer, "onselect", component.getAttributes().get("onselect") );
> getUtils().writeAttribute(writer, "style", "display:none;" );
> getUtils().writeAttribute(writer, "tabindex", component.getAttributes().get("tabindex") );
> getUtils().writeAttribute(writer, "type", "text" );
> getUtils().writeAttribute(writer, "value", variables.getVariable("fieldValue") );
>
> writer.endElement("input");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list