On 8/2/06, David Van Stone <[EMAIL PROTECTED]> wrote:
>> I needed to add the class (representing a row) as a managed bean in >> faces-config.xml with scope of "none":
The managed bean is not stored anywhere but is created by the developer as needed. (I.e., another class creates/destroys it.) However, as I'll be posting soon, this only makes the initial error during JSP compilation go away. MyFaces appears to make the binding on a seperate copy of the class and not bindings on each row.
Ok. That makes more sense to me. Yes, adding this wouldn't really solve your issue. Your item variable should be stuck into the context by the datatable itself without anything on your part. Not sure if it helps, but you need to make sure the data table is set to the specific row you're working with at the time you're doing your validation. I would guess that is the case, but you might want to check on that. UIData.setRowIndex(row) to set it. If it's already set to -1, that means the data table isn't pointing at any particular row, which is normally the case.

