Package org.eclnt.jsfserver.elements
Class ComponentDump
java.lang.Object
org.eclnt.jsfserver.elements.ComponentDump
- All Implemented Interfaces:
Serializable
Class holds a dump of attributes for each component. The dump
is used to store the request data of a previous request in
order not to send unchanged attributed to the client processing.
In addition some other aspects are stored with the dump - because it is the central object that is stored inside the http session context.
In addition some other aspects are stored with the dump - because it is the central object that is stored inside the http session context.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEncodedComponent
(String id, javax.faces.component.UIComponent component) void
addNewXMLNode
(String name) void
addNewXMLNode
(String name, boolean isNewNode) void
addNewXMLNodeAttribute
(String name, String value) void
addNewXMLNodeText
(String text) void
addPreparedXML
(String xml) boolean
checkIfControlAttributeWasChangedDuringDecode
(String id, String attribute) boolean
void
void
Returns all content replaces of the whole stack.getDecodedValue
(String id, String attribute) long
Each request gets assigned a sequence id.boolean
True if the request was skipped bySkipRenderMgr
management.boolean
void
void
pushIncludePage
(String page, String contentReplaceWithDrillDown, String contentReplace, String clientName) void
registerChangeInControlDuringDecode
(String id, String attribute, String value) void
setRequestSequenceId
(long requestId) void
setRequestWasSkipped
(boolean requestWasSkipped) updateIncludedReference
(String reference) Transfers a relative reference into an absolute.void
void
void
writeXMLNodeToWriter
(Writer writer)
-
Field Details
-
ATTR_CURRENT
- See Also:
-
ATTR_PREVIOUS
- See Also:
-
-
Constructor Details
-
ComponentDump
public ComponentDump()
-
-
Method Details
-
currentRequestIsAutoTriggered
public void currentRequestIsAutoTriggered() -
isAutoTriggered
public boolean isAutoTriggered() -
registerChangeInControlDuringDecode
-
checkIfControlWasChangedDuringDecode
-
checkIfControlAttributeWasChangedDuringDecode
-
getDecodedValue
-
getRequestSequenceId
public long getRequestSequenceId()Each request gets assigned a sequence id. This id is used in the delta management: components keep the sequenceId of the last rendering. In case a component finds that the previous dump is not the one it did render for, then if re-renders its full state without delta manaegment. -
setRequestSequenceId
public void setRequestSequenceId(long requestId) -
getRequestWasSkipped
public boolean getRequestWasSkipped()True if the request was skipped bySkipRenderMgr
management. -
setRequestWasSkipped
public void setRequestWasSkipped(boolean requestWasSkipped) -
pushIncludePage
-
getCurrentPageRoot
-
getCurrentPage
-
getCurrentContentReplaceWithDrillDown
Returns all content replaces of the whole stack. -
getCurrentContentReplace
- Returns:
- content replace that is valid for the current page only (no drill down content replaces are considered!).
-
popIncludePage
public void popIncludePage() -
updateIncludedReference
Transfers a relative reference into an absolute. Called by all components that pass references to the client. -
getCurrentXMLNode
-
addNewXMLNode
-
addPreparedXML
-
addNewXMLNode
-
addNewXMLNodeAttribute
-
addNewXMLNodeText
-
closeXMLNode
public void closeXMLNode() -
getCurrentTopXMLNode
-
writeXMLNodeToWriter
- Throws:
IOException
-
writeXMLNodeChangedMarker
public void writeXMLNodeChangedMarker() -
writeSubXMLNodesChangedMarker
public void writeSubXMLNodesChangedMarker() -
getCurrentClientNamePrefix
-
addEncodedComponent
-