0

we have a visualforce page which is exceeding 135 kb viewState limit. The page uses data of past five years from database with <apex:inputField> in <apex:repeat> and renders data.
Now is there any way to replace <apex:inputField> with html input tag?

2 Answers 2

1

If your view state is getting exceeded then you should go with Javascript remoting. Records fetched with this methods are not included in view state at all.

Check example link

0

Before taking any action you should first establish whether the problem is with the view state that is:

  1. the non-transient fields of your controller
  2. a consequence of the apex tags

Both will increase as you present more rows, but 1) is much easier to fix than 2).

The View State Tab lets you establish this

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .