Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
How to inject a backing bean without using faces-config file ?
Himanshu Gupta
Ranch Hand
Posts: 598
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to inject a backing bean without using faces-config file ?
My Blog
SCJP 5 SCWCD 5
Himanshu Gupta
Ranch Hand
Posts: 598
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using the following code but I am getting null. Can someone help me in this.
facesContext.getCurrentInstance().getExternalContext().getSessionMap().put("cUs", new ContactUsBackingBean()); Object myBean = facesContext.getApplication().createValueBinding("#{cUs}").getValue(facesContext); System.err.println(myBean);
My Blog
SCJP 5 SCWCD 5
Himanshu Gupta
Ranch Hand
Posts: 598
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It got solved by itself. I think it was some ghostly error... God knows what happened. I worked just fine after some time.
My Blog
SCJP 5 SCWCD 5
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Dynamic navigation from Backing Bean Constructor.
how to passing parameters to managed beans?
Execute backing bean method on another page?
Instantiating SelectItems from Spring bean
Implicit navigation redirect causing new session
More...