Ajax and immediate attribute problem

Hello,

I have a form with submit and cancel buttons, all Ajax (ajax4jsf).

If after submit there was a validation error the form fields does not rerender.

I use the immediate="true" attribute on the cancel button - I know this attribute is problematic.

From searches I made the only way I found to solve this problem is by refreshing the page, but I use Ajax so I will not have to refresh my page.

This is bugging my for sometime now.

Is there a solution?

Thanks

[510 byte] By [Choyoa] at [2007-11-26 15:50:47]
# 1
Usually, the "cancel" button with immediate="true" is used to quit the page with form and load other page without performing the validation.I do not quite understand your use case. If you have a "cancel" button to quite the page with form, why it is an Ajax button?
Sergey.Smirnova at 2007-7-8 22:10:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...