src/org/tiefaces/components/websheet/dataobjects/TieSheetNumberConverter.java
@Override
	public final String getAsString(final FacesContext context,
			final UIComponent component, final Object value) {

		String strValue = null;
		String symbol = "";
		try {

			strValue = (String) value;
			symbol = (String) component.getAttributes()
					.get(TieConstants.CELL_DATA_SYMBOL);

			if ((symbol != null)
					&& (symbol
							.equals(TieConstants.CELL_FORMAT_PERCENTAGE_SYMBOL))
					&& (value != null) && !((String) value).isEmpty()) {

				Double doubleValue = Double.valueOf((String) value)
						* TieConstants.CELL_FORMAT_PERCENTAGE_VALUE;
				strValue = fmtNumber(doubleValue)
						+ TieConstants.CELL_FORMAT_PERCENTAGE_SYMBOL;
			}
		} catch (Exception ex) {
			LOG.log(Level.SEVERE,
					"error in getAsString of TieSheetNumberConverter : "
							+ ex.getLocalizedMessage(),
					ex);
		}
		return strValue;
	}
@Override
	public final String getAsString(final FacesContext context,
			final UIComponent component, final Object value) {

		String strValue = null;
		String symbol = "";
		try {

			strValue = (String) value;
			symbol = (String) component.getAttributes()
					.get(TieConstants.CELL_DATA_SYMBOL);

			if ((symbol != null)
					&& (symbol
							.equals(TieConstants.CELL_FORMAT_PERCENTAGE_SYMBOL))
					&& (value != null) && !((String) value).isEmpty()) {

				Double doubleValue = Double.valueOf((String) value)
						* TieConstants.CELL_FORMAT_PERCENTAGE_VALUE;
				strValue = fmtNumber(doubleValue)
						+ TieConstants.CELL_FORMAT_PERCENTAGE_SYMBOL;
			}
		} catch (Exception ex) {
			LOG.log(Level.SEVERE,
					"error in getAsString of TieSheetNumberConverter : "
							+ ex.getLocalizedMessage(),
					ex);
		}
		return strValue;
	}
@ Override public final String getAsString ( final FacesContext context , final UIComponent component , final Object value ) { String strValue = null ; String symbol = "" ; try { strValue = ( String ) value ; symbol = ( String ) component . getAttributes ( ) . get ( TieConstants . CELL_DATA_SYMBOL ) ; if ( ( symbol != null ) && ( symbol . equals ( TieConstants . CELL_FORMAT_PERCENTAGE_SYMBOL ) ) && ( value != null ) && ! ( ( String ) value ) . isEmpty ( ) ) { Double doubleValue = Double . valueOf ( ( String ) value ) * TieConstants . CELL_FORMAT_PERCENTAGE_VALUE ; strValue = fmtNumber ( doubleValue ) + TieConstants . CELL_FORMAT_PERCENTAGE_SYMBOL ; } } catch ( Exception ex ) { LOG . log ( Level . SEVERE , "error in getAsString of TieSheetNumberConverter : " + ex . getLocalizedMessage ( ) , ex ) ; } return strValue ; }
/*
(non-Javadoc)

@see javax.faces.convert.Converter#getAsString(javax.faces.context.
FacesContext, javax.faces.component.UIComponent, java.lang.Object)
/ * ( non - Javadoc )