I have a JSF - xhtml page with New, Save, Delete , Print , Close command buttons.
We have applied few validations on the input controls and those are working well on delete and save. For close button we have set "immediate=true" to disallow validation which are also working fine.
But we also want to notify user if he changes the value in any of the input control and then chooses to close the form, that "he has left with some unsaved changes" , since the close button has been set for immediate true, it does not recognizes the changes in the values also valuechangeListerner not works on close if immediate = true is set for it.
Like to know the approach to be taken in this case....
Thanks