Hello,
I want to rewrite interface of jasperreports module using ui framework. I create qsp files for pages and page controllers based on original jasperreports module code (jsp, java). But in my page controller i have only post, get methods, when in original code we have spring framework methods(initbinder, modelandview on submit etc).
How can i rewrite initbinder method in my page controller? and what should I use instead of ModelandView?
yes, i created some get and post methods in page controller based on these tutorials and it works. But when i try to create fragment like in tutorial I have the error:
UI Framework Error
Root Error
java.lang.NoSuchMethodError: org.openmrs.api.EncounterService.getEncounters(Lorg/openmrs/Patient;Lorg/openmrs/Location;Ljava/util/Date;Ljava/util/Date;Ljava/util/Collection;Ljava/util/Collection;Ljava/util/Collection;Z)Ljava/util/List;
It seems Fragment controller doesn’t see org.openmrs.api.EncounterService.
Thanks, I changed openmrs version dependency of my module to latest one and changed method getEncounters(null, null, startOfDay, endOfDay, null, null, null, false) /* Deprecated. As of 2.0, replaced by getEncounters(EncounterSearchCriteria)*/ to getEncounters(EncounterSearchCriteria encounterSearchCriteria).
And now It works.