| |||||||
FRAMES NO FRAMES |
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.
<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. <?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 Class | com.sun.webui.jsf.component.IFrameTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
binding | false | false | java.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. |
width | false | false | java.lang.String | Defines the width of the iframe in pixels or as a percentage of it's container |
height | false | false | java.lang.String | Defines the height of the iframe in pixels or as a percentage of it's container |
align | false | false | java.lang.String | Specifies how to align the iframe according to the surrounding text. One of the following: left, right, top, middle, bottom |
rendered | false | false | java.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. |
id | false | true | java.lang.String | No Description |
toolTip | false | false | java.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. |
styleClass | false | false | java.lang.String | CSS style class(es) to be applied to the outermost HTML element when this component is rendered. |
longDesc | false | false | java.lang.String | A URL to a long description of the frame contents. Use it for browsers that do not support frames |
marginHeight | false | false | java.lang.String | Defines the top and bottom margins in the frame |
style | false | false | java.lang.String | CSS style(s) to be applied to the outermost HTML element when this component is rendered. |
url | false | false | java.lang.String | Defines the URL of the file to show in the frame. |
scrolling | false | false | java.lang.String | Determines scrollbar action (valid values are: yes, no, auto) |
frameBorder | false | false | java.lang.String | Set the value of the frameBorder attribute to "true" when a border is needed around the frame. |
marginWidth | false | false | java.lang.String | Defines the left and right margins in the frame |
name | false | false | java.lang.String | Defines a unique name for the frame (to use in scripts) |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |