Skip navigation links
org.apache.myfaces.trinidad.component.html
Class HtmlMeta
java.lang.Object
javax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.html.HtmlMeta
- All Implemented Interfaces:
- javax.faces.component.StateHolder
-
public class HtmlMeta
- extends UIXComponentBase
<html:p> The meta component supports generating an html meta tag for things like reloading the page or configuring viewport characteristics like these: <html:ul> <html:li><html:pre><meta name="viewport" content="width=device-width, user-scalable=no"></html:pre></html:li> <html:li><html:pre><meta name="apple_mobile_web_app_capable" content="yes"></html:pre></html:li> <html:li><html:pre><meta http-equiv="refresh" content="2;url=./test/index.jspx"></html:pre></html:li> </html:ul> It is also important to note that a meta HTML tag cannot have an ID so the component ID will not be seen in the browser source. </html:p>
Events:
| Type |
Phases |
Description |
org.apache.myfaces.trinidad.event.AttributeChangeEvent |
Invoke Application
Apply Request Values |
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. |
| Fields inherited from class javax.faces.component.UIComponent |
bindings |
| Constructor Summary |
|
HtmlMeta()
Construct an instance of the HtmlMeta. |
protected |
HtmlMeta(java.lang.String rendererType)
Construct an instance of the HtmlMeta. |
| Method Summary |
protected FacesBean.Type |
getBeanType()
|
java.lang.String |
getContent()
Gets the content for the meta tag |
java.lang.String |
getFamily()
|
java.lang.String |
getName()
Gets the name or the http-equiv attribute for the meta tag (see the type attribute for further configuration) |
java.lang.String |
getType()
Gets how the name attribute is used. |
void |
setContent(java.lang.String content)
Sets the content for the meta tag |
void |
setName(java.lang.String name)
Sets the name or the http-equiv attribute for the meta tag (see the type attribute for further configuration) |
void |
setType(java.lang.String type)
Sets how the name attribute is used. |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcast, broadcastToMethodBinding, broadcastToMethodExpression, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getComponentChangeFilters, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getParent, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnChildrenComponents, invokeOnComponent, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, restoreState, satisfiesPartialTrigger, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, toString, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpl |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponent |
addPartialTarget, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setUpEncodingContext, setupVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitTree, visitTree |
| Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_NAME
public static final java.lang.String TYPE_NAME
-
- See Also:
- Constant Field Values
TYPE_HTTP_EQUIV
public static final java.lang.String TYPE_HTTP_EQUIV
-
- See Also:
- Constant Field Values
TYPE
public static final FacesBean.Type TYPE
NAME_KEY
public static final PropertyKey NAME_KEY
TYPE_KEY
public static final PropertyKey TYPE_KEY
CONTENT_KEY
public static final PropertyKey CONTENT_KEY
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
-
- See Also:
- Constant Field Values
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
-
- See Also:
- Constant Field Values
HtmlMeta
public HtmlMeta()
- Construct an instance of the HtmlMeta.
HtmlMeta
protected HtmlMeta(java.lang.String rendererType)
- Construct an instance of the HtmlMeta.
getName
public final java.lang.String getName()
- Gets the name or the http-equiv attribute for the meta tag (see the type attribute for further configuration)
-
- Returns:
- the new name value
setName
public final void setName(java.lang.String name)
- Sets the name or the http-equiv attribute for the meta tag (see the type attribute for further configuration)
-
- Parameters:
name - the new name value
getType
public final java.lang.String getType()
- Gets how the name attribute is used. Options are:
- name - for "name" which is the most common use for meta tags
- httpEquiv - for "http-equiv" which is the used in some legacy meta tags
-
- Returns:
- the new type value
setType
public final void setType(java.lang.String type)
- Sets how the name attribute is used. Options are:
- name - for "name" which is the most common use for meta tags
- httpEquiv - for "http-equiv" which is the used in some legacy meta tags
-
- Parameters:
type - the new type value
getContent
public final java.lang.String getContent()
- Gets the content for the meta tag
-
- Returns:
- the new content value
setContent
public final void setContent(java.lang.String content)
- Sets the content for the meta tag
-
- Parameters:
content - the new content value
getFamily
public java.lang.String getFamily()
-
- Specified by:
getFamily in class UIXComponentBase
getBeanType
protected FacesBean.Type getBeanType()
-
- Overrides:
getBeanType in class UIXComponentBase
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.