• Post Reply Bookmark Topic Watch Topic
  • New Topic

NPE when using setFor()  RSS feed

Dudley Dawson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building an HtmlPanelGrid dynamically (by binding the h:panelgrid tag to a backing bean method that builds it with the api), and I am having a problem whenever I try to call setFor(String id) on a HtmlMessage or HtmlOutputLabel. When the page renders, I get the following exception:

However, if I view the component tree, these elements exist, and indeed do have their "for" attribute set exactly as i specified. The page will render if I don't attempt to set the "for" property, but then, these components are orphaned and rather useless ;)
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!