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


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


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

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.