public class ComponentCreationListener extends Object
onComponentCreated
must be called.
This method should be overridden to resolve the dependency.Constructor and Description |
---|
ComponentCreationListener(javax.faces.component.UIComponent component,
String id,
String property)
The base constructor of a ComponentCreationListener
|
Modifier and Type | Method and Description |
---|---|
protected javax.faces.component.UIComponent |
getComponent()
Returns the component that has a dependency that needs to e resolved.
|
String |
getComponentId()
Returns the absolute id of the component that needs its dependency to be
resolved.
|
String |
getDependencyId()
Returns the absolute id of the component that is needed to resolve this
dependency.
|
protected String |
getJSMethod()
Returns a String that represents the javascript method from a property.
|
String |
getProperty()
Returns the property that needs to be refreshed by the resolved dependency.
|
void |
onComponentCreated(Writer writer,
javax.faces.component.UIComponent depComponent)
Emits the javascript code to set the javascript property, if needed.
|
public ComponentCreationListener(javax.faces.component.UIComponent component, String id, String property)
component
- The component that has an unresolved dependency.id
- The id of the component that is needed.property
- The property.protected javax.faces.component.UIComponent getComponent()
public String getProperty()
public String getComponentId()
public String getDependencyId()
public void onComponentCreated(Writer writer, javax.faces.component.UIComponent depComponent) throws IOException
writer
- The writer to print into.depComponent
- The resolved component on which a dependency was registered.IOException
protected String getJSMethod()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.