Bug 191805 The default value radio button should be checked [0705]
Description: The default value radio button should be checked. Build number: 2.2.0.v20070608-1028 Steps to reproduce: 1. New a parameter, type "boolean", select radio button, input 0 and 1 as values, set 1 as default value. 2. Preview parameter dialog popps up. Expected result: The default value radio button is checked. Actual result: Neither of the radio buttons is checked (see the screenshot). Error log: N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/RadioButtonParameterFragment.java
{
				ParameterSelectionChoice selectionItem = (ParameterSelectionChoice) iter
						.next( );
				Object value = selectionItem.getValue( );
				try
				{
					
					value = DataUtil.convert( value, paramDef.getDataType( ) );
				}
				catch ( Exception e )
				{
					value = null;
				}
				
				String displayValue = DataUtil.getDisplayValue( value );
				if ( displayValue == null )
					continue;
				String label = selectionItem.getLabel( );
				if ( label == null || label.length( ) <= 0 )
				{
					
					
					label = ParameterValidationUtil.getDisplayValue( null,
							paramDef.getPattern( ), value, locale );
				}
				if ( label == null )
					continue;
				selectionItem.setLabel( label );
				selectionItem.setValue( displayValue );
				parameterBean.getSelectionList( ).add( selectionItem );