Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-final
    • Fix Version/s: 1.3.2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      java 5 on safari and firefox, though it does not matter ;)

      Description

      the TextArea uses the default convertValue( String[] ) method which trims it's content.
      This causes me problems, so my component needs to be defined thus:

      add( new TextArea( "content" )
      {
      protected Object convertValue(String[] value) throws ConversionException

      { return value != null && value.length > 0 && value[0] != null ? value[0] : null; }

      });

      Which overrides and removes the trim() call.
      Suggest this override should be in TextArea, maybe optional?

        Activity

        Hide
        Igor Vaynberg added a comment -

        see FormComponent#shouldTrimInput()

        Show
        Igor Vaynberg added a comment - see FormComponent#shouldTrimInput()

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Andrew Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development