use oncomplete on your save button to call closing JS after request completed. About validation in this situation you may read in wiki.
Thank you very much ilya.
i have done.
about validation did you mean a4j:commandButton attribute - bypassUpdates ? or something else ?
aaah, yes it is very good for me.
Thank you again ilya.