Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1597

Tld documentation on inputFileUpload - accept attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.1.10
    • 1.1.11
    • File Upload
    • None

    Description

      The JSF tablib doc for this attribute still states "This property appears to have no purpose at all. It certainly has no documentation."

      It's actually a pretty important attribute for file upload.

      ex: <t:inputFileUpload id="myUploadFile" accept="application/pdf,image/*" ...

      Maybe update to something like... "This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly. User agents may use this information to filter out non-conforming files when prompting a user to select files to be sent to the server (cf. the INPUT element when type="file")."

      (above was copied the above from w3c spec - http://www.w3.org/TR/html401/interact/forms.html#adef-accept)

      Thanks,
      ...Mike

      ps. I'm using Tomahawk20-1.1.10 with myfaces 2.0.4 on tomcat 6.0.18. It honors the 'accept' attribute.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            mlyons49 Michael Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: