HttpServletResponse always returns null in RefApp module

On my reference app module, I have a get controller:

public void get(PageModel pageModel,HttpServletRequest httpRequest, HttpServletResponse httpServletResponse, @RequestParam("patientId") Patient patient, @RequestParam(value="visitId", required = false) Visit visit, ){....

The issue is: the httpServletResponse always return null inside this controller. I have tried several things, and still, it remains thesame. Is there any suggested work-around for this? Thanks.

According to the documentation, this is not (currently) supported.

You should be able to add support for this within the UI Framework module with one-liners at these points in the code:

Go ahead and create a ticket and send a pull request for this.

1 Like