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
String onClick = "updateParam" + encParamId + "( true )"; 
			writer.write( "<input type=\"radio\" " ); 
			writer.write( " id=\"" + radioSelectId + "\"" ); 
			writer.write( " onclick=\"" + onClick + "\"" ); 
			writer.write( " >\n" ); 
		}
		
		writer.write( "<select " ); 
		writer.write( " id=\"" + encParamId + "\"" ); 			
		__handleGeneralDefinition( );
		writer.write( " onchange=\"" + onChange + "\"" ); 
		writer.write( " >\n" ); 
		
		if ( paramDef.mustMatch( ) && !paramDef.isRequired( ) )
		{
			writer.write( "<option value='' " ); 
			if ( param.getValue( ) != null
					&& DataUtil.getString( param.getValue( ) ).length( ) <= 0 )
			{
				writer.write( " selected " ); 
				isSelected = true;
			}
			writer.write( "></option>\n" ); 
		}
		for ( Iterator iter = selectionList.iterator( ); iter.hasNext( ); )
		{
			ParameterSelectionChoice selectionItem = (ParameterSelectionChoice) iter
					.next( );
			Object value = selectionItem.getValue( );
			try