webuijsf
Tag iframe


Use the webuijsf:iframe tag  to create an inline frame in the rendered HTML page. The webuijsf:iframe tag inserts a frame in which another web page can be displayed inside the web application page.

HTML Elements and Layout

The iframe component is rendered as an <iframe> XHTML element.  The webuijsf:iframe tag can be configured by using the tag's attributes, which map to the <iframe> properties and are similarly named.

Theme Identifiers

None.

Client Side Javascript Functions

None.

Example

Example 1: Using the webuijsf:iframe tag appropriately in a JSP page:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/web/webuijsf">
    <jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="UTF-8"/><f:view>
       <webuijsf:page frame="true">
           <webuijsf:html>
               <webuijsf:head title="blah" />
               <webuijsf:body>
                 <webuijsf:staticText id="text1" text="Below is a frame within this page without a frameset" />
                 <webuijsf:markup tag="br" singleton="true" />
                 <webuijsf:iframe url="http://google.com" />
              </webuijsf:body>
           </webuijsf:html>
       </webuijsf:page>
    </f:view>
</jsp:root>


Tag Information
Tag Classcom.sun.webui.jsf.component.IFrameTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
bindingfalsefalsejava.lang.String A ValueExpression that resolves to the UIComponent that corresponds to this tag. This attribute allows the Java bean that contains the UIComponent to manipulate the UIComponent, its properties, and its children.
widthfalsefalsejava.lang.String

Defines the width of the iframe in pixels or as a percentage of it's container

heightfalsefalsejava.lang.String

Defines the height of the iframe in pixels or as a percentage of it's container

alignfalsefalsejava.lang.String

Specifies how to align the iframe according to the surrounding text. One of the following: left, right, top, middle, bottom

renderedfalsefalsejava.lang.String Use the rendered attribute to indicate whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.
idfalsetruejava.lang.StringNo Description
toolTipfalsefalsejava.lang.String

Sets the value of the title attribute for the HTML element. The specified text will display as a tooltip if the mouse cursor hovers over the HTML element.

styleClassfalsefalsejava.lang.String

CSS style class(es) to be applied to the outermost HTML element when this component is rendered.

longDescfalsefalsejava.lang.String

A URL to a long description of the frame contents. Use it for browsers that do not support frames

marginHeightfalsefalsejava.lang.String

Defines the top and bottom margins in the frame

stylefalsefalsejava.lang.String

CSS style(s) to be applied to the outermost HTML element when this component is rendered.

urlfalsefalsejava.lang.String

Defines the URL of the file to show in the frame.

scrollingfalsefalsejava.lang.String

Determines scrollbar action (valid values are: yes, no, auto)

frameBorderfalsefalsejava.lang.String

Set the value of the frameBorder attribute to "true" when a border is needed around the frame.

marginWidthfalsefalsejava.lang.String

Defines the left and right margins in the frame

namefalsefalsejava.lang.String

Defines a unique name for the frame (to use in scripts)


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.