You need to sign in to do that
Don't have an account?

VF page fails to refresh sometimes
I am working on a page that displays files and allows filtering of the results. When the page loads, a list of files is displayed that are appropriate for the user. The user can then select various filtering criteria to shrink the list. The user can also click on the column headers to sort the list. When it works it works perfectly, however it often does not work, at all. The page will not respond to any button clicks and some links. This happens "randomly" across platforms, browsers, and users. At any given point the page may start responding, only to stop later. I cannot see anything in the code that would account for this. If you have any ideas please share them. :-) The VF is below. The APEX is in the second message in the thread.
//VF <apex:page standardController="Content__c" tabStyle="Content__c" extensions="ListContent_Extension"> <apex:form id="search"> <apex:pageBlock > <apex:pageBlockButtons location="bottom"> <apex:commandButton action="{!executeSearch}" value="Find Content" reRender="results"/> <apex:commandButton action="{!clear}" value="Clear Search" reRender="criteria,results"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Search Content" collapsible="false"/> <apex:pageMessage strength="2" severity="error" detail="{!errorMessage}" rendered="{!errorFlag}" /> <TABLE WIDTH="100%" id="criteria"> <TR> <TD WIDTH="7%" ALIGN="right"><B><apex:outputLabel value="Search:" /></B></TD> <TD WIDTH="12%"> <apex:inputText value="{!searchField}" id="searchField" /> </TD> <TD WIDTH="7%" ALIGN="right"><B><apex:outputLabel value="Services" /></B></TD> <TD WIDTH="12%"> <apex:selectList value="{!services}" size="4" multiselect="true"> <apex:selectOption itemValue="" itemLabel="-- ANY --" /> <apex:selectOptions value="{!ServicesItems}" /> </apex:selectList> </TD> <TD WIDTH="7%" ALIGN="right"><B><apex:outputLabel value="Content Type" /></B></TD> <TD WIDTH="12%"> <apex:selectList value="{!contentType}" size="4" multiselect="true"> <apex:selectOption itemValue="" itemLabel="-- ANY --" /> <apex:selectOptions value="{!ContentTypeItems}" /> </apex:selectList> </TD> <TD WIDTH="7%" ALIGN="right"><B><apex:outputLabel value="File Type" /></B></TD> <TD WIDTH="13%"> <apex:selectList value="{!fileType}" size="4" multiselect="true"> <apex:selectOption itemValue="" itemLabel="-- ANY --" /> <apex:selectOptions value="{!FileTypeItems}" /> </apex:selectList> </TD> <TD WIDTH="23%" ALIGN="right"> <B><apex:outputLabel value="Date Range Start" /></B> <apex:inputField value="{!Content__c.Filter_Date_Start__c}" /><BR/><BR/> <B><apex:outputLabel value="Date Range End" /></B> <apex:inputField value="{!Content__c.Filter_Date_End__c}" /> </TD> </TR> </TABLE> </apex:pageBlock> <apex:pageBlock > <apex:pageBlockTable value="{!contents}" var="c" rowClasses="odd,even" columns="9" styleClass="tableClass" id="results"> <apex:facet name="caption">My Contents</apex:facet> <apex:facet name="header">Contents</apex:facet> <apex:column > <apex:commandLink value="Edit" action="{!editPage}"> <apex:param name="Id" value="{!c.Id}" assignTo="{!Id}" /> </apex:commandLink> / <apex:commandLink value="Download" action="{!download}" onClick="window.open('{!c.S3_URL__c}')"> <apex:param name="Id" value="{!c.Id}" assignTo="{!Id}" /> </apex:commandLink> </apex:column> <!--BEGIN SORTABLE COLUMNS--> <apex:column > <apex:facet name="header"> <apex:commandLink value="Content Name" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="Name" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText value="{!c.name}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="Services" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="Services__c" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText value="{!c.Services__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="Content Type" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="Content_Type__c" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText value="{!c.Content_Type__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="File Type" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="File_Type__c" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText value="{!c.File_Type__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="Author" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="Author_Search__c" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText value="{!c.Author_Search__c}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="Created Date" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="CreatedDate" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText style="text-align:center" value="{!MONTH(c.CreatedDate)}/{!DAY(c.CreatedDate)}/{!YEAR(c.CreatedDate)}" /> </apex:column> <apex:column > <apex:facet name="header"> <apex:commandLink value="Download Date" action="{!doSort}" rerender="table"> <apex:param name="sortField" value="Download_Date__c" assignTo="{!sortField}" /> </apex:commandLink> </apex:facet> <apex:outputText rendered="{!NOT(ISNULL(c.Download_Date__c))}" style="text-align:center" value="{!MONTH(c.Download_Date__c)}/{!DAY(c.Download_Date__c)}/{!YEAR(c.Download_Date__c)}" /> </apex:column> <!-- END SORTABLE COLUMNS --> <apex:column > <apex:facet name="header">Comments</apex:facet> <apex:outputText value="{!c.Comments__c}" /> </apex:column> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>
THANKS!
APEX controller code:
Test code eliminated for brevity.