Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2174

Form#getMaxSize() -> no custom format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC3
    • wicket
    • None

    Description

      Hi,

      I found problem with format of 'maxSize' property in component Form:

      final Map<String, Object> model = new HashMap<String, Object>();
      model.put("exception", e);
      model.put("maxSize", getMaxSize());

      ... the main problem is if you want modify 'look and feel' of the Bytes format in error messages.

      Can you add e.g. new method String formatMaxSize() or something similar? The other solution is modification of toString of bean Bytes to get results look like 300kB (now there is 300K ... this is not good for common users). Or is there other simple way how to do this?

      Regards,
      H.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            hell Jan Loose
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: