Package de.innovationgate.wgpublisher.webtml.utils

Examples of de.innovationgate.wgpublisher.webtml.utils.TagOutputFormatter


        getStatus().divider = "";
       
    }   
   
    private void renderHashedPassword(String name, String cssClass, String cssStyle, Object singleValue, String tagContent, String disabled) {               
        String formattedValue = new TagOutputFormatter(getTMLContext()).format(singleValue);
        // if there we got a value from source, the value is already hashed
        // register field on form to ensure not to hash twice
        if (formattedValue != null && !formattedValue.trim().equals("")) {
            FormStatus formBase = (FormStatus) getStatus().getAncestorTag(FormBase.class);
            formBase.registerHashedPasswordField(name, formattedValue);
View Full Code Here


            InputOption option = (InputOption) options.next();
            optionValue = option.getValue();
            optionText = option.getText();
     
            if (optionValue != null && format != null) {
              optionValue = new TagOutputFormatter(format, getTMLContext(), stringToBoolean(getTrim())).format(optionValue);
            }
           
            String displayOptionValue = optionValue;
            String displayOptionText = optionText;
           
View Full Code Here

    String cssStyle,
    Object singleValue,
    String tagContent,
        String disabled) {
       
        singleValue = new TagOutputFormatter(format, getTMLContext(), stringToBoolean(getTrim())).format(singleValue);
                       
    this.appendResult("<input name=\"").appendResult(name).appendResult("\" type=\"").appendResult(type).appendResult("\" ");
    String theId = getId();
    if (theId!=null)
      this.appendResult("id=\"" + theId + "\" ");
View Full Code Here

    if (value == null) {
      value = "";
    }
   
    if (format != null && (type.equals("date") || type.equals("number"))) {
      value = new TagOutputFormatter(format, getTMLContext(), stringToBoolean(getTrim())).format(value);
    }
    this.appendResult("<textarea name=\"").appendResult(name).appendResult("\" ");
    this.appendResult(cssClass).appendResult(cssStyle).appendResult(disabled).appendResult(tagContent).appendResult(">");
   
    if ( multiple ) {
View Full Code Here

        if (includeFormatting == true) {
            // Get formatter objects regarding the Attributes format and
            // encoding

            // format Attribute
            formatters.addFormatter(new TagOutputFormatter(status.format, getTMLContext(), stringToBoolean(getTrim())));

            // Encode the result regarding the encode attribute
            String encodersList = getStatus().encode;
            if (encodersList != null && !encodersList.equals("none")) {
                Iterator encoders = WGUtils.deserializeCollection(encodersList, ",", true).iterator();
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.webtml.utils.TagOutputFormatter

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.