On 11/25/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > On 11/25/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > > How do *you* know that it's a session scoped bean (versus perhaps being > in > > some other scope)? > > Because I put it there. The question first came up when I put my > usual authentication Filter (which puts a 'user' bean in session > scope) in front of a webapp, and then wandered around the JSF API for > a while trying to figure out how on earth to get it back.
True in this specific case -- but that's an arbitrary restriction in the general case. Sort of the same argument as for using dependency injection frameworks in the first place ... lazy instantiation may not be what you want for a "logged in user" bean, but it is generally quite useful. > Shale has an analogous method in its base class > > that should really be used here :-). > > I'll see if I can find it and change the MailReader app, then. It'd mean extending either AbstractFacesBean or AbstractViewController on the backing bean classes. I haven't had a chance to review the Shale Mailreader example much yet (and it's not included in the 1.0.0-rc1 candidate), so don't sweat it too much ... unless you want to get immersed into JSF and become a convert of course :-). Thanks! > -- > Wendy Craig