3 Replies Latest reply on Jun 19, 2009 2:49 AM by nimo stephan

    rich:fileUpload and entries.length

    nimo stephan Master

      Hello,

      How can I get the client-side-value of entries.length to my server-side-component?

      <rich:fileUpload id="myFileUpload" ..>
      
      <!--this does not work-->
      <rich:componentControl event="onadd" for="fileUpload" operation="entries.length;">
      <f:param value="#{myBean.length}" name="length"/>
      </rich:componentControl>
      
      <!--this does not work-->
      <a4j:support event="onadd" action="#{myBean.actualLength(entries.length)}" />
      
      
      </rich:fileUpload>


      When the event "onadd" occurs, then the client-side-value of the "entries.length" should be assigned to the property #{myBean.length}.

      How can I do that?