This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to init a simple request scope bean?

 
jack catler
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should be simple...but I am not sure how to do it.

How do create a simple request scope bean which needs an ID passed to it to be constructed. The ID is used so the bean create a HashMap which I will then display using a dataTable. Couldn't be simplier..but I'm stuck.

The ID is passed to the page via javascipt function in the URL which then the page extracts using the param object.

// e.g. Display passed id parameter on the page.
<h utputText value="#{param.passed_id}" />



Thanks
 
jack catler
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I found it. Just FYI for other beginners.

I picked up the parameters in the contructor of the bean by getting a hold of the session object, then created the list.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!