Bug 161385 Redundant display text occour when preview a parameter
Redundant display text occour when preview a parameter Steps to reproduce: 1.new a boolean parameter 2.set "combo box" display type and "list of value" to static 3.new a parameter and display text "false" ,value "0" 4.drag the parameter to the layout 5.preview Expected result: there's only "false" displayed in parameter dialogue Actual result: there are "false" and "0"
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/DataUtil.java
* </li>
	 * </ul>
	 * 
	 * @param dataType
	 *            the parameter data type
	 * @param defaultValue
	 *            the default value from design file
	 * @return
	 */
	public static String getDefaultValue( String dataType, String defaultValue )
	{
		if ( DesignChoiceConstants.PARAM_TYPE_DATETIME
				.equalsIgnoreCase( dataType ) )
		{
			Date obj = null;
			try
			{
				
				obj = DateFormatISO8601.parse( defaultValue );
			}
			catch ( Exception e )
			{
				e.printStackTrace( );
			}
			return getDisplayValue( obj );
		}
		return defaultValue;
	}
}