You need to sign in to do that
Don't have an account?
Condition in rendered markup doesn't work
Hello,
I'm developing a Visualforce page with a controller and I've a problem in the 'rendered' markup.
When a user click on a button, he calls a controller method and then the results displays themselves in the visualforce page if a variable equals to true and a variable equals to false.
This is my controller :
And my Visualforce page :
I don't understand why my condition doesn't work? :(
The pageBlock never displays himself.
Thanks for the help.
I'm developing a Visualforce page with a controller and I've a problem in the 'rendered' markup.
When a user click on a button, he calls a controller method and then the results displays themselves in the visualforce page if a variable equals to true and a variable equals to false.
This is my controller :
public PageReference searchForm(){ try{ this.attributionList = this.getAttributionsList(this.anAttributionToSearch); this.clickToSearch = true; this.clickToCreate = false; this.hasSearched = true; }catch(Exception e){ this.displayErrorMessage(e.getMessage()); } return null; }
And my Visualforce page :
<apex:form> <apex:commandButton action="{!searchForm}" value="{!$Label.Labs_Sf_Search_Button}" rerender="theTabPanel" status="actionPopup"/> </apex:form> <apex:pageBlock title="{!SUBSTITUTE($Label.Labs_Sf_Number_Of_Results, '#', TEXT(attributionList.size))}" rendered="{!IF(!clickToCreate && clickToSearch, true, false)}"> ... </apex:pageBlock>
I don't understand why my condition doesn't work? :(
The pageBlock never displays himself.
Thanks for the help.
I'd forgotten the attribute id="theTabPanel" but event with that, it doesn't work :