public abstract class BaseClientElement extends Object implements ClientElement
id
attribute, but only if it is
requested. Subclasses should invoke storeElement(org.apache.tapestry5.dom.Element)
when they begin an element that requires an id.Modifier and Type | Field and Description |
---|---|
protected JavaScriptSupport |
javaScriptSupport |
protected ComponentResources |
resources |
Constructor and Description |
---|
BaseClientElement() |
Modifier and Type | Method and Description |
---|---|
String |
getClientId()
When invoked the first time (per request), a unique id is assigned and and id attribute added to the element for
the component.
|
protected void |
storeElement(Element element)
Invoked (usually from a
BeginRender phase method) to assigned
the element, and clear the clientId (only relevant for components that render in a loop). |
@Inject protected ComponentResources resources
@Environmental protected JavaScriptSupport javaScriptSupport
public BaseClientElement()
protected void storeElement(Element element)
BeginRender
phase method) to assigned
the element, and clear the clientId (only relevant for components that render in a loop).public String getClientId()
getClientId
in interface ClientElement
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.