Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom Component Properties  RSS feed

Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I tried to develop a Custom Component in JSF. This component is a simple drown list which displays strings in a list in a html select.

Here is the code of the form.

The Custom component is linked to a renderer through custom tag and the list to be displayed is passed as a property from a backing bean.
When the page loads for the first time, the custom tag will pass the list of items to the component and the list will be happily displayed.

But when I click on a command button, the list will be assigned values and a null pointer exception is thrown from the renderer

Attached is my code along with web.xml and tld.
Any idea would be appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!