Can anyone point me in the right direction in passing parameters through request scoped beans? I can't find any examples. I'm using version 1.2 I can do it perfectly fine with a session scope but not getting it on a request scope.
Why you still using JSF 1.2.1...
2.0 is better, isn't it?
Maybe you can set a value in your second request-scoped bean by the first request-scoped bean.
(I don't know if this can be work or not, this just a tips)
Or, you can just use @ApplicationScope or @SessionScope
Because, I use @RequestScope very very rarely.
Hope could helping.
Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
Joined: Jul 28, 2011
Using 1.2 because I was forced too
What I am doing is using rich faces to upload a document. So I have upload.jsp, uploadbean.java, uploadform.jsp, and uploadformbean.java
The upload.jsp will use rich faces to upload a document and grab some of it's properties and store them in the uploadbean.java. Once it is done uploading it will go to the next page uploadform.jsp and display some of the properties of that document which I was hoping to pass the parameters from uploadbean.java to uploadformbean.java. I wanted to keep this all request scope so I can learn on how to do it.
Request scope doesn't work very well in JSF. Request scope objects have a lifecycle limited to a single request/response, and JSF often makes multiple requests per page. And in no case can you use request scope to define beans for pages yet undisplayed.
Beyond that, "parameter passing" isn't how JSF was designed to work. JSF is about Inversion of Control, and in IoC, you don't use a bunch of framework-specific APIs to get data passed around, you define bean wiring to the JSF framework, which then injects source beans into target beans, allowing them to trade info using POJO set/get methods.
An IDE is no substitute for an Intelligent Developer.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Parameter passing between request scope beans