Liferay diaries: Help! My validation errors are not showing!

While still battling form submissions in my Liferay/Spring MVC Form controller/Multi-portlet beast, I noticed that the Spring form tags would not display errors. As this post [1] explains, the reason is that the form backing object must be named exactly as the class consituting the backing object, but with the first letter in lowercase.

Thus the jsp:


...

must match the controller:

    @RenderMapping
public String view() {
        return "searchDeliveries";
    }

[1] Stackoverflow
http://stackoverflow.com/questions/1363753/spring-mvc-formerrors-tag-doesnt-find-error-messages

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s