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
writer.write( " title=\"" + label + "\"" ); 
			writer.write( " for=\"" + ctlId + "\">" ); 
			writer.write( label );
			writer.write( "</label>" ); 
			writer.write( "</input>\n" ); 
			index++;
		}
		
		if ( !paramDef.isRequired( ) )
		{
			boolean isNullValue = param.getValue( ) == null;
			
			writer.write( "<input type=\"hidden\" value=\"" 
					+ encParamName + "\" id=\"" + nullValueId + "\"" ); 
			if ( isNullValue )
				writer.write( " name=\"" 
						+ ParameterAccessor.PARAM_ISNULL + "\"" ); 
			writer.write( " >\n" ); 
			writer
					.write( "<input type=\"radio\" id=\"" + radioNullValueId + "\" " ); 
			writer.write( " name=\"" + radioName + "\"" ); 
			writer.write( " onclick=\"" + onClick + "\"" ); 
			if ( isNullValue )
				writer.write( " checked " ); 
			writer.write( " >\n" ); 
			writer
					.write( "<label id=\"" + ( radioNullValueId + "_label" ) + "\"" ); 
			writer.write( " title=\"" + ITagConstants.NULL_VALUE + "\"" ); 
			writer.write( " for=\"" + radioNullValueId + "\">" ); 
			writer.write( ITagConstants.NULL_VALUE );