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
.write( "var inputCtl = document.getElementById(\"" + encParamId 
							+ "\");\n" ); 
			writer.write( "var displayCtl = document.getElementById(\"" 
					+ displayTextId + "\");\n" ); 
			writer
					.write( "var nullCtl = document.getElementById(\"" + nullValueId 
							+ "\");\n" ); 
			writer
					.write( "var radioTextCtl = document.getElementById(\"" + radioTextValueId 
							+ "\");\n" ); 
			writer
					.write( "var radioNullCtl = document.getElementById(\"" + radioNullValueId 
							+ "\");\n" ); 
			writer.write( "if( flag ) \n" ); 
			writer.write( "{\n" ); 
			writer.write( "	radioTextCtl.checked=true;\n" ); 
			writer.write( "	radioNullCtl.checked=false;\n" ); 
			writer.write( "	inputCtl.disabled=false;\n" ); 		
			writer.write( "	nullCtl.name='';\n" ); 
			writer.write( "	displayCtl.name='" + displayTextName + "';\n" ); 
			writer.write( "}\n" ); 
			writer.write( "else\n" ); 
			writer.write( "{\n" ); 
			writer.write( "	radioTextCtl.checked=false;\n" ); 
			writer.write( "	radioNullCtl.checked=true;\n" ); 
			writer.write( "	inputCtl.disabled=true;\n" ); 		
			writer
					.write( "	nullCtl.name='" + ParameterAccessor.PARAM_ISNULL + "';\n" ); 
			writer.write( "	displayCtl.name='';\n" ); 
			writer.write( "}\n" );