Bug 183346 Datetime value with pattern from birt:paramDef page to report is wrong.
Description: Datetime value with pattern from birt:paramDef page to report is wrong. Build number:2.2.0.v20070420 Steps to reproduce: 1. New a report with a datetime type parameter, drag the parameter to layout. 2. New a birt jsp file. <birt:parameterPage id="0" name="customparameterpage" reportDesign="report/customJspTagParamDefPattern.rptdesign" isCustom="true"> <birt:paramDef id="5" name="p_dt" pattern="yyyy/MM/dd hh" value ="2006/09/23 10"/> <input type="submit" value="submit"/> </birt:parameterPage> 3. Preview the jsp file and click submit Expected result: Display datetime value correctly. Actual result: Display Apr 28, 0016 10:00 AM Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ParamDefTag.java
writer.write( "var displayCtl = document.getElementById(\"" 
				+ displayTextId + "\");\n" ); 
		writer.write( "var localeCtl = document.getElementById(\"" 
				+ isLocaleId + "\");\n" ); 
		writer.write( "displayCtl.value=inputCtl.value;\n" ); 
		writer.write( "valCtl.value=inputCtl.value;\n" ); 
		writer
				.write( "localeCtl.name='" + ParameterAccessor.PARAM_ISLOCALE + "';\n" ); 
		writer.write( "}\n" ); 
		writer.write( "</script>\n" ); 
		String controlType = paramDef.concealValue( ) ? "PASSWORD" : "TEXT"; 
		if ( paramDef.isRequired( ) )
		{
			writer.write( "<input type=\"" + controlType + "\" " ); 
			writer.write( " id=\"" + encParamId + "\" " ); 
			__handleGeneralDefinition( );
			writer
					.write( " value=\"" + ParameterAccessor.htmlEncode( this.displayTextString ) + "\" " );  
			writer.write( " onchange=\"handleParam" + encParamId + "( )\"" ); 
			writer.write( " >\n" ); 			
		}
		else
		{
			String nullValueId = encParamId + "_null"; 
			String radioTextValueId = encParamId + "_radio_input"; 
			String radioNullValueId = encParamId + "_radio_null"; 
			
			writer.write( "\n<script language=\"JavaScript\">\n" ); 
			writer.write( "function switchParam" + encParamId + "( flag )\n" ); 
			writer.write( "{\n" );