Re: [MyFaces] Initializing Session Bean

2008-07-23 Thread Mikael Andersson
Perhaps something like this: //Session scoped backing bean public class MyPojoManager{ private MyPojo pojo; public MyPojo getPojo(){ if(pojo == null){ //initialize the MyPojo object } return pojo; } } This way it would only be initialized once. - micke 2008/7/21 Guy Bashan [EMAIL

Re: [MyFaces] Initializing Session Bean

2008-07-23 Thread Mike Kienenberger
I don't know if it's the best solution, but in a past project I did it like this: I had one request-scoped bean per screen, and I had a setSelectedObject(Object object) method on each of those beans. The original page was responsible for calling setSelectedObject() on the target bean page. If

[MyFaces] Initializing Session Bean

2008-07-21 Thread Guy Bashan
Hi, You will to excuse me for this question, I have always worked with request scope beans: I have a screen in which details are being edited. Now, I have to add a button near one of the drop downs that will take me to a new screen, allowing me to create a new object and get back to the