works with session2 instead of session.
could you please post a list of restricted keywords for Seam component names?
Ouch. I need to alias org.jboss.seam.web.session to some other name than just "session". Ooops!
please raise an issue in JIRA
The lack of qualification for the component name presents this risk. Why not make it best practice to qualify the component name? So built-in components are "org.jboss.seam.Session", and my own objects would be "com.domain.project.Session". I know it seems verbose, but it just seems practical for large projects.
All seam components have qualified names, they are aliased using @Factory to their short name. If you are in a large project qualifying your names is a very good idea :)
For commonly-used components, @In("org.jboss.seam.web.session") is really verbose.
I should try and figure out some concept of "namespaces", where components in the same namespaces don't need to use qualified names to refer to each other. And where there is some mechanism for "importing" a namespace into another namespace.
But we don't have anything like that yet.
That'd be neat.