|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.data.DataBoundValue
public class DataBoundValue
DataBoundValue implements BoundValue to retrieve a DataObject from the current rendering context, and perform a select on that object.
Constructor Summary | |
---|---|
DataBoundValue(java.lang.Object select)
Creates a BoundValue bound to the context's "current data object". |
|
DataBoundValue(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.Object select)
Creates a BoundValue bound to a named data object on the context. |
Method Summary | |
---|---|
java.lang.String |
getLocalName()
Returns the local name. |
java.lang.String |
getNamespaceURI()
Returns the namespace. |
java.lang.Object |
getSelect()
Returns the select key. |
java.lang.Object |
getValue(UIXRenderingContext context)
Called to retrieve a value based on the current rendering context. |
static void |
handleException(UIXRenderingContext context,
java.lang.RuntimeException exception)
Handles a RuntimeException; the exception is swallowed after being logged. |
static void |
handleException(UIXRenderingContext context,
java.lang.Throwable throwable)
Handles a Throwable; the exception is swallowed after being logged. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataBoundValue(java.lang.Object select)
return context.getCurrentDataObject().selectValue(context, select);
select
- the select stringpublic DataBoundValue(java.lang.String namespaceURI, java.lang.String localName, java.lang.Object select)
return context.getDataObject(namespaceURI, localName). selectValue(context, select);If the select string is null, DataBoundValue will directly return the named data object:
return context.getDataObject(namespaceURI, localName);
namespaceURI
- the namespace of the DataObject to uselocalName
- the name of the DataObject to useselect
- the select stringMethod Detail |
---|
public java.lang.Object getValue(UIXRenderingContext context)
getValue
in interface BoundValue
context
- the rendering contextpublic java.lang.Object getSelect()
public java.lang.String getLocalName()
public java.lang.String getNamespaceURI()
public static void handleException(UIXRenderingContext context, java.lang.Throwable throwable)
public static void handleException(UIXRenderingContext context, java.lang.RuntimeException exception)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |