File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes programmatic HTmlCommandLink action with parameters not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "programmatic HTmlCommandLink action with parameters not working" Watch "programmatic HTmlCommandLink action with parameters not working" New topic
Author

programmatic HTmlCommandLink action with parameters not working

frank b
Greenhorn

Joined: May 14, 2007
Posts: 1
I have a very basic form with a panelGrid to which I add HtmlComandLinks from my backing bean. I'm also adding a parameter, "guess", to each link.

The links are created. The problem is the links don't work. Looking at the generated html, i see this in the onclick event of the link:



Because there isn't a form field called "guess", a JavaScript error occurs.

Shouldn't JSF create the hidden field?


index.jsp:




getUserNumbersPanel() in NumberGuessBean.java:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: programmatic HTmlCommandLink action with parameters not working
 
Similar Threads
How does one read the value associated with the HtmlCommandLink in the Action Method?
dynamic panel grid binding
Dynamic UI generation problem while opening popup
How to add new text boxes and check boxes dynamically when clicking on button in JSF
How to create BINDING of command link with backing bean