Search in sources :

Example 1 with Service

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

the class ServiceComponent method doBeforeRender.

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

Aggregations

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