You need to sign in to do that
Don't have an account?
Kaity
Syntax on List Size
Hi,
Just wondering, how this "{!(contactList.size != 0)}" syntax is working. I knew List.size() is always used. in this example '()' is missing. Any idea??
EXAMPLE:
<apex:pageBlockTable value="{!innerContactList}" var="innerCont" <strong><font color="#ff0000">rendered="{!(contactList.size != 0)}"</font></strong>>
Thanks.
Just wondering, how this "{!(contactList.size != 0)}" syntax is working. I knew List.size() is always used. in this example '()' is missing. Any idea??
EXAMPLE:
<apex:pageBlockTable value="{!innerContactList}" var="innerCont" <strong><font color="#ff0000">rendered="{!(contactList.size != 0)}"</font></strong>>
Thanks.
List.size works in VF page. List.size() is for apex class. I tried it with a sample example.
You can refer to:
http://salesforce.stackexchange.com/questions/18603/rendering-output-panel-if-list-is-not-null
Thanks,
Pratik
P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.