MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1347

t:inputFileUpload does not honor enabledOnUserRole attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.8-SNAPSHOT
    • Fix Version/s: 1.1.8
    • Component/s: File Upload
    • Labels:
      None
    • Environment:
      tomcat 6.0.16
      java 1.6.0

      Description

      given a jsp page with:
      <t:inputFileUpload enabledOnUserRole="admin"/>

      The inputFileUpload component will still get rendered even though the user's role is not 'admin'.

        Activity

        Hide
        Paul Rivera added a comment -

        Let me just clarify the description above. The inputFileUpload component will get rendered and is editable/enabled even though the user's role is not equal to 'admin'.

        I've attached a patch above named HtmlFileUploadRenderer.patch. Looks like this was just a simple mistake in logic.

        Show
        Paul Rivera added a comment - Let me just clarify the description above. The inputFileUpload component will get rendered and is editable/enabled even though the user's role is not equal to 'admin'. I've attached a patch above named HtmlFileUploadRenderer.patch. Looks like this was just a simple mistake in logic.
        Hide
        Leonardo Uribe added a comment -

        Thanks to Paul Rivera for provide this patch

        Show
        Leonardo Uribe added a comment - Thanks to Paul Rivera for provide this patch

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Paul Rivera
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development