Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-697

<uiInclude></uiInclude> tag to process fragment parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: HTML Form Entry 3.9.2
    • Fix Version/s: HTML Form Entry 3.10.0
    • Labels:
      None
    • Complexity:
      M

      Description

      Background

      Currently the <uiIclude/> tag does not support picking up fragment parameters. These parameters are in some instances required by the FragmentController making it currently impossible to include many fragments into HFE forms.

      An example of such a fragment is ConditionsFragmentController:

      public class ConditionsFragmentController {
        public void controller(.., @FragmentParam("patientId") Patient patient) {
          ...
        }
      }
      

      In this case the fragment params is a reference to an instance of Patient.

      Developer Notes
      • Changes should be made in the UiIncludeTagHandler
      • The attribute fragment should be able to accept URL parameters, example use:
        <uiInclude provider="coreapps" fragment="conditionlist/conditions" fragmentParams="patientId=$patient.patientId&param2=value" />
        

        Additionally we could make this URI-like syntax work as well:

        <uiInclude provider="coreapps" fragment="conditionlist/conditions?patientId=$patient.patientId&param2=value" />
        
      • Also take note that the tag handler should be able to pickup and parse velocity expressions from the URL parameters, i.e. "patientId=$patient.patientId" should result to "patientId=2" if patient Id is 2.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samuel34 Samuel Male
              Reporter:
              mksd Dimitri R
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: