Search in sources :

Example 1 with HubNewsAndEvents

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

the class LatestNewsAndEventsComponent method doBeforeRender.

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

Aggregations

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