[richfaces-issues] [JBoss JIRA] Updated: (RF-1641) ScrollableDataTableRenderer Emits Iframe Element with no src Attribute

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Dec 13 13:39:54 EST 2007


     [ http://jira.jboss.com/jira/browse/RF-1641?page=all ]

Nick Belaevski updated RF-1641:
-------------------------------

    Fix Version/s: 3.2.0
         Assignee: Maksim Kaszynski

> ScrollableDataTableRenderer Emits Iframe Element with no src Attribute
> ----------------------------------------------------------------------
>
>                 Key: RF-1641
>                 URL: http://jira.jboss.com/jira/browse/RF-1641
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.1.2
>         Environment: All
>            Reporter: atait
>         Assigned To: Maksim Kaszynski
>             Fix For: 3.2.0
>
>
> The rich:scrollableDataTable is emitting a few HTML iframe elements that have no src attribute.  This causes IE6, with default configuration, to post a warning to the user when running over SSL.  The reason for this, per Microsoft, is that IE6 is not able to determine if the iframe is using secure or not.  Although this issue does not appear to be present in IE7 and Firefox, many web application users are accessing sites (our sites) with IE6.  There is a config change that can be made for IE6 to enable mixed content and avoid the warning.  However, not an acceptable solution.
> You will see in the code below that the src attribute is included but later ingored when length is 0
> The code from ScrollableDataTableRenderer:
>         writer.startElement("iframe", component);
>         getUtils().writeAttribute(writer, "class", "dr-sdt-substrate");
>         getUtils().writeAttribute(writer, "frameborder", "0");
>         getUtils().writeAttribute(writer, "id", convertToString(clientId) + ":hs");
>         getUtils().writeAttribute(writer, "scrolling", "no");
>         getUtils().writeAttribute(writer, "src", "");
>         writer.startElement("br", component);
>         writer.endElement("br");
>         writer.endElement("iframe");
> The code from ComponentUtils:
> 	public static void writeAttribute(ResponseWriter writer, String attribute, Object value ) throws IOException {
> 		if ( (value != null) && (value.toString().length()!=0) ) {
> 			writer.writeAttribute(attribute, value.toString(), attribute );
> 		}
> 	}
> Note that there are two places where the iframe element is written in this class

-- 
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