3 Replies Latest reply on Mar 14, 2008 10:32 AM by andrei_exadel

    fileUpload richfaces 3.2

    damnre

      Hi i'm trying to run the new component but i'm getting a weird error that i just can't find anything about!

      org.ajax4jsf.event.AjaxEvent not supported by UIInput when i press upload on the component. My action listener doesn't seam to be called! and i'm getting the error anybody tried to run it?

      I'M on facelets, myfaces 1.2, seam 2.0, richfaces 2.0, tomahawk 1.16

      <rich:fileUpload id="fileUpload" uploadData="#{tmpBean.upFile.data}"
      fileUploadListener="#{tmpBean.uploadListener}"
      acceptedTypes="*"
      contentType="#{tmpBean.upFile.contentType}"
      maxFilesQuanity="10" listHeight="100%" listWidth="100%"
      fileName="#{tmpBean.upFile.name}" fileSize="#{tmpBean.upFile.size}"/>

        • 1. Re: fileUpload richfaces 3.2
          • 2. Re: fileUpload richfaces 3.2
            damnre

            thanks...i was going crazy trying to find out if it was me!!

            Here is the code in myfaces... UIinput class

            public void broadcast(FacesEvent event)
            throws AbortProcessingException
            {
            if (!(event instanceof ValueChangeEvent))
            {
            throw new IllegalArgumentException("FacesEvent of class " + event.getClass().getName() + " not supported by UIInput");
            }

            // invoke standard listeners attached to this component first
            super.broadcast(event);

            // invoke the single listener defined directly on the component
            MethodBinding valueChangeListenerBinding = getValueChangeListener();
            if (valueChangeListenerBinding != null)
            {
            try
            {
            valueChangeListenerBinding.invoke(getFacesContext(),
            new Object[]{event});
            }
            catch (EvaluationException e)
            {
            Throwable cause = e.getCause();
            if (cause != null && cause instanceof AbortProcessingException)
            {
            throw (AbortProcessingException)cause;
            }
            else
            {
            throw e;
            }
            }
            }
            }

            • 3. Re: fileUpload richfaces 3.2

              This has been fixed.
              Thank you for posting this problem.