• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

programmatic HTmlCommandLink action with parameters not working

 
frank b
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic