Posts Tagged ‘jsf’

JSF doesn’t validate empty forms

Error:
Caused by org.hibernate.validator.InvalidStateException with message: “validation failed for: MyHibernateEntity”
Are you getting this error while trying to validate a form with empty fields using Seam, JSF and Hibernate? Then read on.
Seam allows you to define validation conditions on a single place: on the Hibernate / JPA entities. And then use this condition in the view without [...]

Seam and URL rewriting with parameters and forms

Making pretty bookmarkable RESTful URLs in JSF is hard. Fortunately the Seam framework solves this problem by supporting HTTP parameters, advanced page navigation, and can use the help of UrlRewriteFilter. But making bookmarkable parameter URLs in combination with a POST form can still be a bit tricky. This blog post shows an example how to solve this [...]