You need to sign in to do that
Don't have an account?
Angello 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>