|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIPanel
org.ajax4jsf.component.UIAjaxRegion
org.ajax4jsf.component.html.HtmlAjaxRegion
public class HtmlAjaxRegion
Component-Type org.ajax4jsf.AjaxRegion Component-Family org.ajax4jsf.AjaxRegion Renderer-Type org.ajax4jsf.components.AjaxRegionRenderer Root view for ajax areas on the page. It must either be a nested tag inside the <body> tag inside of the <html> tag or, if selfRendered="true", it can be in any part of the page. Decode: Obtain the Map from the "requestParameterMap" property of the ExternalContext. If the value in Map for the "AJAXREQUEST" is not null, and equals to value of the "clientId" property of the component, set ajaxRequest property to true, create AjaxEvent around the component, and pass it to the queueEvent() method of the component, which must be an instance of AjaxContainer Rendering : On standart JSF request, insert <script> element with link to Ajax client-side javaScript at start tag position. If performed Ajax request, invoke listeners and render only affected to request components. List of clientId of rendered components set as special response headers and hidden <span> html element. With 'selfRendered' attribute set as "true", render affected components at Invoke Application phase - produce <html><body> elements, render affected components and set responseComplete at FacesContext. In this case, JSP page not rendered. Since, Jstl or other JSP tags must not be used inside <a4jx:region> with immediate flag.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Constructor Summary | |
---|---|
HtmlAjaxRegion()
Constructor to init default renderers |
Method Summary | |
---|---|
java.lang.String |
getFamily()
|
boolean |
isRenderRegionOnly()
Flag to disable rendering in AJAX responses content outside of active region. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setRenderRegionOnly(boolean __renderRegionOnly)
Flag to disable rendering in AJAX responses content outside of active region. |
Methods inherited from class org.ajax4jsf.component.UIAjaxRegion |
---|
addAjaxListener, broadcast, encodeAjax, encodeChildren, getAjaxListener, getAjaxListeners, isImmediate, isSelfRendered, isSubmitted, removeAjaxListener, setAjaxListener, setImmediate, setSelfRendered, setSubmitted |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
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 COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public HtmlAjaxRegion()
Method Detail |
---|
public void setRenderRegionOnly(boolean __renderRegionOnly)
renderRegionOnly
- - new valuepublic boolean isRenderRegionOnly()
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIPanel
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UIAjaxRegion
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIAjaxRegion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |