Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-806

Upgrade RunReportListController and RunReportFormController to utilize annotations

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Won't Fix
    • 1.12.0
    • None
    • None
    • Low

    Description

      There are two historical controllers that use the older style of xml rather than the more standard annotations in place today. It would be good to convert these two controllers.

      Goal:

      Remove from webModuleApplicationContext.xml the following lines:

      <bean id="runReportList" class="org.openmrs.module.reporting.web.reports.RunReportListController">
              <property name="commandName"><value>reports</value></property>
              <property name="formView"><value>/module/reporting/run/runReportList</value></property>
              <property name="successView"><value>runReport.list</value></property>
      </bean>
      <bean id="runReportForm" class="org.openmrs.module.reporting.web.reports.RunReportFormController">
              <property name="commandName"><value>report</value></property>
              <property name="formView"><value>/module/reporting/run/runReportForm</value></property>
              <property name="successView"><value>runReport.list</value></property>
              <property name="validator">
      		    <ref bean="runReportForm" />
      	</property>
      </bean>
      

      Convert the above controllers to use annotations, and refactor their implementations accordingly.

      Gliffy Diagrams

        Attachments

          Activity

            People

              dilantha Dilantha Silva
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h