Bug 213804 [Automation][Regression]Table of contents does not work correcly
Description: Add a table of content tag on a grid which is in page 2 in a report, but when I click the TOC tag it redirects to page 1. Test Date: 20071224 Test Build: BIRT2.3.0 Daily Build: v20071224-0800 Step to reproduce: 1. Use the report attached 2. Preview it in web viewer 3. Click the TOC Expect result: TOC should link to the grid in page 2. Actual result: TOC redirects to page 1.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java
{
		return this.context;
	}
	public ExecutorManager getManager( )
	{
		return this.manager;
	}
	long generateUniqueID( )
	{
		return uniqueId++;
	}
	public IReportItemExecutor createPageExecutor( long pageNumber,
			MasterPageDesign pageDesign )
	{
		
		IPageContent pageContent = (IPageContent)pages.get( pageDesign );
		if(pageContent == null )
		{
			
			IReportItemExecutor pageExecutor = new MasterPageExecutor( manager, pageNumber, pageDesign );
			pageContent = (IPageContent) pageExecutor.execute( );
			IContentEmitter domEmitter = new DOMBuilderEmitter( pageContent );
			ReportExecutorUtil.executeAll( pageExecutor, domEmitter );
			pageExecutor.close( );
			pages.put( pageDesign, pageContent );
		}
		return new DOMReportItemExecutor( pageContent, true );
	}
}