ASO question

2008-09-06 Thread ProAdmin Dariusz Dwornikowski
Hi I implemented data source as in book ( db4o also ). I got some problems. I keep the DataSource object in ASO. I can see that on every page I use it, the ASO calls its constructor. I would like to create it as singleton, so I do not get lockfile exceptions, which i get in case of db4o. -- P

Re: basic ASO question

2007-10-04 Thread Peter Stavrinides
In Tapestry 4 with Hivemind you could scope an ASO (session, global), which I found very useful, I have noticed in T5 ASO's are session scoped, how do you scope a service/class across all sessions in T5?, I guess just use it as static? Peter Robert A. Decker wrote: In the docs they use the e

Re: basic ASO question

2007-10-02 Thread Howard Lewis Ship
A collection class would not be ideal, using individual ASOs, each with a specific unique type is the way to go. On 10/2/07, Robert A. Decker <[EMAIL PROTECTED]> wrote: > > In the docs they use the example: > public class MyPage > { >@ApplicationState >private MyState _myState; > >. .

basic ASO question

2007-10-02 Thread Robert A . Decker
In the docs they use the example: public class MyPage { @ApplicationState private MyState _myState; . . . } and: "Any other component or page that declares a field of the same type, regardless of name, and marks it with the ApplicationState annotation will share the same value. It's tha