I get this error after updated all the jar files to the ones comes with latest nightly build ![]()
Hello Kanapat,
There's a new commons-collections runtime dependency for OpenFaces and that's why the error appears. There's no build-to-build "what's new"/migration instructions though you can watch the What's New in Nightly Builds document which covers all API changes and migration instructions since the last release (EAP2) and see which changes still must be applied to run the latest nightly build.
Regards,
Dmitry
I have changed the filterExpression to expression like in the example.
Do I need to do something more in the backing bean as well?
Thanks
The files look correct upon a quick look though they are quite big and I can't analyze them thoroughly without knowing what kind of problem you are having. Does this example work?
Regards,
Dmitry
The datatable works, apart from the searching.
I only get the error above when I try to search in the search box of the datatable.
It used to work before, only recently give that error...
Do you still get the ClassNotFound exception for NotPredicate class? If so, please ensure that you have commons-collections.jar file in your application's libraries. Just like I mentioned in my first reply, there's a new commons-collections library dependency for OpenFaces (see the "Library Changes" section in the What's New in Nightly Builds document). You can find commons-collections.jar in the lib folder of the OpenFaces distribution zip package.
The strange thing is, I do have that file in the library but most of the builds don't work...
Only once in a while it will work, weird
Does the attached details on error help at all?
Thanks for the attention ![]()
The only important thing in this exception is that org.apache.commons.collections.functors.NotPredicate class cannot be found in classpath. I guess that it's not a DataTable-specific issue and the same NoClassDefFoundException will appear upon any attempt to use the NotPredicate class (or other class from commons-collections.jar). I suggest you to investigate what might cause the inavailability of this class. For example ensure that the version of commons-collections.jar that is included into your application does have this class in the appropriate package, or that there is only one commons collections library in your application and thus there's no potential conflict between them (we use commons collections version 3.1+, and maybe you have some old version without the NotPredicate class). Hope this information is helpful.
I removed JSF 1.2 commons.collections library then re-added it to the bottom of the library then it worked. ![]()