With Seam you have options for component configuration. One of those options is configuration through use of components.xml. This is especially valuable when you have components that are reused among application instances as it allows the configuration to be specific based on the needs of the application. Seam provides a very simple approach to limit [...]
Entries Categorized as 'Java'
Generating Namespaces and schemas for your Seam components
January 8, 2008
Contextual injection of core domain concepts with Seam
December 20, 2007
Update: Pete Muir recently posted an alternative to the example described here for the UserProfile object. It avoids potential LazyInitializationException if you access a property which was not initialized inside the loading conversation since the UserProfile is SESSION scoped. I prefer Pete’s approach to the implementation but the concept is the same ______________________________________________________________ One thing [...]
Setting the conversation-timeout in Seam, why it really does work
December 13, 2007
Conversation timeout seems to be a commonly misunderstood Seam concept. I often see postings on the Seam forums claiming that the conversation-timeout doesn’t work! Well, actually it does, you simply have to understand the semantics. Configuring the conversation-timeout period can be accomplished through the following in your components.xml: <core:manager conversation-timeout=”900000″ /> At first glance most [...]
Extending query by example through annotation
December 4, 2007
Query by example (QBE) is a great feature for easily executing Criteria using Hibernate. By simply filling in an object and submitting it, Hibernate automatically generates the query based on the values set in the object. While this is an attractive option, in my experience it usefulness quickly becomes limited. In many cases, specifying Restrictions [...]
Session expired messages using Seam security
November 16, 2007
Differentiating between an initial login, a session expired, and a logout when displaying messages to the user on the login screen seems like a simple task. The implementation is unfortunately not quite as simple as it sounds and requires a little legwork. The following tutorial will guide you through the requirements. The first component is [...]
Solution using Seam to pagination issue with JSF on DataModel updates
November 13, 2007
In an implementation using the JBoss RichFaces rich:dataScroller component, I noticed the first attribute of a UIData component is maintained even if the DataModel it is displaying has changed. It turns out, this is an issue with JSF. The UIData component does not track the DataModel it represents. Thus, when the DataModel is updated it [...]
WebBeans and stereotypes, achieve your own stereotypes today with Seam
November 9, 2007
Recently reading the Web Beans Manifesto, I was intrigued by the use of stereotypes through annotation. Stereotypes are not a new concept. In fact the UML used them as extensibility mechanisms for defining new model elements that have specific properties suitable to your problem domain. Sound familiar? The following diagram demonstrates some typical stereotypes: Obviously, [...]
Alleviating client-side back-button issues with Ajax4JSF and RichFaces
November 8, 2007
Recently an article I wrote was published on the Seam conversation model and how issues with the back-button can be eliminated through a continuation approach. This aids developers in resolving back-button issues with respect to server-side state, but what about the client-side. Ajax development is a breeze with Seam especially when used in conjunction with [...]
Finally getting around to it…
November 8, 2007
I have been meaning to put together a blog for quite a while, but simply never got around to it. Now seemed like the right time given the publication of my first article and my involvement in the upcoming second edition of JBoss(R) Seam: Simplicity and Power Beyond Java(TM) EE. I look forward to providing [...]
Posted in



content rss
Comments
October 13, 2011
The most difficult and the most dangerous state is this. Unconcious Incompetence...
September 23, 2011
Yes, exactly. Thanks for the insightful comment.
September 23, 2011
These are great points. I think what you are getting at here is being a social...
September 15, 2011
Thanks for the great tips!!!
September 15, 2011
Definitely a good point on “dress for success.” This is going to...