I have been aware for some time that the HTMLGenerator doesn't work within the CLI. Looking at the code, right at the beginning of the setup method it says:

HttpServletRequest request = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);

Now a regular component should not be gaining direct access to the HttpServletRequest, it should use the environment's request object. By making direct access to the HttpServletRequest, it breaks all environments other than HTTP, particularly the CLI.

Does anyone know why this dependency? Anyone able to remove it?

Regards, Upayavira


Reply via email to