Thank you Gilberto, i actually looked through all the links you reference before posting. I believe I didn't formulated the question right...
When the form is submitted, the onInit() method is executed first and then the onSubmit() - or so I believe. I set the dataProvider for the page in the onInit() method and pass the request parameters to it. So what happens is - even if the form is invalid, the dataProvider is set and the page will be rendered using invalid request parameters. What I'd like is to not render any data (just an empty table) if the form doesn't validate. At the same time, when the page first loads, the data is being displayed using the default parameters, so form submission is not necessary to display data. That's why i can't set dataProvider in the onSubmit method. Thank you! -- View this message in context: http://click.1134972.n2.nabble.com/How-to-not-bind-variables-when-the-form-is-invalid-tp7308872p7309878.html Sent from the click-user mailing list archive at Nabble.com.
