OK, so, at least for conversation descriptions and timeouts, I've taken a whole new tack now. I hated seeing conversation.switchableOutcome() everywhere in the example apps, and I could not quite figure out why. It just *felt* ugly and wrong.
Now I've decided that this stuff is really metadata about the "state". The "state" is welldefined when you are using jPDL pageflows, so you can just write stuff like: <page name="browse"" view-id="/brows.xhtml" timeout="300000"> | <description>Search results for: #{search.searchPattern}</description> | <transition name="select" ... /> | </page> Unfortunately, for the case of JSF navigation, we have a stateless navigation model, where there are welldefined transitions, but no welldefined *sates*. Upon reflection of this issue, I decided that it is OK to use the closest thing to a state in JSF, which is the page. Now, JSF has no such thing as a place to put metadata about a page, so I added the concept of a pages.xml file, which lives next to faces-config.xml in the WEB-INF directory. Here is an example: <page view-id="/main.xhtml" timeout="300000">Search hotels: #{hotelBooking.searchString} <page view-id="/hotel.xhtml" timeout="300000">View hotel: #{hotel.name} <page view-id="/book.xhtml" timeout="600000">Book hotel: #{hotel.name} <page view-id="/confirm.xhtml" timeout="600000">Confirm: #{booking.description} This essentialy defines the states (well, "non-states") that the navigation rules refer to. This let me *really* clean up the code of the booking and issues example apps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915717#3915717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915717 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user