Bug 199537 Fail to display data in Web viewer[0002]
Description: Fail to display data in Web viewer Build number:2.2.1.v200708101407 Steps to reproduce: 1. Preview attached report in Web Viewer. Expected result: Display data. Actual result: No data. Error log:n/a
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
}
	}
	/**
	 * @param elements
	 * @param processedElements
	 * @param originalElement
	 */
	private void addExternalElement( List elements, List processedElements,
			DesignElement originalElement )
	{
		if ( processedElements.contains( originalElement ) )
			return;
		DesignElement originalContainer = originalElement.getContainer( );
		if ( elements.contains( originalContainer ) )
		{
			addExternalElement( elements, processedElements, originalContainer );
		}
		processedElements.add( originalElement );
		DesignElement tmpElement = (DesignElement) externalElements
				.get( originalElement );
		DesignElement tmpContainer = getTargetContainer( originalElement,
				tmpElement, processedElements );
		ContainerContext context = null;
		if ( tmpContainer != null )
			context = originalElement.getContainerInfo( ).createContext(
					tmpContainer );
		if ( context == null && originalContainer instanceof Theme )
		{
			int newId = IReportDesignModel.STYLE_SLOT;
			context = new ContainerContext( targetDesign, newId );