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/RadioButtonParameterFragment.java
assert attrBean != null;
		InputOptions options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST, request );
		Collection selectionList = service.getParameterSelectionList( attrBean
				.getReportDesignHandle( request ), options, parameterBean
				.getName( ) );
		if ( selectionList != null )
		{
			
			ScalarParameterHandle parameterHandle = (ScalarParameterHandle) attrBean
					.findParameter( parameter.getName( ) );
			for ( Iterator iter = selectionList.iterator( ); iter.hasNext( ); )
			{
				ParameterSelectionChoice selectionItem = (ParameterSelectionChoice) iter
						.next( );
				
				String value = ParameterValidationUtil.getDisplayValue( null,
						parameterHandle.getPattern( ),
						selectionItem.getValue( ), attrBean.getLocale( ) );
				String label = selectionItem.getLabel( );
				label = ( label == null || label.length( ) <= 0 )
						? value
						: label;
				label = ParameterAccessor.htmlEncode( label );
				parameterBean.getSelectionList( ).add( label );
				parameterBean.getSelectionTable( ).put( label, value );
			}
		}
	}
}