/** * Returns the value of the widget parameter with the given name and index, or <code>null</code> * if no such widget parameter is available.<p> * * @param name the widget parameter name to get the value for * @param index the widget parameter index * * @return the value of the widget parameter with the given name and index */ public String getParamValue(String name, int index) { List params = (List)m_widgetParamValues.get(name); if (params != null) { if ((index >= 0) && (index < params.size())) { CmsWidgetDialogParameter param = (CmsWidgetDialogParameter)params.get(index); if (param.getId().equals(CmsWidgetDialogParameter.createId(name, index))) { return param.getStringValue(getCms()); } } } return null; }
/** * Returns the value of the widget parameter with the given name and index, or <code>null</code> * if no such widget parameter is available.<p> * * @param name the widget parameter name to get the value for * @param index the widget parameter index * * @return the value of the widget parameter with the given name and index */ public String getParamValue(String name, int index) { List<CmsWidgetDialogParameter> params = m_widgetParamValues.get(name); if (params != null) { if ((index >= 0) && (index < params.size())) { CmsWidgetDialogParameter param = params.get(index); if (param.getId().equals(CmsWidgetDialogParameter.createId(name, index))) { return param.getStringValue(getCms()); } } } return null; }
result.append("<input type=\"hidden\" name=\""); result.append(HIDDEN_PARAM_PREFIX); result.append(param.getId()); result.append("\" value=\""); String encoded = CmsEncoder.encode(value, getCms().getRequestContext().getEncoding());
result.append("<input type=\"hidden\" name=\""); result.append(HIDDEN_PARAM_PREFIX); result.append(param.getId()); result.append("\" value=\""); String encoded = CmsEncoder.encode(value, getCms().getRequestContext().getEncoding());