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
ExecutionContext context )
	{
		try
		{
			ITextItem textItem = new TextItem( textItemHandle );
			if ( handleJS( textItem, textItemHandle.getOnPrepare( ), context )
					.didRun( ) )
				return;
			ITextItemEventHandler eh = ( ITextItemEventHandler ) getInstance( textItemHandle );
			if ( eh != null )
				eh.onPrepare( textItem, context.getReportContext( ) );
		} catch ( Exception e )
		{
			log.log( Level.WARNING, e.getMessage( ), e );
		}
	}
	public static void handleOnCreate( TextContent content,
			ExecutionContext context )
	{
		internalOnCreate( content, context );
	}
	public static void handleOnRender( TextContent content,
			ExecutionContext context )
	{
		internalOnRender( content, context );
	}
	public static void handleOnCreate( ForeignContent content,
			ExecutionContext context )
	{
		internalOnCreate( content, context );