Prevent form validation being triggered when page is accessed

Hello all,

I have a small problem when using a form. The form is generated based on a BeanItem. But, the problem is that when the page gets loaded, the form immediately starts validating.

So, the page gets loaded displaying some validation errors.

I remember reading somewhere that there is a way of preventing this. So that the form only gets validated when calling the commit() method.

Problem is I can’t remember where I read it or what the fix was.

Can someone help me with this?

Thanks in advance.