Package atg.droplet

Examples of atg.droplet.TagConverter


     mEuroSpecified,
     mCurrencyConversion,
     mCurrencyConversionSpecified,
           mGroupingsize,
           mGroupingsizeSpecified);
        TagConverter converter = null;
        Properties converterArgs = null;
        if (converterInfo != null) {
          converter = converterInfo.getConverter ();
          converterArgs = converterInfo.getConverterArgs ();
        }
View Full Code Here


   mEuroSpecified,
   mCurrencyConversion,
   mCurrencyConversionSpecified,
         mGroupingsize,
         mGroupingsizeSpecified);
      TagConverter converter = null;
      Properties converterArgs = null;
      if (converterInfo != null) {
  converter = converterInfo.getConverter ();
  converterArgs = converterInfo.getConverterArgs ();
        if (mMindateSpecified && mMindate != null) {
          converterArgs.setProperty("mindate",mMindate);
        }
        if (mMaxdateSpecified && mMaxdate != null){
          converterArgs.setProperty("maxdate",mMaxdate);
        }       
      }

      // Get the value as a String
      String valueString;
      if (mBeanvalueSpecified) {
  if (mParamvalueSpecified || mValueSpecified) {
    throw new JspException (Constants.INPUT_TAG_BAD_VALUEATTRIBUTES);
  }
  // Resolve the bean name against the imports
        mBeanvalue = ImportedBeans.resolveName (mBeanvalue, mPageContext);

  valueString =
    DropletDescriptor.getPropertyStringValue
    (request,
     response,
     mBeanvalue,
     true,
     null,
     null);
      }
      else if (mParamvalueSpecified) {
  if (mBeanvalueSpecified || mValueSpecified) {
    throw new JspException (Constants.INPUT_TAG_BAD_VALUEATTRIBUTES);
  }
        Object paramvalue = request.getObjectParameter(mParamvalue);
        if (null == paramvalue){
          valueString = "";
        }else{
          if(null != converter){
            valueString = converter.convertObjectToString(request,
                                                          paramvalue,
                                                          converterArgs);
          }else{
            valueString = paramvalue.toString();
          }
        }
      }
      else if (mValueSpecified) {
  if (mBeanvalueSpecified || mParamvalueSpecified) {
    throw new JspException (Constants.INPUT_TAG_BAD_VALUEATTRIBUTES);
  }
        if (null != converter &&
            null != mValue &&
            ((String)mValue).trim().length() > 0){

          Object obj = converter.convertStringToObject(request,
                                                       (String)mValue,
                                                       converterArgs);
          valueString = converter.convertObjectToString(request,
                                                        obj,
                                                        converterArgs);
        }else{
          valueString = (mValue == null) ? "" : mValue.toString ();
        }
View Full Code Here

   mEuroSpecified,
   mCurrencyConversion,
   mCurrencyConversionSpecified,
         mGroupingsize,
         mGroupingsizeSpecified);
      TagConverter converter = null;
      Properties converterArgs = null;
      if (converterInfo != null) {
  converter = converterInfo.getConverter ();
  converterArgs = converterInfo.getConverterArgs ();
        if (mMindateSpecified && mMindate != null) {
          converterArgs.setProperty("mindate",mMindate);
        }
        if (mMaxdateSpecified && mMaxdate != null){
          converterArgs.setProperty("maxdate",mMaxdate);
        }       
      }

      // Get the value as a String
      String valueString = "";
      if (mBeanvalueSpecified) {
  if (mParamvalueSpecified || mValueSpecified) {
    throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
  }
  // Resolve the bean name against the imports
        mBeanvalue = ImportedBeans.resolveName (mBeanvalue, mPageContext);

  valueString =
    DropletDescriptor.getPropertyStringValue
    (request,
     response,
     mBeanvalue,
     true,
     null,
     null);
      }
      else if (mParamvalueSpecified) {
  if (mBeanvalueSpecified || mValueSpecified) {
    throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
  }
        Object paramvalue = request.getObjectParameter(mParamvalue);
        if (null == paramvalue){
          valueString = "";
        }else{
          if(null != converter){
            valueString = converter.convertObjectToString(request,
                                                          paramvalue,
                                                          converterArgs);
          }else{
            valueString = paramvalue.toString();
          }
        }
      }
      else if (mValueSpecified) {
  if (mBeanvalueSpecified || mParamvalueSpecified) {
    throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
  }
        if (null != converter &&
            null != mValue &&
            ((String)mValue).trim().length() > 0){

          Object obj = converter.convertStringToObject(request,
                                                       (String)mValue,
                                                       converterArgs);
          valueString = converter.convertObjectToString(request,
                                                        obj,
                                                        converterArgs);
        }else{
          valueString = (mValue == null) ? "" : mValue.toString ();
        }
View Full Code Here

     mEuroSpecified,
     mCurrencyConversion,
     mCurrencyConversionSpecified,
                 mGroupingsize,
                 mGroupingsizeSpecified);
      TagConverter converter = null;
      Properties converterArgs = null;
      if (converterInfo != null) {
    converter = converterInfo.getConverter ();
    converterArgs = converterInfo.getConverterArgs ();
      }
View Full Code Here

   mEuroSpecified,
   mCurrencyConversion,
   mCurrencyConversionSpecified,
         mGroupingsize,
         mGroupingsizeSpecified);
      TagConverter converter = null;
      Properties converterArgs = null;
      if (converterInfo != null) {
        converter = converterInfo.getConverter ();
        converterArgs = converterInfo.getConverterArgs ();
      }
View Full Code Here

   mEuroSpecified,
   mCurrencyConversion,
   mCurrencyConversionSpecified,
         mGroupingsize,
         mGroupingsizeSpecified);
      TagConverter converter = null;
      Properties converterArgs = null;
      if (converterInfo != null) {
  converter = converterInfo.getConverter ();
  converterArgs = converterInfo.getConverterArgs ();
      }
View Full Code Here

TOP

Related Classes of atg.droplet.TagConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.