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/CellScriptExecutor.java
public static void handleOnPrepare( CellHandle cellHandle,
			ExecutionContext context )
	{
		try
		{
			ICell cell = new Cell( cellHandle );
			if ( handleJS( cell, cellHandle.getOnPrepare( ), context ).didRun( ) )
				return;
			ICellEventHandler eh = ( ICellEventHandler ) getInstance( cellHandle );
			if ( eh != null )
				eh.onPrepare( cell, context.getReportContext( ) );
		} catch ( Exception e )
		{
			log.log( Level.WARNING, e.getMessage( ), e );
		}
	}
	public static void handleOnCreate( CellContent content, IRowData rowData,
			ExecutionContext context )
	{
		try
		{
			ReportItemDesign cellDesign = ( ReportItemDesign ) content
					.getGenerateBy( );
			ICellInstance cell = new CellInstance( content );
			if ( handleJS( cell, cellDesign.getOnCreate( ), context ).didRun( ) )
				return;
			CellHandle handle = ( CellHandle ) cellDesign.getHandle( );
			if ( handle != null )
			{
				ICellEventHandler eh = ( ICellEventHandler ) getInstance( ( CellHandle ) cellDesign