You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/08/22 11:29:54 UTC
svn commit: r1160157 -
/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java
Author: lofwyr
Date: Mon Aug 22 09:29:54 2011
New Revision: 1160157
URL: http://svn.apache.org/viewvc?rev=1160157&view=rev
Log:
TOBAGO-1020: The iframe from tc:object should not render a frame in IE
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java?rev=1160157&r1=1160156&r2=1160157&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ObjectRenderer.java Mon Aug 22 09:29:54 2011
@@ -17,7 +17,6 @@ package org.apache.myfaces.tobago.render
* limitations under the License.
*/
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SRC;
import org.apache.myfaces.tobago.context.ResourceManagerUtil;
import org.apache.myfaces.tobago.renderkit.LayoutableRendererBase;
import org.apache.myfaces.tobago.renderkit.html.HtmlAttributes;
@@ -29,11 +28,14 @@ import javax.faces.component.UIComponent
import javax.faces.context.FacesContext;
import java.io.IOException;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SRC;
+
public class ObjectRenderer extends LayoutableRendererBase {
public void encodeEnd(FacesContext facesContext, UIComponent component)
throws IOException {
TobagoResponseWriter writer = HtmlRendererUtil.getTobagoResponseWriter(facesContext);
writer.startElement(HtmlConstants.IFRAME, component);
+ writer.writeAttribute(HtmlAttributes.FRAMEBORDER, "0", false);
writer.writeIdAttribute(component.getClientId(facesContext));
writer.writeNameAttribute(component.getClientId(facesContext));
Object src = component.getAttributes().get(ATTR_SRC);