0 Replies Latest reply on Aug 24, 2010 12:28 PM by gonzalad

    Using enum types for mimeTypes

    gonzalad Apprentice


      Seam 2 uses enum types to associate file extensions with mimeTypes (in s:graphicImage for instance, and perhaps 1 or 2 more places) - see WhySgraphicImageCanNotShowBmp.

      Enum types cannot be extended, so if we want to handle another mimeType, we must patch Seam 2.

      Could Seam 3 use javax.activation.FileTypeMap instead (i.e. just call FileTypeMap.getDefaultFileTypeMap() ?). This would be better to provide new mimeTypes (i.e. see discovery sequence in MimetypesFileTypeMap)

      Thanks !