Search in sources :

Example 1 with VisualHub

use of uk.nhs.digital.website.beans.VisualHub in project hippo by NHS-digital-website.

the class SystemServicesComponent method doBeforeRender.

@Override
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    final HstRequestContext ctx = request.getRequestContext();
    VisualHub visualHub = (VisualHub) ctx.getContentBean();
    if (visualHub != null) {
        request.setAttribute("document", visualHub);
    }
}
Also used : VisualHub(uk.nhs.digital.website.beans.VisualHub) HstRequestContext(org.hippoecm.hst.core.request.HstRequestContext)

Aggregations

HstRequestContext (org.hippoecm.hst.core.request.HstRequestContext)1 VisualHub (uk.nhs.digital.website.beans.VisualHub)1