don't
This is my first time I work on JSF and happens a strange things.
I'm using JSF with the xhtml file (hopes this information help to solve it), I have a ice:dataTable that iterate over a list and construct some html.
When the application start the list is empty.
In the html I have this:
<div class="Token" id="Token#{listItem.id}"></div>
With this it throws an exception:
Caused by: javax.el.PropertyNotFoundException: /jspf/fragments/form.jsp @159,62 id="Token#{listItem.id}": ELResolver cannot handle a null base Object with identifier 'listItem'
But if I change the code in:
<div class="Token" id="Token">#{listItem.id}</div>
It works!
Why also if the list is empty it don't execute the first piece of code???