Exemplo n.º 1
0
 public static String decodeActionParam(String param) {
   ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
   if (pm == null) return param;
   String action = StringUtils.toString(pm.get(ACTION_PARAMETER_TYPE, param));
   if (action == null) log.warn("no action available for param {}.", param);
   return action;
 }
Exemplo n.º 2
0
 private static String encodeActionParam(String action) {
   ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
   if (pm == null) return action;
   return pm.put(ACTION_PARAMETER_TYPE, action, true);
 }