Bug 136241 [regression]Preview template in web viewer and pdf didn't get correct effect.
Description: Preview template items in web viewer and pdf didn't get correct effect. Steps to reproduce: 1. Create template items. 2. Preview in Web Viewer and pdf. Expected result: Same effect as in html. Actual result: In web viewer, see only blank box. In pdf, blank page.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/TemplateCommand.java
value,
							PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE );
			}
		}
	}
	/**
	 * Resolve the property value of <code>REF_TEMPLATE_PARAMETER_PROP</code>
	 * in a template element.
	 * 
	 * @param module
	 *            the module of the template element
	 * @param name
	 *            the name to resolve
	 * @return the element reference value
	 */
	private TemplateParameterDefinition resolveTemplateParameterDefinition(
			Module module, String name )
	{
		PropertyDefn prop = element
				.getPropertyDefn( DesignElement.REF_TEMPLATE_PARAMETER_PROP );
		if ( prop == null )
			return null;
		ElementDefn targetDefn = (ElementDefn) prop.getTargetElementType( );
		DesignElement resolvedElement = module.resolveElement( name, targetDefn
				.getNameSpaceID( ), (ElementPropertyDefn) prop );
		
		
		
		
		return (TemplateParameterDefinition) resolvedElement;