Leyzerzon, Simeon wrote:
Simon, Shawn, thanks for the pointers.
I'm sure that facilityTable.facilities is not null as I can see the values on 
the screen, it's only when I click on the command link to edit when this 
exception gets thrown.

Ahh..but what does that method return at postback?

When the form is submitted, JSF walks the tree of components and calls the "processDecodes" method on each one, so that the component can look into the posted set of parameters and grab the data that belongs to it.

It then makes another pass across the tree and calls the validate method on each component, which requires that component to fetch its value from the backing bean to know whether the submitted value is different from the "current" value or not.

In order to do this for components within a table, the table must fetch its "value" and iterate over the contents.

You clearly have correct contents for this when the page is rendered because, as you say, you can see the output on the screen. However what is returned by that expression when the page is posted back? Checking this using logging or breakpoints would be a good idea...

Regards,

Simon

Reply via email to