+ Start a Discussion
PalakPalak 

Maximum View State is exceeding [ERROR on VF]

Hi all,

 

I am retieving the list of contacts on VF . I have applied pagination, for this i am using standardsetController and for showing records on VF i m creating wrapper of those contacts, beacuse of the check boxes column in pageblocktable.

 

My issue is I cannot set any of the list as null and their view state size is too much.

Please help me.

 

With Regards

Palak

bob_buzzardbob_buzzard

If the viewstate is too large you'll have to do something to reduce it.  Are you querying back lots of fields for the contacts in question?

kiranmutturukiranmutturu

some best practises are there in order to eliminate this metioned in this post have a glance and happy day

 

http://forceguru.blogspot.in/2010/11/best-practise-to-write-apex.html

PalakPalak

Hello,

 

Thanks for replying.

Yes the problem was with fields only. I reduce the number of fields and problem got solved. Thanks a lot 

 

With Regards

Palak