private String[] contentTypeSplit(String contentTypeString) { String[] result = Util.split(contentTypeString, ","); for (int i = 0; i < result.length; i++) { int semicolon = result[i].indexOf(";"); if (-1 != semicolon) { result[i] = result[i].substring(0, semicolon); } } return result; }
private String[] contentTypeSplit(String contentTypeString) { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] result = Util.split(appMap, contentTypeString, ","); for (int i = 0; i < result.length; i++) { int semicolon = result[i].indexOf(";"); if (-1 != semicolon) { result[i] = result[i].substring(0, semicolon); } } return result; }
private String[] contentTypeSplit(String contentTypeString) { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] result = Util.split(appMap, contentTypeString, ","); for (int i = 0; i < result.length; i++) { int semicolon = result[i].indexOf(";"); if (-1 != semicolon) { result[i] = result[i].substring(0, semicolon); } } return result; }
private String[] contentTypeSplit(String contentTypeString) { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] result = Util.split(appMap, contentTypeString, ","); for (int i = 0; i < result.length; i++) { int semicolon = result[i].indexOf(";"); if (-1 != semicolon) { result[i] = result[i].substring(0, semicolon); } } return result; }
private String[] contentTypeSplit(String contentTypeString) { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] result = Util.split(appMap, contentTypeString, ","); for (int i = 0; i < result.length; i++) { int semicolon = result[i].indexOf(";"); if (-1 != semicolon) { result[i] = result[i].substring(0, semicolon); } } return result; }
private List<Integer> getBodyRows(Map<String, Object> appMap, UIData data) { List<Integer> result = null; String bodyRows = (String) data.getAttributes().get("bodyrows"); if (bodyRows != null) { String [] rows = Util.split(appMap, bodyRows, ","); if (rows != null) { result = new ArrayList<Integer>(rows.length); for (String curRow : rows) { result.add(Integer.valueOf(curRow)); } } } return result; }
private List<Integer> getBodyRows(Map<String, Object> appMap, UIData data) { List<Integer> result = null; String bodyRows = (String) data.getAttributes().get("bodyrows"); if (bodyRows != null) { String [] rows = Util.split(appMap, bodyRows, ","); if (rows != null) { result = new ArrayList<>(rows.length); for (String curRow : rows) { result.add(Integer.valueOf(curRow)); } } } return result; }
private List<Integer> getBodyRows(Map<String, Object> appMap, UIData data) { List<Integer> result = null; String bodyRows = (String) data.getAttributes().get("bodyrows"); if (bodyRows != null) { String [] rows = Util.split(appMap, bodyRows, ","); if (rows != null) { result = new ArrayList<>(rows.length); for (String curRow : rows) { result.add(Integer.valueOf(curRow)); } } } return result; }
private List<Integer> getBodyRows(Map<String, Object> appMap, UIData data) { List<Integer> result = null; String bodyRows = (String) data.getAttributes().get("bodyrows"); if (bodyRows != null) { String [] rows = Util.split(appMap, bodyRows, ","); if (rows != null) { result = new ArrayList<>(rows.length); for (String curRow : rows) { result.add(Integer.valueOf(curRow)); } } } return result; }
private List<String> populatePhaseClientIds(PredefinedPostbackParameter parameterName) { String param = parameterName.getValue(ctx); if (param == null) { return new ArrayList<>(); } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] pcs = Util.split(appMap, param, "[ \t]+"); return ((pcs != null && pcs.length != 0) ? new ArrayList<>(Arrays.asList(pcs)) : new ArrayList<>()); } }
/** * <p>Return an array of stylesheet classes to be applied to each row in the * table, in the order specified. Every row may or may not have a * stylesheet.</p> * * @param table {@link javax.faces.component.UIComponent} component being rendered * * @return an array of row classes */ private static String[] getRowClasses(UIComponent table) { String values = (String) table.getAttributes().get("rowClasses"); if (values == null) { return (EMPTY_STRING_ARRAY); } return Util.split(values.trim(), ","); }
private List<String> populatePhaseClientIds(PredefinedPostbackParameter parameterName) { String param = parameterName.getValue(ctx); if (param == null) { return new ArrayList<>(); } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] pcs = Util.split(appMap, param, "[ \t]+"); return ((pcs != null && pcs.length != 0) ? new ArrayList<>(Arrays.asList(pcs)) : new ArrayList<>()); } }
private List<String> populatePhaseClientIds(PredefinedPostbackParameter parameterName) { String param = parameterName.getValue(ctx); if (param == null) { return new ArrayList<>(); } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] pcs = Util.split(appMap, param, "[ \t]+"); return ((pcs != null && pcs.length != 0) ? new ArrayList<>(Arrays.asList(pcs)) : new ArrayList<>()); } }
private List<String> populatePhaseClientIds(String parameterName) { Map<String,String> requestParamMap = ctx.getExternalContext().getRequestParameterMap(); String param = requestParamMap.get(parameterName); if (param == null) { return new ArrayList<String>(); } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); String[] pcs = Util.split(appMap, param, "[ \t]+"); return ((pcs != null && pcs.length != 0) ? new ArrayList<String>(Arrays.asList(pcs)) : new ArrayList<String>()); } }
public String[] getOptionValue(WebContextInitParameter param, String sep) { String [] result; assert(cachedListParams != null); if ((result = cachedListParams.get(param)) == null) { String value = getOptionValue(param); if (value == null) { result = new String[0]; } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); result = Util.split(appMap, value, sep); } cachedListParams.put(param, result); } return result; }
public String[] getOptionValue(WebContextInitParameter param, String sep) { String [] result; assert(cachedListParams != null); if ((result = cachedListParams.get(param)) == null) { String value = getOptionValue(param); if (value == null) { result = new String[0]; } else { Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); result = Util.split(appMap, value, sep); } cachedListParams.put(param, result); } return result; }
public ViewHandlerImpl() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Created ViewHandler instance "); } WebConfiguration config = WebConfiguration.getInstance(); String defaultSuffixConfig = config.getOptionValue(WebConfiguration.WebContextInitParameter.DefaultSuffix); Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); configuredExtensions = Util.split(appMap, defaultSuffixConfig, " "); }
public ViewHandlerImpl() { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE,"Created ViewHandler instance "); } WebConfiguration config = WebConfiguration.getInstance(); String defaultSuffixConfig = config.getOptionValue(WebConfiguration.WebContextInitParameter.DefaultSuffix); Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); configuredExtensions = Util.split(appMap, defaultSuffixConfig, " "); }
public ViewHandlerImpl() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Created ViewHandler instance "); } WebConfiguration config = WebConfiguration.getInstance(); String defaultSuffixConfig = config.getOptionValue(WebConfiguration.WebContextInitParameter.DefaultSuffix); Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); configuredExtensions = Util.split(appMap, defaultSuffixConfig, " "); }
public ViewHandlerImpl() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Created ViewHandler instance "); } WebConfiguration config = WebConfiguration.getInstance(); String defaultSuffixConfig = config.getOptionValue(WebConfiguration.WebContextInitParameter.DefaultSuffix); Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); configuredExtensions = Util.split(appMap, defaultSuffixConfig, " "); }