Archive for June 2008

Seam-gen and default ROOT context

If you are using seam-gen to deploy webapps as war-files to a webserver (for example JBoss AS), the root url of your webapp will be something like http://example.com/myproject/. (Where “myproject” is the name that you gave to your webapps when setting it up using seam-gen.) If you want your webapp to be assigned to the root [...]

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 [...]