Bug 182933 Pattern in birt:paramDef tag doesn't work.[0603]
Description: Pattern in birt:paramDef tag doesn't work. Build number:2.2.0.v200704180630 Steps to reproduce: 1. New a report with a parameter p_flo, float type. 2. New a jsp file with content: <birt:parameterPage id="0" name="customparameterpage" reportDesign="report/customJspTagParamDefPattern.rptdesign" isCustom="true"> <birt:paramDef id="4" name="p_flo" pattern="$#,00.00" value ="$2,31,45.789456"/> <input type="submit" name="OK" value="submit"/> </birt:parameterPage> 3. run the jsp file. Expected result: Accept the value with the pattern Actual result: The value "$2,31,45.789456" is invalid with the type "float". Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/DataUtil.java
/*************************************************************************************
 * Copyright (c) 2004 Actuate Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Actuate Corporation - Initial implementation.
 ************************************************************************************/
package org.eclipse.birt.report.utility;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.Locale;
import org.eclipse.birt.core.data.DataTypeUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.exception.CoreException;
import org.eclipse.birt.report.engine.api.IScalarParameterDefn;
import org.eclipse.birt.report.model.api.elements.DesignChoiceConstants;
import org.eclipse.birt.report.model.api.metadata.ValidationValueException;
import org.eclipse.birt.report.model.api.util.ParameterValidationUtil;
/**
 * Provides data convert and format services
 * 
 */
public class DataUtil