MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1597

Tld documentation on inputFileUpload - accept attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1.10
    • Fix Version/s: 1.1.11
    • Component/s: File Upload
    • Labels:
      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.

        Activity

        Hide
        Leonardo Uribe added a comment -

        Thanks to Michael Lyons for mention the documentation fix.

        Show
        Leonardo Uribe added a comment - Thanks to Michael Lyons for mention the documentation fix.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Michael Lyons
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development