Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8224017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:54:40+00:00 2026-06-07T14:54:40+00:00

I´m trying to re-enable the control button in a rich:uploadFile after upload the file.

  • 0

I´m trying to re-enable the control button in a rich:uploadFile after upload the file.

I have:

<rich:panel id="fileuploader">
    <script type="text/javascript">alert("rendering");</script>
<rich:fileUpload fileUploadListener="#{fileUploadBean.listener}"
            maxFilesQuantity="1"   id="upload" autoclear="true"
            acceptedTypes="jpg, gif, png, bmp" >
            <a4j:support event="onuploadcomplete" reRender="fileuploader" />
    </rich:fileUpload>
    <a4j:commandButton value="reRender" reRender="fileuploader"/>
</rich:panel>

I put a Script to be sure the panel is re-rendering.
I read that you can reRender the uploadFile control, or refresh the whole page. After I upload the file, the controlButton gets disabled, and although I do a rerender with the commandButton, the control button is still disabled. But when I do a full refresh page, the control is ok.

Im using rich faces 3.3.3

Any help?

Thanks

[Edit]

I found the problem, but not the solution yet! I have a table with multiple rows so I have multiple rich:fileUpload’s. If I just show one row and it works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:54:42+00:00Added an answer on June 7, 2026 at 2:54 pm

    I’ve faced the same problem, to solve it I rerendered the control, not a panel that holds it, I don’t know if this approach will work (but it does for me):

    EDIT: Changed your code for mine, maybe there is a difference that I can’t see.

    <rich:fileUpload id="fuArchivoExcel" maxFilesQuantity="1"
        listHeight="60px" listWidth="350px" immediateUpload="false"
        fileUploadListener="#{cargaDocumentoRequerido.subeArchivo}"
        addControlLabel="Seleccionar archivo" uploadControlLabel="Subir"
        clearAllControlLabel="Borrar archivos"
        clearControlLabel="Borrar archivo" stopControlLabel="Detener" autoclear="true">
        <f:facet name="label">
            <h:outputText value="Se han subido {_KB}KB de {KB}KB" />
        </f:facet>
        <a4j:support event="onuploadcomplete" reRender="fuArchivoExcel,pnlMensajesError"
            oncomplete="finCargaArchivo('#{cargaDocumentoRequerido.mensaje.idMensaje}', '#{cargaDocumentoRequerido.mensaje.descMensaje}')" />
    </rich:fileUpload>
    

    EDIT (based in comments)

    When you use the <rich:fileUpload> inside a repeater like <rich:dataTable>, you should rerender the repeater component instead of the single component. This will solve your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to enable tabs functionality in the WebBrowser control. I have a TabControl
I' m trying to enable adding/deleting rows to/from table using folowing code: Script: $(document).ready(function()
I'm trying to enable or disable all the control in a window as the
I am trying to make a radio button control with a transparent background using
Possible Duplicate: What does jQuery.fn mean? I have some script on a page trying
I have successfully downloaded and installed AJAX framework, and the control toolkit. While trying
I have a relatively complex .htaccess file to control page requests, this currently redirects
I need to disable a button for 2.56 seconds, long after control is returned
I have a checkbox and radiobuttonlist defined as follows: <asp:CheckBox id=chkChange runat=server text=Enable />
I'm trying to enable a double click event on a flex control without disabling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.