Search in sources :

Example 1 with WrappedListPickerComponentInfo

use of uk.nhs.digital.common.components.info.WrappedListPickerComponentInfo in project hippo by NHS-digital-website.

the class WrappedListPickerComponent method doBeforeRender.

@Override
public void doBeforeRender(HstRequest request, HstResponse response) {
    super.doBeforeRender(request, response);
    final WrappedListPickerComponentInfo info = getComponentParametersInfo(request);
    final HippoBean document = getHippoBeanForPath(info.getWrappingDocument(), HippoBean.class);
    final Boolean showIcon = info.getShowIcon();
    request.setAttribute("wrappingDocument", document);
    request.setAttribute("currentDate", Calendar.getInstance());
    request.setAttribute("showIcon", showIcon);
}
Also used : HippoBean(org.hippoecm.hst.content.beans.standard.HippoBean) WrappedListPickerComponentInfo(uk.nhs.digital.common.components.info.WrappedListPickerComponentInfo)

Aggregations

HippoBean (org.hippoecm.hst.content.beans.standard.HippoBean)1 WrappedListPickerComponentInfo (uk.nhs.digital.common.components.info.WrappedListPickerComponentInfo)1