component.markInitialState();
child.clearInitialState(); state = child.saveState(facesContext); child.markInitialState();
if (childInitialState != null) { component.restoreState(facesContext, childInitialState); component.markInitialState(); component.restoreState(facesContext, childState); component.markInitialState();
public void markInitialState() { _delegate.markInitialState(); }
public void markInitialState() { _delegate.markInitialState(); }
public void markInitialState() { _delegate.markInitialState(); }
private void markInitialState(final UIComponent component) { component.markInitialState(); for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); if (!child.isTransient()) { markInitialState(child); } } }
private void markInitialState(final UIComponent component) { component.markInitialState(); for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); if (!child.isTransient()) { markInitialState(child); } } }
private void markInitialState(final UIComponent component) { component.markInitialState(); for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); if (!child.isTransient()) { markInitialState(child); } } }
private void markInitialState(final UIComponent component) { component.markInitialState(); for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); if (!child.isTransient()) { markInitialState(child); } } }
/** * Mark the initial state if not already marked. */ private void markInitialStateIfNotMarked(UIComponent component) { if (!component.isTransient()) { if (!component.getAttributes().containsKey(RIConstants.DYNAMIC_COMPONENT) && !component.initialStateMarked()) { component.markInitialState(); } for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); markInitialStateIfNotMarked(child); } } }
/** * Mark the initial state if not already marked. */ private void markInitialStateIfNotMarked(UIComponent component) { if (!component.isTransient()) { if (!component.getAttributes().containsKey(DYNAMIC_COMPONENT) && !component.initialStateMarked()) { component.markInitialState(); } for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); markInitialStateIfNotMarked(child); } } } }
/** * Mark the initial state if not already marked. */ private void markInitialStateIfNotMarked(UIComponent component) { if (!component.isTransient()) { if (!component.getAttributes().containsKey(DYNAMIC_COMPONENT) && !component.initialStateMarked()) { component.markInitialState(); } for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); markInitialStateIfNotMarked(child); } } } }
/** * Mark the initial state if not already marked. */ private void markInitialStateIfNotMarked(UIComponent component) { if (!component.isTransient()) { if (!component.getAttributes().containsKey(DYNAMIC_COMPONENT) && !component.initialStateMarked()) { component.markInitialState(); } for (Iterator<UIComponent> it = component.getFacetsAndChildren() ; it.hasNext() ; ) { UIComponent child = it.next(); markInitialStateIfNotMarked(child); } } } }
public void markInitialState() { super.markInitialState(); // Enable copyFullInitialState behavior when delta is written into this component. ((_DeltaStateHelper)getStateHelper()).setCopyFullInitialState(true); if (_facesListeners != null) { _facesListeners.markInitialState(); } if (_behaviorsMap != null) { for (Map.Entry<String, List<ClientBehavior> > entry : _behaviorsMap.entrySet()) { ((PartialStateHolder) entry.getValue()).markInitialState(); } } if (_systemEventListenerClassMap != null) { for (Map.Entry<Class<? extends SystemEvent>, List<SystemEventListener>> entry : _systemEventListenerClassMap.entrySet()) { ((PartialStateHolder) entry.getValue()).markInitialState(); } } }
/** * <p class="changed_added_2_0">For each of the attached objects on * this instance that implement {@link PartialStateHolder}, call * {@link PartialStateHolder#markInitialState} on the attached object.</p> * @since 2.0 */ @Override public void markInitialState() { super.markInitialState(); if (listeners != null) { listeners.markInitialState(); } if (listenersByEventClass != null) { for (List<SystemEventListener> listener : listenersByEventClass.values()) { if (listener instanceof PartialStateHolder) { ((PartialStateHolder) listener).markInitialState(); } } } if (behaviors != null) { for (Entry<String, List<ClientBehavior>> entry : behaviors.entrySet()) { for (ClientBehavior behavior : entry.getValue()) { if (behavior instanceof PartialStateHolder) { ((PartialStateHolder) behavior).markInitialState(); } } } } }
/** * <p class="changed_added_2_0">For each of the attached objects on * this instance that implement {@link PartialStateHolder}, call * {@link PartialStateHolder#markInitialState} on the attached object.</p> * @since 2.0 */ @Override public void markInitialState() { super.markInitialState(); if (listeners != null) { listeners.markInitialState(); } if (listenersByEventClass != null) { for (List<SystemEventListener> listener : listenersByEventClass.values()) { if (listener instanceof PartialStateHolder) { ((PartialStateHolder) listener).markInitialState(); } } } if (behaviors != null) { for (Entry<String, List<ClientBehavior>> entry : behaviors.entrySet()) { for (ClientBehavior behavior : entry.getValue()) { if (behavior instanceof PartialStateHolder) { ((PartialStateHolder) behavior).markInitialState(); } } } } }
/** * <p class="changed_added_2_0">For each of the attached objects on * this instance that implement {@link PartialStateHolder}, call * {@link PartialStateHolder#markInitialState} on the attached object.</p> * @since 2.0 */ @Override public void markInitialState() { super.markInitialState(); if (listeners != null) { listeners.markInitialState(); } if (listenersByEventClass != null) { for (List<SystemEventListener> listener : listenersByEventClass.values()) { if (listener instanceof PartialStateHolder) { ((PartialStateHolder) listener).markInitialState(); } } } if (behaviors != null) { for (Entry<String, List<ClientBehavior>> entry : behaviors.entrySet()) { for (ClientBehavior behavior : entry.getValue()) { if (behavior instanceof PartialStateHolder) { ((PartialStateHolder) behavior).markInitialState(); } } } } }
protected void applyFinalInitializationSteps(FaceletContext ctx, FaceletCompositionContext mctx, UIComponent c) { FacesContext facesContext = ctx.getFacesContext(); ViewDeclarationLanguage vdl = facesContext.getApplication().getViewHandler(). getViewDeclarationLanguage(facesContext, facesContext.getViewRoot().getViewId()); List<AttachedObjectHandler> handlers = mctx.getAttachedObjectHandlers(c); if (handlers != null) { vdl.retargetAttachedObjects(facesContext, c, handlers); // remove the list of handlers, as it is no longer necessary mctx.removeAttachedObjectHandlers(c); } vdl.retargetMethodExpressions(facesContext, c); if ( FaceletCompositionContext.getCurrentInstance(ctx).isMarkInitialState()) { // Call it only if we are using partial state saving c.markInitialState(); // Call it to other components created not bound by a tag handler c.getFacet(UIComponent.COMPOSITE_FACET_NAME).markInitialState(); } }
private void _markInitialState(final UIComponent component) { component.markInitialState(); final int childCount = component.getChildCount(); if (childCount > 0) { for (int i = 0; i < childCount; i++) { UIComponent child = component.getChildren().get(i); if (!child.isTransient()) { _markInitialState(child); } } } if (component.getFacetCount() > 0) { Map<String, UIComponent> facetMap = component.getFacets(); for (Map.Entry<String, UIComponent> entry : facetMap.entrySet()) { UIComponent child = entry.getValue(); if (!child.isTransient()) { _markInitialState(child); } } } }