enter image description here
Rendering Page Block table based on condition

I have 2 pageblocktables. Pageblocktable1 renders if List contains value. Pageblocktable2 renders if List doent contains value.

trying out this

None of them working

1 Answer 1


1) Do not use braces for the function size:

rendered="{!list.size > 0}"

2) Use ISBLANK function to check an expression for the NULL:


Here more info about functions: Operators and Functions

  • Its giving error Save error: Unknown function lstApplication.size. Check spelling. test2.page /OAOA Project1/src/pages line 0 Force.com save problem
    – TestNS
    Sep 26, 2013 at 6:33
  • @TestNS What kind of variable is the lstApplication? You can use .size only for the lists. Sep 26, 2013 at 6:36
  • It worked fine now thans. I was also using opening and close brackets
    – TestNS
    Sep 26, 2013 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.