/** * Sets the multiple values of a parameter in this form. This is generally used when there are multiple * controls with the same name in the form. */ public void setParameter( String name, final String[] values ) { FormParameter parameter = getParameter( name ); if (parameter == UNKNOWN_PARAMETER) throw new NoSuchParameterException( name ); if (parameter.isFileParameter()) { throw new InvalidFileParameterException(name,values); } parameter.setValues( values ); }
/** * Sets the multiple values of a parameter in this form. This is generally used when there are multiple * controls with the same name in the form. */ public void setParameter( String name, final String[] values ) { FormParameter parameter = getParameter( name ); if (parameter == UNKNOWN_PARAMETER) throw new NoSuchParameterException( name ); if (parameter.isFileParameter()) { throw new InvalidFileParameterException(name,values); } parameter.setValues( values ); }
/** * Sets the multiple values of a parameter in this form. This is generally used when there are multiple * controls with the same name in the form. */ public void setParameter( String name, final String[] values ) { FormParameter parameter = getParameter( name ); if (parameter == UNKNOWN_PARAMETER) throw new NoSuchParameterException( name ); if (parameter.isFileParameter()) { throw new InvalidFileParameterException(name,values); } parameter.setValues( values ); }