Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-8897

Need setViewHelperService method on View component

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-m1, 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-10330View.setViewHelperServiceClass and setViewHelperService
      KULRICE-5280KRAD - KS Test View: need Messaging component
      KULRICE-9612Reimplement cloning to use component clone method
      KULRICE-8862Inner Views
      KULRICE-6961Add support for passing the component to UifKeyValuesFinder getKeyValues method
      KULRICE-10110Cleanup on copy methods
      KULRICE-7013Research the ability to have pre-built views or components
      KULRICE-7008Add flag to component that enables storing of component in session
      KULRICE-10168Components stored in view index are not getting all cleaned
      KULRICE-2221Add Methods to IdentityManagementService to indicate editability of various components
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      So that view helpers can be injected we need a setViewHelperService method on View.

      Also look into making the application context available so that dependencies can be auto-wired

        Issue Links

          Activity

          Hide
          Jerry Neal (Inactive) added a comment -

          I have the viewHelperServiceClass set up and working to call my method but I believe there's some code within KRAD that can be modified to work better.

          Right now, I can't use @Autowired to get access to the services and instead have to use other means to instantiate it.

          There is currently this code:

          public ViewHelperService getViewHelperService() {
          if ((this.viewHelperService == null) && (this.viewHelperServiceClass != null))

          { viewHelperService = ObjectUtils.newInstance(viewHelperServiceClass); }

          return viewHelperService;
          }

          because of that you can't make ViewHelperService Spring-aware and use @Autowired. Is it possible to get this changed so we can use @Autowired?

          Show
          Jerry Neal (Inactive) added a comment - I have the viewHelperServiceClass set up and working to call my method but I believe there's some code within KRAD that can be modified to work better. Right now, I can't use @Autowired to get access to the services and instead have to use other means to instantiate it. There is currently this code: public ViewHelperService getViewHelperService() { if ((this.viewHelperService == null) && (this.viewHelperServiceClass != null)) { viewHelperService = ObjectUtils.newInstance(viewHelperServiceClass); } return viewHelperService; } because of that you can't make ViewHelperService Spring-aware and use @Autowired. Is it possible to get this changed so we can use @Autowired?

            People

            • Assignee:
              Sona Sona (Inactive)
              Reporter:
              Tim Bornholtz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel