atom feed39 messages in org.apache.myfaces.usersRE: best way to initialize BackingBean?
FromSent OnAttachments
Stefan GesigoraAug 31, 2005 1:53 am 
Martin MarinschekAug 31, 2005 2:12 am 
Stefan GesigoraAug 31, 2005 2:20 am 
Stefan GesigoraAug 31, 2005 3:38 am 
Enrique MedinaAug 31, 2005 3:43 am 
Guy KatzAug 31, 2005 3:53 am 
Stefan GesigoraAug 31, 2005 4:00 am 
MuraliAug 31, 2005 4:19 am 
MuraliAug 31, 2005 4:43 am 
Jeff CooperAug 31, 2005 5:13 am 
Sean SchofieldAug 31, 2005 5:34 am 
Werner PunzAug 31, 2005 5:37 am 
hicham abassiAug 31, 2005 6:21 am 
Sean SchofieldAug 31, 2005 6:23 am 
hicham abassiAug 31, 2005 6:29 am 
Sean SchofieldAug 31, 2005 6:30 am 
Gary VanMatreAug 31, 2005 7:59 am 
Mike KienenbergerAug 31, 2005 10:57 am 
Ken WeinerAug 31, 2005 10:59 am 
Mike KienenbergerAug 31, 2005 11:13 am 
Craig McClanahanAug 31, 2005 11:25 am 
Mike KienenbergerAug 31, 2005 11:39 am 
Denn...@ak.blm.govAug 31, 2005 11:51 am 
Ken WeinerAug 31, 2005 11:54 am 
Craig McClanahanAug 31, 2005 12:25 pm 
Mike KienenbergerAug 31, 2005 12:34 pm 
Craig McClanahanAug 31, 2005 12:40 pm 
Craig McClanahanAug 31, 2005 12:51 pm 
Mike KienenbergerAug 31, 2005 1:07 pm 
Martin MarinschekAug 31, 2005 1:47 pm 
Mike KienenbergerSep 1, 2005 8:01 am 
Martin MarinschekSep 1, 2005 8:43 am 
Mike KienenbergerSep 1, 2005 8:50 am 
Martin MarinschekSep 1, 2005 9:06 am 
Mike KienenbergerSep 1, 2005 9:21 am 
Martin MarinschekSep 1, 2005 9:54 am 
CONNER, BRENDAN (SBCSI)Sep 2, 2005 5:59 pm 
Craig McClanahanSep 2, 2005 9:25 pm 
hicham abassiSep 6, 2005 12:15 pm 
Subject:RE: best way to initialize BackingBean?
From:Murali (mur@goecon.net)
Date:Aug 31, 2005 4:43:36 am
List:org.apache.myfaces.users

I didn't see your full message earlier. Along with Injection service, you should define the scope as request. And data retrieval logic keep it in another Backed bean which is defined before this bean - store it in session.

Regards

Murali

_____

From: Murali [mailto:mur@goecon.net] Sent: Wednesday, August 31, 2005 7:20 AM To: 'MyFaces Discussion' Subject: RE: best way to initialize BackingBean?

You can use injections service available in JSF. The attributes of Backed bean can be initialized part of definition using other Backedbean properties.

It is a great feature. The class code looks neat, as no initialization code, also it is easy to modify initialization code , which is part of Backed bean definition.

Regards

Murali

248.766.9009 (Cell)

This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information belonging to ECON LLC. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments

_____

From: Stefan Gesigora [mailto:SGes@Software-architekten.de] Sent: Wednesday, August 31, 2005 7:00 AM To: MyFaces Discussion Subject: AW: best way to initialize BackingBean?

I use this kind of bean. But I have to initialize it dynamically. Like the initialization of a Form class in an action class in struts.

_____

Von: Guy Katz [mailto:gka@allot.com] Gesendet: Mittwoch, 31. August 2005 12:54 An: MyFaces Discussion Betreff: RE: best way to initialize BackingBean?

why not use use a request scope bean and bind it to the JSP you talk about?

-----Original Message----- From: Stefan Gesigora [mailto:SGes@Software-architekten.de] Sent: Wednesday, August 31, 2005 11:54 AM To: MyFaces Discussion Subject: best way to initialize BackingBean?

Hi folks!

What is the best way to initialize BackingBeans?

I would like to get data from a DB everytime before the jsp will be shown initializing the jsp with this data.

I can't use the constructor initialization cause I need it everytime not only the first time.

I can't use initialization via managed-property cause the data isn't static.

Any suggestions?

Thx

Stefan Gesigora