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
AbAb 

What happens if list is blank in visualforce page

Hello,

If i put rendered="{Qlist.Zone__c == 'Text' }"
<apex:outputPanel rendered="{Qlist.Zone__c == 'check' }">check present<br />
<apex:outputPanel rendered="{Qlist.Zone__c != 'check' }">check not present<br />

What happens if
1) Qlist is emplty or null
Best Answer chosen by Ab
Sukesh Kumar 33Sukesh Kumar 33
You will have to place the outputpanel's inside repeat, if you are making use of list and it has more than 1 item.

All Answers

AbAb
Also, is there way to optimiwe the code below
 
<apex:outputPanel rendered="{!Qlist.Zone__c == 'check' }">check present<br />
<apex:outputPanel rendered="{!Qlist.Zone__c != 'check' }">check not present<br />

 
Sukesh Kumar 33Sukesh Kumar 33
You will have to place the outputpanel's inside repeat, if you are making use of list and it has more than 1 item.
This was selected as the best answer