I want to achieve a quite "delicate" task, so I'll try to give my best in explanations.
I have a news item page where below all the comments I have an add comment form. In terms of actions, in the News->view() view I included an element which contains the view of Comment->add(). So, the current flow of sending a new comment is: Enter the news item page, fill in the comment form, and press submit. The data is then sent to CommentsController to the add() action where the currently submitted data is validated. If data is valid, it saves the comment and brings me back to the news item page. If it doesn't validate, it remains in the CommentsController add() action and renders the Comment->add() view together with the errors.
Now, I want, even if the data doesn't validate, to go back to the news item page and display the error and also attach the error div's to the add comment form. How can I achieve this?
Maybe I've done wrong by creating an element containing the same form found at Comment->add(), but how else could I include the Comment->add() view at the bottom of the News->view() view?
I am thankful for any help you can give.