savedActions.add(action.saveState(context));
/** * Save the dynamic actions. * * @param context the Faces context. * @param stateContext the state context. * @param stateMap the state. */ private void saveDynamicActions(FacesContext context, StateContext stateContext, UIViewRoot viewRoot) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("FaceletFullStateManagementStrategy.saveDynamicActions"); } List<ComponentStruct> actions = stateContext.getDynamicActions(); HashMap<String, UIComponent> componentMap = stateContext.getDynamicComponents(); if (actions != null) { List<Object> savedActions = new ArrayList<Object>(actions.size()); for (ComponentStruct action : actions) { UIComponent component = componentMap.get(action.clientId); if (component == null && context.isProjectStage(ProjectStage.Development)) { LOGGER.log( Level.WARNING, "Unable to save dynamic action with clientId ''{0}'' because the UIComponent cannot be found", action.clientId); } if (component != null) { savedActions.add(action.saveState(context)); } } viewRoot.getAttributes().put(DYNAMIC_ACTIONS, savedActions); } }
savedActions.add(action.saveState(context));
savedActions.add(action.saveState(context));
savedActions.add(action.saveState(context));
/** * Save the dynamic actions. * * @param context the Faces context. * @param stateContext the state context. * @param stateMap the state. */ private void saveDynamicActions(FacesContext context, StateContext stateContext, UIViewRoot viewRoot) { if (LOGGER.isLoggable(FINEST)) { LOGGER.finest("FaceletFullStateManagementStrategy.saveDynamicActions"); } List<ComponentStruct> actions = stateContext.getDynamicActions(); HashMap<String, UIComponent> componentMap = stateContext.getDynamicComponents(); if (actions != null) { List<Object> savedActions = new ArrayList<>(actions.size()); for (ComponentStruct action : actions) { UIComponent component = componentMap.get(action.getClientId()); if (component == null && context.isProjectStage(Development)) { LOGGER.log( WARNING, "Unable to save dynamic action with clientId ''{0}'' because the UIComponent cannot be found", action.getClientId()); } if (component != null) { savedActions.add(action.saveState(context)); } } viewRoot.getAttributes().put(DYNAMIC_ACTIONS, savedActions); } }
/** * Save the dynamic actions. * * @param context the Faces context. * @param stateContext the state context. * @param stateMap the state. */ private void saveDynamicActions(FacesContext context, StateContext stateContext, UIViewRoot viewRoot) { if (LOGGER.isLoggable(FINEST)) { LOGGER.finest("FaceletFullStateManagementStrategy.saveDynamicActions"); } List<ComponentStruct> actions = stateContext.getDynamicActions(); HashMap<String, UIComponent> componentMap = stateContext.getDynamicComponents(); if (actions != null) { List<Object> savedActions = new ArrayList<>(actions.size()); for (ComponentStruct action : actions) { UIComponent component = componentMap.get(action.getClientId()); if (component == null && context.isProjectStage(Development)) { LOGGER.log( WARNING, "Unable to save dynamic action with clientId ''{0}'' because the UIComponent cannot be found", action.getClientId()); } if (component != null) { savedActions.add(action.saveState(context)); } } viewRoot.getAttributes().put(DYNAMIC_ACTIONS, savedActions); } }
/** * Save the dynamic actions. * * @param context the Faces context. * @param stateContext the state context. * @param stateMap the state. */ private void saveDynamicActions(FacesContext context, StateContext stateContext, UIViewRoot viewRoot) { if (LOGGER.isLoggable(FINEST)) { LOGGER.finest("FaceletFullStateManagementStrategy.saveDynamicActions"); } List<ComponentStruct> actions = stateContext.getDynamicActions(); HashMap<String, UIComponent> componentMap = stateContext.getDynamicComponents(); if (actions != null) { List<Object> savedActions = new ArrayList<>(actions.size()); for (ComponentStruct action : actions) { UIComponent component = componentMap.get(action.getClientId()); if (component == null && context.isProjectStage(Development)) { LOGGER.log( WARNING, "Unable to save dynamic action with clientId ''{0}'' because the UIComponent cannot be found", action.getClientId()); } if (component != null) { savedActions.add(action.saveState(context)); } } viewRoot.getAttributes().put(DYNAMIC_ACTIONS, savedActions); } }