|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindoo.xpages2eclipse.tools.JSFUtil
public class JSFUtil
Utility class for JSF APIs
Constructor Summary | |
---|---|
JSFUtil()
|
Method Summary | |
---|---|
static UIComponent |
findComponent(java.lang.String compId)
Finds an UIComponent by its component identifier in the current component tree. |
static UIComponent |
findComponent(UIComponent topComponent,
java.lang.String compId)
Finds an UIComponent by its component identifier in the component tree below the specified topComponent top component. |
static java.lang.Object |
getBindingValue(java.lang.String ref)
The method creates a javax.faces.el.ValueBinding from the
specified value binding expression and returns its current value. |
static java.lang.String |
getClientId(UIComponent currentComponent,
java.lang.String compId)
This method returns the client side ID of a component, similar to what the #{id:xx} function does |
static UIComponent |
getComponentFor(UIComponent currentComponent,
java.lang.String compId)
Finds a component by its ID. |
static java.lang.Object |
getVariableValue(java.lang.String varName)
The method returns the value of a global JavaScript variable. |
static void |
setBindingValue(java.lang.String ref,
java.lang.Object newObject)
The method creates a javax.faces.el.ValueBinding from the
specified value binding expression and sets a new value for it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSFUtil()
Method Detail |
---|
public static java.lang.Object getBindingValue(java.lang.String ref)
javax.faces.el.ValueBinding
from the
specified value binding expression and returns its current value.
ref
- value binding expression, e.g. #{Bean1.property}
ref
has invalid syntaxpublic static void setBindingValue(java.lang.String ref, java.lang.Object newObject)
javax.faces.el.ValueBinding
from the
specified value binding expression and sets a new value for it.
ref
- value binding expression, e.g. #{Bean1.property}newObject
- new value for the ValueBinding
throws javax.faces.el.ReferenceSyntaxException if the specified ref
has invalid syntaxpublic static java.lang.Object getVariableValue(java.lang.String varName)
varName
- variable name
javax.faces.el.EvaluationException
- if an exception is thrown while resolving the variable namepublic static UIComponent findComponent(java.lang.String compId)
compId
- the component identifier to search for
java.lang.NullPointerException
- if compId
is nullpublic static UIComponent findComponent(UIComponent topComponent, java.lang.String compId)
topComponent
top component.
topComponent
- first component to be checkedcompId
- the component identifier to search for
java.lang.NullPointerException
- if compId
is nullpublic static UIComponent getComponentFor(UIComponent currentComponent, java.lang.String compId)
currentComponent
- starting component for searchcompId
- the component identifier to search for
public static java.lang.String getClientId(UIComponent currentComponent, java.lang.String compId)
currentComponent
- starting component for searchcompId
- the component identifier
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |