validation on nested models

I use javascript to insert a nested model form into a page. If I use validation on the data entered and it reloads the page with an error displayed, the nested model form is gone because it's not part of the original template.

Is there any way I can change it?

Hell Mlle, have you found a solution? I have the same exact problem...