|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.flex.ui.common.JSFUtils
public class JSFUtils
General useful static utilies for working with JSF. NOTE: Updated to use JSF 1.2 ExpressionFactory.
Constructor Summary | |
---|---|
JSFUtils()
|
Method Summary | |
---|---|
static void |
displayConfirmationMessage(java.lang.String confirmHeader,
java.lang.String confirmText)
Display the confirmation message for given message header and text string. |
static void |
displayErrorMessage(java.lang.String message)
Method to display error message |
static void |
displayWarningMessage(java.lang.String message)
Method to display warning message |
static java.lang.Object |
evaluateEL(java.lang.String el)
|
static java.lang.Object |
evaluateExpr(java.lang.String pExpr,
java.lang.Class pClass)
Evalutates the given expression |
static javax.faces.context.FacesContext |
getFacesContext()
Get FacesContext. |
static java.lang.String |
getFlexAdminMLSString(java.lang.String msgKey)
Gets Translated message for given key. |
static java.lang.String |
getFlexAdminMLSString(java.lang.String msgKey,
java.lang.Object... pTokens)
Gets Translated message for given key and token. |
static java.lang.String |
getTranslatedLabel(java.lang.String pRbName,
java.lang.String pRbKey,
java.lang.Object... pTokens)
Returns the translated String from the given resource bundle with the given key and token values. |
static java.lang.Object |
invokeEL(java.lang.String el)
Programmatic invocation of a method that an EL evaluates to. |
static java.lang.Object |
invokeEL(java.lang.String el,
java.lang.Class[] paramTypes,
java.lang.Object[] params)
Programmatic invocation of a method that an EL evaluates to. |
static java.lang.Object |
resolveExpression(java.lang.String expression)
Method for taking a reference to a JSF binding expression and returning the matching object (or creating it). |
static void |
setEL(java.lang.String el,
java.lang.Object val)
Sets a value into an EL object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSFUtils()
Method Detail |
---|
public static java.lang.Object evaluateEL(java.lang.String el)
public static java.lang.Object invokeEL(java.lang.String el)
el
- EL of the method to invoke
public static java.lang.Object invokeEL(java.lang.String el, java.lang.Class[] paramTypes, java.lang.Object[] params)
el
- EL of the method to invokeparamTypes
- Array of Class defining the types of the parametersparams
- Array of Object defining the values of the parameters
public static void setEL(java.lang.String el, java.lang.Object val)
from
is
not an EL. You can get similar behavior by using the
following...setEL(to, evaluateEL(from))
el
- EL object to assign a valueval
- Value to assignpublic static java.lang.Object resolveExpression(java.lang.String expression)
expression
- EL expression
public static java.lang.Object evaluateExpr(java.lang.String pExpr, java.lang.Class pClass)
public static java.lang.String getTranslatedLabel(java.lang.String pRbName, java.lang.String pRbKey, java.lang.Object... pTokens)
pRbName
- fully qualified name of the resource bundle.
This could be a XLIFF resource bundle or a Java resource bundle.pRbKey
- key for the resource in the bundlepTokens
- any tokens for the resource that need to be
substituted.
public static java.lang.String getFlexAdminMLSString(java.lang.String msgKey)
msgKey
-
public static java.lang.String getFlexAdminMLSString(java.lang.String msgKey, java.lang.Object... pTokens)
msgKey
- pTokens
-
public static void displayErrorMessage(java.lang.String message)
message
- public static void displayWarningMessage(java.lang.String message)
message
- public static void displayConfirmationMessage(java.lang.String confirmHeader, java.lang.String confirmText)
confirmHeader
- Confirmation Header message to be displayedconfirmText
- Confirmation Text Message to be displayedpublic static javax.faces.context.FacesContext getFacesContext()
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |