*
The moose likes JSF and the fly likes Not getting request parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Not getting request parameters" Watch "Not getting request parameters" New topic
Author

Not getting request parameters

seshayya krishna
Greenhorn

Joined: Feb 24, 2005
Posts: 11
Hi
I have the following code in the JSP and the following code in my bean
class. Could you please help me ? When i retrieve the parameter
grantsgovTrackingNumber I am getting null values. Can you please write
to me, whether it is a bug in JSF ? i appreciate your help.

Murali


grantsgovtrackingNumber = (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("grantsgovtrackingNumber") ;


<h anelGroup>
<h:commandLink action="#{ApplicationGrantsGovDetailsBean.showApplicationDetails}" immediate="true">
<h utputText value="#{requestScope.grantsgovTrackingNumber}"/>
<f aram name="grantsgovTrackingNumber" value="#{requestScope.grantsgovTrackingNumber}"/>
</h:commandLink>
</h anelGroup>
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
See the second reply in this post.


- Varun
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Also, use the "id" attribute instead of "name" in f aram tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not getting request parameters