Bug 213836 [2.2.2]paramDef tag accepts locale-based value with false isLocale value[0603]
Description: paramDef tag accepts locale-based value when isLocale is false Build number:2.2.2.v200712181951 Steps to reproduce: 1. Create a BIRT web project. 2. Copy attached report and jsp file to project. 3. Run the jsp file. Expected result: Errors to indicate the second group values in parameterpage definition are wrong. Actual result: No errors and accept the value despite that the value is locale-based value. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ParamDefTag.java
writer
				.write( "<input type=\"hidden\" id=\"" + isLocaleId + "\" value=\"" 
						+ encParamName + "\" >\n" ); 
		
		String patternId = encParamId + "_pattern"; 
		String patternName = encParamName + "_format"; 
		if ( param.getPattern( ) != null )
		{
			writer.write( "<input type = 'hidden' id=\"" + patternId + "\" \n" ); 
			writer
					.write( " value=\"" + ParameterAccessor.htmlEncode( param.getPattern( ) ) + "\">\n" ); 
		}
		
		writer.write( "\n<script language=\"JavaScript\">\n" ); 
		writer.write( "function handleParam" + encParamId + "( )\n" ); 
		writer.write( "{\n" ); 
		writer.write( "var inputCtl = document.getElementById(\"" + encParamId 
				+ "\");\n" ); 
		writer.write( "var valCtl = document.getElementById(\"" + valueId 
				+ "\");\n" ); 
		writer.write( "var displayCtl = document.getElementById(\"" 
				+ displayTextId + "\");\n" ); 
		writer.write( "var localeCtl = document.getElementById(\"" 
				+ isLocaleId + "\");\n" ); 
		writer.write( "var patternCtl = document.getElementById(\"" 
				+ patternId + "\");\n" ); 
		writer.write( "displayCtl.value=inputCtl.value;\n" ); 
		writer.write( "valCtl.value=inputCtl.value;\n" ); 
		writer
				.write( "localeCtl.name='" + ParameterAccessor.PARAM_ISLOCALE + "';\n" );