Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forms and CommandLinks

Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a bit of a problem with JSF when having multiple commandlinks in the same page and a custom component.

I wrapped my whole page in a h:form to keep things simple. However, I cannot render a HtmlCommandLink unless it is wrapped inside its own form. So I had to wrap each individual commandlink in its own h:form (and remove the h:form that wrapped the whole page).

However, my problem is that it only works as expected for the first link. The rest simply fail.

Anyone seen this or know why?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic