Hi all.
Im using the JPA Criteria Lazy Container (Version 0.4.3 for now), from the Author Jean-François Lamy (Many thanks).
Now, im working on a filter component, that will build a Window, with the entity properties (and nested properties too), and build a criteria filter.
But I have the following doubts:
Im extending the CriteriaQueryDefinition, and overriding the method defineQuery();
So far, so good. But I wanna know how can I notify the container from changes made to the my Custom QueryDefinition, and so, the container ask again for the defineQuery() method. Is in this method that I build all filters passed from the GUI.
Is this the best approach? Or is better to reeimplement the existing filter system? I Wanna use some features that is not possible to use with him.
And I wanna know to, if I can change the QueryDefinition initially defined on the Container, suposing that a User can initially criate a CriteriaContainer, with a standard CriteriaQueryDefinition object, and so, refresh than, without loose the inicial their initial configuration. This will make possible to use the filter without change the original code that is already in production. I Cant find methods to set a QueryDefinition on the CriteriaContainer.
Here, a working screenshot of the component, but this version is replacing the original container of the AbstractSelect components:
Sorry by the bad english, and many thanks by atention!