|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.external.jsf.JsfFacadeShared
public class JsfFacadeShared
Shared methods for the jsf part of the framework.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_ANNOTATION_VALIDATOR_LOCATION
Stores the AnnotationValidator implementation class under servlet context using this key, used by JvJsfContextListener. |
static java.lang.String |
KEY_JSF_CONFIGURATION_LOCATION
See JsfFacadeShared, this one is here for backwards compatibility only. |
static java.lang.String |
KEY_LOOKUP_VALIDATOR_NAME
If set to the webapplication scope denotes that the validator must be looked up using this name, using either Spring or JSF context. |
| Constructor Summary | |
|---|---|
JsfFacadeShared()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
addExpression(java.lang.String expression)
Makes an expression for given text. |
static boolean |
containsExpression(java.lang.String value)
Returns true if given value contains an expression (somewhere in the text). |
static AnnotationValidator |
findAnnotationValidator(javax.faces.context.FacesContext context)
This method attempts to locate an AnnotationValidator, does NOT initiate one. |
static boolean |
isExpression(java.lang.String value)
Checks if given value starts with #{ or ${ and ends with }, like a jsf expression. |
static JsfFacade |
newJsfFacade()
Attempts to create a new JsfFacade in either 1.1 or 1.2 version and returns it. |
static java.lang.String |
removeExpression(java.lang.String expression)
For given expression string strips the jsf tags, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_ANNOTATION_VALIDATOR_LOCATION
public static final java.lang.String KEY_JSF_CONFIGURATION_LOCATION
JsfFacadeShared,
Constant Field Valuespublic static final java.lang.String KEY_LOOKUP_VALIDATOR_NAME
| Constructor Detail |
|---|
public JsfFacadeShared()
| Method Detail |
|---|
public static final AnnotationValidator findAnnotationValidator(javax.faces.context.FacesContext context)
context - The facescontext to check
JavalidException - if the validator could not be foundpublic static final java.lang.String addExpression(java.lang.String expression)
expression - The text to make an expression from
public static final java.lang.String removeExpression(java.lang.String expression)
expression - The expression to strip off #{}, or ${}
public static final boolean isExpression(java.lang.String value)
value - The value to check
public static final boolean containsExpression(java.lang.String value)
value - The value to check
public static final JsfFacade newJsfFacade()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||