Meaningless Drivel is fun!*
The moose likes JSF and the fly likes Populating value in managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Populating value in managed bean " Watch "Populating value in managed bean " New topic
Author

Populating value in managed bean

Chandrasekhar kotha
Greenhorn

Joined: Jun 27, 2005
Posts: 22
Hi

I want to populate a value in managed bean(FACES-CONFIG-BEAN.XML), which was set in Request Attribute from some other jsp and forwarded to another jsp.

CODE IS SOME THING LIKE THIS :-

<managed-bean>
<description>
SSSSS
</description>
<managed-bean-name>ABCBEAN</managed-bean-name>
<managed-bean-class>java.util.HashMap</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<map-entries>

<map-entry>
<key>xxxx</key>
<value>#{VALUE TO BE FILLED FROM REQUEST ATTIBUTE}</value>
</map-entry>
</map-entries>
</managed-bean>

ANY HLEP IS APPRICIATED.
THANKS
CHANDRA
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
you should be able to access it using #{param.keyName}
 
wood burning stoves
 
subject: Populating value in managed bean
 
Similar Threads
List box initialization through managed bean
Problem to populate a selectOneListbox from a Java-Bean
Setting bean value problem
JSF backingbean value is null always.
Hash Map containing a list in managed-bean config file