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
JspWriter writer = pageContext.getOut( );
		String encParamId = ParameterAccessor.htmlEncode( param.getId( ) );
		String encParamName = ParameterAccessor.htmlEncode( param.getName( ) );
		String displayTextId = encParamId + "_displayText"; 
		String displayTextName = ParameterAccessor.PREFIX_DISPLAY_TEXT
				+ encParamName;
		boolean isSelected = false;
		boolean isNullValue = param.getValue( ) == null;
		String valueId = encParamId + "_value"; 
		String nullValueId = encParamId + "_null"; 
		String radioSelectId = encParamId + "_radio_select"; 
		String radioTextId = encParamId + "_radio_input"; 
		String inputTextId = encParamId + "_input"; 
		String isLocaleId = encParamId + "_islocale"; 		
		String patternId = encParamId + "_pattern"; 
		String patternName = encParamName + "_format"; 
		if ( !paramDef.mustMatch( ) )
		{
			writer.write( "\n<script language=\"JavaScript\">\n" ); 
			
			writer.write( "function updateParam" + encParamId + "( flag )\n" ); 
			writer.write( "{\n" ); 
			writer
					.write( "var radioSelectCtl = document.getElementById(\"" + radioSelectId + "\");\n" ); 
			writer
					.write( "if( radioSelectCtl ) radioSelectCtl.checked = flag;\n" ); 
			writer
					.write( "var radioTextCtl = document.getElementById(\"" + radioTextId + "\");\n" ); 
			writer.write( "if( radioTextCtl ) radioTextCtl.checked = !flag;\n" ); 
			writer