Bug 183099 White spaces before parameter value are ignored in birt:paramDef tag.[]0603
Description: White spaces before parameter value are ignored in birt:paramDef tag. Build number:2.2.0.v200704190630 Steps to reproduce: 1. New a report with a string parameter and drag it to Layout. 2. New a jsp file with content: <birt:parameterPage id="0" name="customparameterpage" reportDesign="report.rptdesign" isCustom="true"> <birt:paramDef id="1" name="p_str" value=" value"/> <input type="submit" name="OK" value="submit"/> </birt:parameterPage> 3. Preview the jsp file. Expected result: Display " value" in web page. Actual result: Display "value" and three white spaces are lost. Error log:N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ParameterValidationUtil.java
.equalsIgnoreCase( dataType )
				|| ( value instanceof Date && !( value instanceof java.sql.Date || value instanceof java.sql.Time ) ) )
		{
			DateFormatter formatter = new DateFormatter( locale );
			formatter.applyPattern( format );
			return formatter.format( (Date) value );
		}
		else if ( DesignChoiceConstants.PARAM_TYPE_DATE
				.equalsIgnoreCase( dataType )
				|| value instanceof java.sql.Date )
		{
			DateFormatter formatter = new DateFormatter( locale );
			if ( format == null )
				format = DISPLAY_DATE_FORMAT;
			formatter.applyPattern( format );
			return formatter.format( new Date( ( (java.sql.Date) value )
					.getTime( ) ) );
		}
		else if ( DesignChoiceConstants.PARAM_TYPE_TIME
				.equalsIgnoreCase( dataType )
				|| value instanceof java.sql.Time )
		{
			DateFormatter formatter = new DateFormatter( locale );
			if ( format == null )
				format = DISPLAY_TIME_FORMAT;
			formatter.applyPattern( format );
			return formatter.format( new Date( ( (java.sql.Time) value )
					.getTime( ) ) );
		}
		else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT