View Single Post
  #3 (permalink)  
Old 05-01-2008, 04:07 PM
hackerofcrackers hackerofcrackers is offline
Member
 
Join Date: May 2008
Posts: 2
hackerofcrackers is on a distinguished road
solution to your JSF parameters problem
hi,

I am new to this forum, anyways, the solution to your problem:

In the "doRegistration" method of your bean, get the HttpServletRequest object as below:

HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstanc e().getExternalContext().getRequest();

then,

use the below code to get the paramters of each of the "id":

String x = request.getParameter("registrationForm:lastname");

NOTE: The "colon" is very important. formid:component_id

Hope this definitely help you.

Srinivas.
Reply With Quote