This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes How to perform this in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to perform this in JSF" Watch "How to perform this in JSF" New topic

How to perform this in JSF

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

I am just playing with JSF 1.1 and I have the following questions :
I want to create an action listener (implementing javax.faces.event.
this listener will gets the parameter from the first jsf page (register.jsf), and insert these values into a database (ofcourse using JDBC).
but the problem is I dont know how to get these parameters in JSF.
any ideas how to perform this ?
I am using a JavaBean to store the values entered by the user, but how
to get this bean in the second jsf page ?
(I am new to frameworks like JSF and struts, so if you any ideas to how
to perform my requirments , please tell me. something like : don't use
action listeners to insert data into the database, use ...).
I appreciate your help because I realy loved JSF.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Lend your hand amigo, I need some help here, any one will help ??
James Holmes
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
Hi John,

You need to bind your JSF UI Components to your backing bean. This is done using the JSF tag library tags. When the form is submitted, JSF will take care of populating the bean for you. You can put the bean in either request or session scope. If in session scope, you can access the bean from multiple pages.

I recommend you link into some of the articls and tutorials on my website. They should give you tons of help.

Have you checked out Aspose?
subject: How to perform this in JSF
It's not a secret anymore!