Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF portlet form fields retrieval  RSS feed

 
Mike Skit
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody, any input ?
 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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




 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!