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.