Adnan,
You're right! I think you found a related bug!
In the ICEfaces 1.5.3 code, InputFileRenderer.getIframe() was doing this:
if (((InputFile) uiComponent).getStyle() != null)
{
iframe.setAttribute(HTML.STYLE_ATTR,
((InputFile) uiComponent).getStyle());
}
Which would basically set the "style" attribute of the rendered <iframe> element to whatever the value was for the <ice:inputFile/> style attribute.
This feature is not present in the current/equivalent InputFileRenderer.encodeEnd() method.
Instead, InputFileRender.encodeEnd() is doing this:
writer.writeAttribute("style", "overflow: hidden;", null);
So I recommend changing this to:
writer.writeAttribute("style", c.getStyle(), null);
And adding "overflow:hidden" to the getStyle() method in InputFile.java, so that it looks like this:
"overflow: hidden; border-collapse:collapse; border-spacing:0px; width:" + width + "px; height:" + height + "px; padding:0px;";
Thanks!!
Neil
Search for
ICE-1604in attached files for fixes.