Our Family Blog
 
Wednesday, May 24, 2006
Stateless Components, Stateful Forms
 
Stateless components are a huge win with WebObjects. All of your basic UI components should be stateless. Occasionally, you’ll want to have pages with state, especially forms. That’s fine, just take the extra time with the things you use on every page like navigation bars, etc.
If you can set all the instance variables of your component to NULL in sleep(), it can be stateless.