|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j2ee.blueprints.ui.util.Util
Field Summary | |
static java.lang.String |
UI_COMMON_DOJO_RESOURCE
|
static java.lang.String |
UI_COMMON_SCRIPT_RESOURCE
|
static java.lang.String |
UI_LOG_STRINGS
|
static java.lang.String |
UI_LOGGER
|
static java.lang.String |
UI_MESSAGE_STRINGS
|
static java.lang.String |
UTIL_LOGGER
|
Method Summary | |
static javax.faces.el.MethodBinding |
createConstantMethodBinding(java.lang.String outcome)
|
static java.util.logging.Logger |
getLogger(java.lang.String loggerName)
|
static java.lang.String |
getMessage(java.lang.String key)
Return the message text for the specified key, localized by the Locale in the view root of the current response. |
static javax.faces.el.ValueBinding |
getValueExpression(java.lang.String exprString,
java.lang.Class expectedType,
javax.faces.context.FacesContext context)
|
static java.lang.String |
renderBooleanPassthruAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render any boolean "passthru" attributes. |
static void |
renderDojoLoading(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
Render script to dynamically load DOJO if it has not already been loaded (which could have been by the user manually including it, so we cannot rely on a request scope attribute to check). |
static java.lang.String |
renderPassthruAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render any "passthru" attributes, where we simply just output the raw name and value of the attribute. |
static void |
renderResourceOnce(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String pathToResource,
java.lang.String contentType)
Render a resource once per request, such as a javascript <script> tag. |
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 UI_MESSAGE_STRINGS
public static final java.lang.String UTIL_LOGGER
public static final java.lang.String UI_LOG_STRINGS
public static final java.lang.String UI_LOGGER
public static final java.lang.String UI_COMMON_DOJO_RESOURCE
public static final java.lang.String UI_COMMON_SCRIPT_RESOURCE
Method Detail |
public static java.util.logging.Logger getLogger(java.lang.String loggerName)
public static java.lang.String renderBooleanPassthruAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Render any boolean "passthru" attributes.
context
- FacesContext
for the current requestcomponent
- UIComponent
being renderedpublic static void renderDojoLoading(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer) throws java.io.IOException
Render script to dynamically load DOJO if it has not already been loaded (which could have been by the user manually including it, so we cannot rely on a request scope attribute to check).
WARNING - The JavaScript code rendered by this method assumes you have previously loaded the UI_COMMON_SCRIPT_RESOURCE JavaScript resource.
context
- FacesContext
for the current requestwriter
- ResponseWriter for the current page
- Throws:
java.io.IOException
- if an input/output error occurs
public static java.lang.String renderPassthruAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static javax.faces.el.ValueBinding getValueExpression(java.lang.String exprString, java.lang.Class expectedType, javax.faces.context.FacesContext context)
public static void renderResourceOnce(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String pathToResource, java.lang.String contentType) throws java.io.IOException
Render a resource once per request, such as a javascript <script> tag.
context
- The FacesContextwriter
- The ResponseWriter to usecomponent
- The component that needs the resource (used for designtime purposes).pathToResource
- The path to the resource, e.g., "/META-INF/autocomplete/script.js"contentType
- The content type, e.g., "text/javascript"
java.io.IOException
public static javax.faces.el.MethodBinding createConstantMethodBinding(java.lang.String outcome)
public static java.lang.String getMessage(java.lang.String key)
Return the message text for the specified key, localized by the
Locale
in the view root of the current response.
key
- Message key to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |