public static void markComponentToRestoreFully(FacesContext context, UIComponent component) { if (MyfacesConfig.getCurrentInstance(context.getExternalContext()).isRefreshTransientBuildOnPSSPreserveState()) { component.getAttributes().put(DefaultFaceletsStateManagementStrategy.COMPONENT_ADDED_AFTER_BUILD_VIEW, ComponentState.REMOVE_ADD); } //component.subscribeToEvent(PostAddToViewEvent.class, new RestoreComponentFullyListener()); if (FaceletViewDeclarationLanguage.isRefreshTransientBuildOnPSSAuto(context)) { FaceletViewDeclarationLanguage.cleanTransientBuildOnRestore(context); } }
public static void markComponentToRestoreFully(FacesContext context, UIComponent component) { if (MyfacesConfig.getCurrentInstance(context.getExternalContext()).isRefreshTransientBuildOnPSSPreserveState()) { component.getAttributes().put(DefaultFaceletsStateManagementStrategy.COMPONENT_ADDED_AFTER_BUILD_VIEW, ComponentState.REMOVE_ADD); } //component.subscribeToEvent(PostAddToViewEvent.class, new RestoreComponentFullyListener()); if (FaceletViewDeclarationLanguage.isRefreshTransientBuildOnPSSAuto(context)) { FaceletViewDeclarationLanguage.cleanTransientBuildOnRestore(context); } } }
public static void markComponentToRestoreFully(FacesContext context, UIComponent component) { if (MyfacesConfig.getCurrentInstance(context.getExternalContext()).isRefreshTransientBuildOnPSSPreserveState()) { component.getAttributes().put(DefaultFaceletsStateManagementStrategy.COMPONENT_ADDED_AFTER_BUILD_VIEW, ComponentState.REMOVE_ADD); } //component.subscribeToEvent(PostAddToViewEvent.class, new RestoreComponentFullyListener()); if (FaceletViewDeclarationLanguage.isRefreshTransientBuildOnPSSAuto(context)) { FaceletViewDeclarationLanguage.cleanTransientBuildOnRestore(context); } } }