So instead we got Seam development using JBoss IDE(or some similar IDE). Gavin showed how to create a projekt using seam/facelets and some faces extensions, Richfaces and ajax4jsf. Really pointed to the ability to test things in the real context. This is part of seam.
The demo continued creating a application that used some UI:s from Richfaces and it showed how fast and easily u can create a interactive program today.
So what is seam?
I really dont know all yet but this is some of it.
- A way to get a faces/jpa and some application up and runnig requiring minimum configuration.
- Minimize the configuration to use jsf.
- Create a common plattform for the Bean-context. Supports a new scope called conversation. Conversation is something in between Session and request, but is more useful than session. It is useful for page-flows, tabs and similar parts of the application.
- A generation-tool that can easily create boiler-plate code for your new application.
- A way to get out of the configuration-hell of all the new frameworks, Seam uses anotations for most of this.
- A Security model implementated using anotations. Make it easy to use security on your application. Can be simple or advanced using roles etc.
- A validation support using Hibernate-validation through anotations.
There is propably more but i did not get it from this.
I later bumped into Gavin(or i walked to Jboss and there he was) at the Pavilion and asked about the validation support and if they have any plans to support validation depending on the state of the bean that is validated. For example if a IncidentReport is filed a title is all that is needed, later when a user works on the report it suddenly have specific data that might be required and before its closed some other data might be needed.
This gives a more complex usage for Validation, this is something that i usually have to do, i cant be alone!? A way to solve this could be to create a Validation typebound anotation. Like the one Bob Lee presented in the Webbeans session.
The variable in the custom-validation-anotation is a instance variable in the current Bean.