Bug 157948 Default value of datetime parameter doesn't take effect
Default value of datetime parameter doesn't take effect Steps to reproduce: 1.new a report and new a parameter 2.set the parameter data type"DateTime",display type"Radio Button" and new two parameters,the display text and value of the first are "this year" and "09/05/2006 the second is "last year" and "09/05/2006" 3.preview in html Expected result: the default value takes effects Actual result: the default value doesn't take effects
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/ScalarParameterFragment.java
getClass( ).getName( ).lastIndexOf( '.' ) + 1 );
		return JSPRootPath + "/pages/parameter/" + className + ".jsp"; 
	}
	public static void prepareParameterBean(
			IViewerReportDesignHandle designHandle,
			IViewerReportService service, HttpServletRequest request,
			ScalarParameterBean parameterBean, ParameterDefinition parameter,
			Locale locale, boolean isDesigner ) throws ReportServiceException
	{
		
		String displayName = parameter.getPromptText( );
		displayName = ( displayName == null || displayName.length( ) <= 0 )
				? parameter.getDisplayName( )
				: displayName;
		displayName = ( displayName == null || displayName.length( ) <= 0 )
				? parameter.getName( )
				: displayName;
		displayName = ParameterAccessor.htmlEncode( displayName );
		parameterBean.setDisplayName( displayName );
		
		ViewerAttributeBean attrBean = (ViewerAttributeBean) request
				.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );
		assert attrBean != null;
		
		Object paramValueObj = null;
		String parameterValue = null;
		if ( attrBean.getParametersAsString( ) != null )
			paramValueObj = attrBean.getParametersAsString( ).get(
					parameterBean.getName( ) );
		if ( paramValueObj != null )