Bug 208853 <birt:param> display param as input box above report content[0603]
Description: <birt:param> display parameter as input box above report content Build number:2.3.0.v20071106 Steps to reproduce: 1. New BIRT WEB project. 2. Copy attached report and jsp to WebContent folder. 3. Run project in Tomcat server and preview jsp page. Expected result: Display report content and parameter is passed into report. Actual result: Two parameter input box displayed above the report content.see attached. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/AbstractViewerTag.java
writer.write( "function loadViewer" + viewer.getId( ) + "(){\n" ); 
		writer
				.write( "var formObj = document.getElementById( \"" + formId + "\" );\n" ); 
		writer.write( "var paramContainer = document.getElementById(\"" 
				+ paramContainerId + "\");\n" ); 
		writer
				.write( "var oParams = paramContainer.getElementsByTagName('input');\n" ); 
		writer.write( "if( oParams )\n" ); 
		writer.write( "{\n" ); 
		writer.write( "  for( var i=0;i<oParams.length;i++ )  \n" ); 
		writer.write( "  {\n" ); 
		writer.write( "    var param = document.createElement( \"INPUT\" );\n" ); 
		writer.write( "    formObj.appendChild( param );\n" ); 
		writer.write( "    param.TYPE = \"HIDDEN\";\n" ); 
		writer.write( "    param.name= oParams[i].name;\n" ); 
		writer.write( "    param.value= oParams[i].value;\n" ); 
		writer.write( "  }\n" ); 
		writer.write( "}\n" ); 
		writer.write( "formObj.action = \"" + src + "\";\n" ); 
		if ( target != null )
			writer.write( "formObj.target = \"" + target + "\";\n" ); 
		writer.write( "formObj.submit( );\n" ); 
		writer.write( "}\n" ); 
		writer.write( "</script>\n" ); 
		
		writer.write( __handleIFrameDefinition( ) );
		writer.write( "<script type=\"text/javascript\">" ); 
		writer.write( "loadViewer" + viewer.getId( ) + "();" ); 
		writer.write( "</script>\n" ); 
	}