1 Reply Latest reply on Mar 4, 2009 5:56 AM by N H

    Tag s:fileUpload property disabled doesn't work

    Edson Silva Newbie

      Hello, anyone knows a workaround to this misfunction?

        • 1. Re: Tag s:fileUpload property disabled doesn't work
          N H Newbie
          I also noticed this. It seems to be by design. The fileUpload renderer (in seam 2.0.1-GA) has the following line in the doEncodeEnd(...) method:

          org.jboss.seam.ui.renderkit.FileUploadRendererBase.doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component)
          ...
          HTML.renderHTMLAttributes(writer, component, HTML.INPUT_FILE_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED);
          ...

          So it seems the "disabled" attribute is ignored on purpose. Does anyone know of a specific reason why this is the case?