function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Angello Camacho DragoAngello Camacho Drago 

commandButton does not rerender

I have a visualforce page that call a method that return a String with the URL to download a contentdocument (chatter document), but when I make click the button doesn't rerender anything, this is my vfp:
 
<apex:page standardController="npe03__Recurring_Donation__c" extensions="ReporteCompromisosExportacionController" action="{!getFile}" tabStyle="Reporte_Compromisos__tab">  
    <apex:form id="form"> 	
        <apex:pageMessages id="errors"/>
        <apex:pageBlock id="page">
            <apex:pageBlockSection columns="1" title="Descargar Archivo de Cobranza" collapsible="false" id="descargar">
                <apex:pageBlockSectionItem >
                    <apex:image url="{!$Resource.excelIcon}" width="30" height="30" rendered="{!download}"/>
                    <apex:outputText id="name" value="{!fileName}"/>                    
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
            <apex:pageBlockButtons location="bottom" id="buttons">
                <apex:CommandButton id="download" value="Descargar Archivo" action="{!downloadFile}" rerender="form,errors,page,buttons,download" disabled="{!!download}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>