2 Replies Latest reply on Mar 28, 2009 1:03 AM by Brian Ko

    rich:fileUpload in seam portlet

    Victor Manuel Ojeda Valiente Newbie

      Hi all,

        I have a portlet with several RichFaces components. All works Ok. But if I add a rich:fileUpload component, the listener event is never being called. It permit me browse for a file, select it and add it to the list. After pressing the upload button, the page is refreshed but the listener method is not called. What is the problem?

      The page fragment is

      <h:panelGrid id="tenthRowPanel" columns="1">                                        
      <h:outputText value="#{messages['documents']}"/>
      <rich:fileUpload id="operationOrderUploadDocumentId"          
        <f:facet name="label">
          <h:outputText value="{_KB}KB de {KB}KB cargados --- {mm}:{ss}"></h:outputText>

      and the bean

      public class OperationOrdersAction implements OperationOrders {
       public void listener(UploadEvent event) throws IOException{
           System.out.println("FILE HAS BEING UPLOADED");

      Of course, the OperationOrders interface has the listener method

      Thanks in advance,


        • 1. Re: rich:fileUpload in seam portlet
          Michael Scepaniak Newbie

          I'm seeing the same behavior, but with the standard Seam upload component (I haven't yet tried the RichFaces upload component). If you look at the current release info -
          you'll see that RichFaces 3.2.0.GA is supported (with exception of upload component). So, I'm guessing this is a known issue.

          While this is disappointing, I don't find it shocking, given that the JBPB is only on its second release. The real question in my mind is, where on the development/release roadmap is support for uploads via Seam and the JBPB? I don't see a JIRA issue for it.



          • 2. Re: rich:fileUpload in seam portlet
            Brian Ko Newbie

            When I deploy my seam portlet, I have following errors. Because of this my page has java script error. Do you know what is causing this problem? Thank you in advance.


            16:45:16,047 ERROR [STDERR] Mar 27, 2009 4:45:16 PM org.jboss.portletbridge.AjaxPortletBridge init
            INFO: Start portletbridge initialization for IdentityUserPortlet
            16:45:16,063 ERROR [STDERR] Mar 27, 2009 4:45:16 PM org.jboss.portletbridge.AjaxPortletBridge initFaces
            INFO: Create instance of a JSF lifecycle DEFAULT
            16:45:16,110 ERROR [STDERR] Mar 27, 2009 4:45:16 PM org.jboss.portletbridge.AjaxPortletBridge init
            INFO: Done portletbridge initialisation for IdentityUserPortlet
            16:45:16,125 ERROR [STDERR] Mar 27, 2009 4:45:16 PM org.jboss.portletbridge.AjaxPortletBridge doFacesRequest