|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.html.HtmlServices
The HtmlServices class contains several useful class fields and methods. It cannot be instantiated.
Field Summary |
Type | Field |
---|---|
static java.lang.String |
DISP_RENDERER_KEY
The field type value for Display renderer |
static java.lang.String |
EDIT_RENDERER_KEY
The field type value for Edit renderer |
static java.lang.String |
NULLSTRING
Internal: Applications should not use this field. |
static java.lang.String |
ORD_DISPLAYRENDERER_CLASSNAME
Default Intermedia Display renderer class name |
static java.lang.String |
ORD_EDITRENDERER_CLASSNAME
Default Intermedia Edit renderer class name |
static java.lang.String |
ORD_PARAM
Internal: Applications should not use this field. Key to identify request paramater list in the page context |
Constructor Summary |
HtmlServices()
|
Method Summary |
Type | Method |
---|---|
static java.lang.String |
getArrayAttributeName(AttributeDef attrDef,
int i)
Build an attribute path for a Array domain |
static HTMLFieldRenderer |
getFieldRendererFromClassName(java.lang.String sClassName,
javax.servlet.jsp.PageContext page)
Load and instanciate a Renderer class |
static java.lang.String |
getHiddenAttributeName(java.lang.String attrName)
Build the name of the hidden field used to store the original value of an attribute |
static java.lang.String |
getRendererKeyFromDomainName(java.lang.String className,
java.lang.String type)
Build a string key from a Domain class name |
static java.lang.String |
getRequestParameter(javax.servlet.jsp.PageContext pageContext,
java.lang.String key)
Retrieve a single request parameter from the request parameter list. |
static RequestParameters |
getRequestParameters(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletResponse response,
SessionCookie cookie)
Internal: Applications should not use this method. |
static RequestParameters |
getRequestParameters(javax.servlet.jsp.PageContext pageContext)
Retrieve the list of request parameters. |
static java.lang.String |
getStructAttributeName(AttributeDef attrDef,
AttributeDef subAttrDef)
Build an attribute path for a Struct domain |
static void |
internalSetAttribute(java.lang.String sName,
AttributeList attrList,
AttributeDef attrDef,
RequestParameters params,
LocaleContext locale)
Internal: Applications should not use this method. |
static void |
registerORDrenderer(javax.servlet.http.HttpSession session)
Internal: Applications should not use this method. |
static void |
releaseRequestParameters(javax.servlet.jsp.PageContext pageContext)
Internal: Applications should not use this method. |
static void |
setAttributeFromRequest(Row row,
AttributeDef attrDef,
javax.servlet.http.HttpServletRequest request,
LocaleContext locale)
Internal: Applications should not use this method. |
static void |
setAttributeFromRequestParameters(Row row,
AttributeDef attrDef,
RequestParameters params,
LocaleContext locale)
Internal: Applications should not use this method. |
static java.lang.String |
treatInvalidCharacter(java.lang.String x)
Format a String to be readable by a JavaScript method |
static void |
updateRowAttributesFromRequestParameters(DataSource ds,
Row row,
RequestParameters params)
Internal: Applications should not use this method. |
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 DISP_RENDERER_KEY
public static final java.lang.String EDIT_RENDERER_KEY
public static final java.lang.String ORD_DISPLAYRENDERER_CLASSNAME
public static final java.lang.String ORD_EDITRENDERER_CLASSNAME
public static final java.lang.String ORD_PARAM
public static final java.lang.String NULLSTRING
Constructor Detail |
public HtmlServices()
Method Detail |
public static RequestParameters getRequestParameters(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletResponse response, SessionCookie cookie) throws java.io.IOException
Retrieve the list of request parameters
public static void releaseRequestParameters(javax.servlet.jsp.PageContext pageContext)
Release resources associated with the request parameters list
public static RequestParameters getRequestParameters(javax.servlet.jsp.PageContext pageContext)
pageContext
- PageContext of the current JSPRequestParameters
public static java.lang.String getRequestParameter(javax.servlet.jsp.PageContext pageContext, java.lang.String key)
pageContext
- PageContext of the current JSPkey
- name of the request parameter to retrievepublic static void updateRowAttributesFromRequestParameters(DataSource ds, Row row, RequestParameters params) throws java.lang.InstantiationException, java.lang.IllegalAccessException
public static void internalSetAttribute(java.lang.String sName, AttributeList attrList, AttributeDef attrDef, RequestParameters params, LocaleContext locale)
public static void setAttributeFromRequestParameters(Row row, AttributeDef attrDef, RequestParameters params, LocaleContext locale) throws java.lang.IllegalAccessException, java.lang.InstantiationException
public static void setAttributeFromRequest(Row row, AttributeDef attrDef, javax.servlet.http.HttpServletRequest request, LocaleContext locale) throws java.lang.IllegalAccessException, java.lang.InstantiationException
public static java.lang.String getHiddenAttributeName(java.lang.String attrName)
attrName
- Name of the attributepublic static void registerORDrenderer(javax.servlet.http.HttpSession session)
public static java.lang.String getRendererKeyFromDomainName(java.lang.String className, java.lang.String type)
This key is used to identify the renderer associated with a Domain.
className
- Class name of the domaintype
- Renderer type ("DISPLAY" or "EDIT")public static HTMLFieldRenderer getFieldRendererFromClassName(java.lang.String sClassName, javax.servlet.jsp.PageContext page)
Errors are reported to a servlet log file.
className
- Class name of the rendererpage
- pageContext PageContext of the current JSPpublic static java.lang.String getStructAttributeName(AttributeDef attrDef, AttributeDef subAttrDef)
attrDef
- Attribute definition of the Struct classsubAttrDef
- Attribute definition of the attribute inside the Struct classpublic static java.lang.String getArrayAttributeName(AttributeDef attrDef, int i)
attrDef
- Attribute definition of the Array classi
- index of the current Array elementpublic static java.lang.String treatInvalidCharacter(java.lang.String x)
Replace \ by \\, ' by \' and " by \".
x
- string to format
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |