Bug 121019 Java based scripting -> TextItemInstance/setText, getText does not work properly
textItemInstance.setText( "Actuate Shanghai" ); System.out.println( textItemInstance.getText( ) ); after executing the codes above, i got "text/template". expected behavior: - Actuate Shanghai actual behavior: - text/template
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/TextItemScriptExecutor.java
}
	}
	private static void internalOnRender( AbstractContent content,
			ExecutionContext context )
	{
		try
		{
			ReportItemDesign textItemDesign = ( ReportItemDesign ) content
					.getGenerateBy( );
			ITextItemInstance textItem = null;
			if ( content instanceof TextContent )
				textItem = new TextItemInstance( ( TextContent ) content );
			else if ( content instanceof ForeignContent )
				textItem = new TextItemInstance( ( ForeignContent ) content );
			if ( handleJS( textItem, textItemDesign.getOnRender( ), context )
					.didRun( ) )
				return;
			ITextItemEventHandler eh = ( ITextItemEventHandler ) getInstance( ( TextItemHandle ) textItemDesign
					.getHandle( ) );
			if ( eh != null )
			{
				eh.onRender( textItem, context.getReportContext( ) );
			}
		} catch ( Exception e )
		{
			log.log( Level.WARNING, e.getMessage( ), e );
		}
	}
}