0 Replies Latest reply on Aug 17, 2008 11:02 PM by kw wong

    FileUpload: f:validator doesn't work

    kw wong Newbie

      Hi, the validator hasn't called when I upload the file. I try to use the <f:validator> or the validator method at backing bean. Both method cannot call the validator methed. Has anyone used the validator in upload file component?

      <rich:fileUpload fileUploadListener="#{fileUploadBean.listener}"
      maxFilesQuantity="3"
      id="upload"
      immediateUpload="true"
      acceptedTypes="jpg" listHeight="150" listWidth="300">
      <a4j:support event="onuploadcomplete" reRender="imagedetail" />
      <f:validator validatorId="FileUploadValidator"/>
      <f:param name="identifier" value="#{storeDetailBean.item.identifier}"></f:param>
      </rich:fileUpload>