[Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Fellow Shale'ers, Given the scenario when you have reference data to set up, say on the application, which is not dependent on a particular view, but which must be put in place before the first view is displayed, and given that there is no single entry point for the app, what approach would you

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Craig McClanahan
A technique I like (and is actually used in the Use Cases example) is to make your reference data into an application-scoped managed bean (for stuff common to all users; use session scope if it is user specific). Then, the first use of a value binding that needs to load the reference data will

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Right, this is more or less what I've gone for in the end, but the managed bean I'm creating was not referenced directly in the page, and it would have been a little artificial in that case to put it in. So I've resorted to a createValueBinding in the Shale init() method which bootstraps the