wood burning stoves 2.0*
The moose likes JSF and the fly likes JavaScript error when using a f:param in a h:commandLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JavaScript error when using a f:param in a h:commandLink" Watch "JavaScript error when using a f:param in a h:commandLink" New topic
Author

JavaScript error when using a f:param in a h:commandLink

Jan Buchholdt
Greenhorn

Joined: Mar 31, 2009
Posts: 3
I’m new to JSF and a very simple example that result in a javascript error. I hope that somebody can explain to me what I am doing wrong. I am trying to add an extra parameter to a link using the following example.


When I click the link I get the following javascript error: document.forms.j_id_id16.JanIsTestingParam is undefined

Looking at the html it’s clear to me that the problem is that there is no hidden input field named JanIsTestingParam and I could solve it by adding it manually:

If I do that the javascript error disappears.

But I have seen several examples that seem to work so I guess that I am doing something wrong. Please help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript error when using a f:param in a h:commandLink
 
Similar Threads
Is this a correct approach to use subviews for partial page refresh?
Having trouble calling functions in js from jsf inputtext onclick
Crate chart using jsf
How to stop page refresh when hit enter button from rich:inputNumberSpinner field?
Multiple form view