Bug 183307 JS error with cascading group in birt:paramDef tag.[0603]
Description: JS error with cascading group in birt:paramDef tag. Build number:2.2.0.v200704190630 Steps to reproduce: 1. New a report with cascading group from sample table OFFICES(COUNTRY, OFFICECODE). 2. New a jsp file with content: <birt:parameterPage id="0" name="custom param page" reportDesign="report.rptdesign" isCustom="true" pattern="frameset"> <birt:paramDef id="9" name="country" value="USA"/> <input type="submit" name="OK" value="submit"/> </birt:parameterPage> 3. Preview the jsp file. Expected result: Display Listbox/combobox with value "USA" as default. Actual result: JS error A runtime error is occurred Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ParamDefTag.java
viewer.getReportDesignHandle( ), group.getName( ),
						groupKeys, options );
	}
	/**
	 * Handle output Radio Button type parameter
	 * 
	 * @throws Exception
	 */
	protected void __handleRadioButton( ) throws Exception
	{
		Collection selectionList = BirtReportServiceFactory.getReportService( )
				.getParameterSelectionList( viewer.getReportDesignHandle( ),
						this.options, param.getName( ) );
		if ( selectionList == null || selectionList.size( ) <= 0 )
			return;
		JspWriter writer = pageContext.getOut( );
		String encParamId = ParameterAccessor.htmlEncode( param.getId( ) );
		String encParamName = ParameterAccessor.htmlEncode( param.getName( ) );
		String displayTextId = encParamId + "_displayText"; 
		String displayTextName = ParameterAccessor.PREFIX_DISPLAY_TEXT
				+ encParamName;
		String nullValueId = encParamId + "_null"; 
		String radioNullValueId = encParamId + "_radio_null"; 
		String radioName = encParamId + "_radio"; 
		String valueId = encParamId + "_value"; 
		boolean isChecked = false;
		
		writer.write( "\n<script language=\"JavaScript\">\n" ); 
		writer.write( "function handleParam" + encParamId + "( e )\n" ); 
		writer.write( "{\n" );