This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes JSF portlet form fields retrieval Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "JSF portlet form fields retrieval " Watch "JSF portlet form fields retrieval " New topic
Author

JSF portlet form fields retrieval

Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Hi All,
I have a jsp page with JSF components that is submittted as a form.
Part of the data table as below...



Upon submission, if i do the following in the processAction method of a portlet, i am getting null value for those parameters ..
I am sure that i am populating the values when the data table is rendered, ruled out that they may be null in the first place.

String activityId = request.getParameter("activityId");
String secondaryId = request.getParameter("secondaryId");

System.out.println("Activity Id ==>"+activityId);
System.out.println("secondaryId ==>"+secondaryId);
Both are coming as null.
What is wrong here ?

Thanks in advance.
Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Anybody, any input ?
Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
hi Mike,

Please check JSF portlet with example.

In processaction() it will always returns null..

because here this form fields mapping with jsf managedbean object.. right?


you can get directly from managedbean variables.


Regards
raju




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF portlet form fields retrieval
 
Similar Threads
how to highlight a row in h:datatable when mouse over it
Foreign key field population from datatable to textbox?
ajax onclick event on h:commandLink
Problem with Spring Web Flow
Commandlink not calling method in the bean