Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-636

field input value is not used if the field is not in error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 4.0
    • 4.0
    • Framework
    • None
    • Windows XP

    Description

      This bug is related to bug TAPESTRY-549. After calling clearErrors(), the errors are cleared and the input field values are still kept. When the TextField renders the next, it should display its existing input field value, but currently it will do so only when it is in error. The expected behavior is that it should display its existing input field value as long as there is a tracking for it.

      The bug is in TranslatedFieldSupportImpl:

      public class TranslatedFieldSupportImpl implements TranslatedFieldSupport
      {
      public String format(TranslatedField field, Object object)

      { IValidationDelegate delegate = field.getForm().getDelegate(); //BUG: uses field input value only if it is in error return delegate.isInError() ? delegate.getFieldInputValue() : field.getTranslator().format( field, _threadLocale.getLocale(), object); }

      }

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            freemant Kent Tong
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: