Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The new Tree2 component is a rewrite of the now deprecated Tree component. It uses mostly the same interface but is rewritten with cleaner code and renders without using tables.

FileUpload

The FileUpload component's constructor has changed:

  • The old constructor FileUpload(int maxfiles, String allowedExtensions) has been removed because it was completely unclear what allowedExtensions was supposed to hold.
  • The new constructor FileUpload(int maxfiles, List<String> allowedExtensions) is its replacement, and each element in the list is an extension (either with or without starting .) or a mime type.
  • The new constructor FileUpload(String... allowedExtensions) represents the most common use case: uploading a single file, and specifying a list of extensions.

The FileUpload now uses the "accept=" attribute on the input tag to have the browser filter the files to choose from to the ones actually accepted.

LookupInput and LookupInput2

...