>> I needed to add the class (representing a row) as a managed bean in
>> faces-config.xml with scope of "none":
>>
>>   <managed-bean>
>>        <managed-bean-name>item</managed-bean-name>
>>        
>> <managed-bean-class>whatever.the.class.is.called</managed-bean-class>
>>         <managed-bean-scope>none</managed-bean-scope>
>>   </managed-bean>
>>
>> Without this, you get the "Base is null" error.
>
>I've never heard of that before.   What's it supposed to do for you?

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.

Thanks also for your suggestion on using <s:validateCompareTo/>. If I get
completely stuck I might go that route. (The validation is more complicated
than a simple comparitor, but I might get some ideas there.)

-David-



-- 
View this message in context: 
http://www.nabble.com/Validating-Multiple-Components-in-DataTable-tf2034458.html#a5618896
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to