Bug 207250 Check blank value for datetime type parameter from url.[0002][0705]
Description: Check blank value for datetime type parameter from url. Build number:2.3.0.v20071023 Steps to reproduce: 1. New a datetime parameter mydt,listbox, tick off isRequired. 2. Preview in external browser and add "&dt=" in url, press enter. Expected result: Error message to indicate blank value isn't allowed for this parameter. Actual result: No error message and blank value is accepted. I tried to new a jsp and use <birt:paramDef> to pass the blank value and the blank value is accepted,too. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/DataUtil.java
throws BirtException
	{
		if ( source == null )
			return null;
		
		if ( toType == IScalarParameterDefn.TYPE_ANY )
			return source;
		switch ( toType )
		{
			case IScalarParameterDefn.TYPE_INTEGER :
				return DataTypeUtil.toInteger( source );
			case IScalarParameterDefn.TYPE_DECIMAL :
				return DataTypeUtil.toBigDecimal( source );
			case IScalarParameterDefn.TYPE_BOOLEAN :
				return DataTypeUtil.toBoolean( source );
			case IScalarParameterDefn.TYPE_DATE_TIME :
				return DataTypeUtil.toDate( source );
			case IScalarParameterDefn.TYPE_FLOAT :
				return DataTypeUtil.toDouble( source );
			case IScalarParameterDefn.TYPE_STRING :
				return DataTypeUtil.toString( source );
			case IScalarParameterDefn.TYPE_DATE :
				return DataTypeUtil.toSqlDate( source );
			case IScalarParameterDefn.TYPE_TIME :
				return DataTypeUtil.toSqlTime( source );
			default :
				throw new CoreException( "Invalid type." ); 
		}
	}
	/**