Ui framework: using initbinder method of springframework in page controller

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?

thanks

Did you get a chance to look at these? https://wiki.openmrs.org/display/docs/UI+Framework+Step+By+Step+Tutorial https://wiki.openmrs.org/display/docs/UI+Framework https://wiki.openmrs.org/display/docs/Using+the+UI+Framework+in+Your+Module https://wiki.openmrs.org/display/docs/UI+Framework+Reference+Guide

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.

Just ensure that the openmrs api dependency version is the same as the one you are using to run the module.

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.

@dkayiwa Does uiframework gsp support groovy tags like <g: nestedpath>, <g: bind>, <g: dateformat>?

Did you try them out?

I tried <g: dateformat />, but nothing is changed