Hi there, we have defined an Xpage, all good renders out components and the document data. However, what I would like is for it to render data from its actual component configured…
For Example this is the page component…
definitions:
config:
/hst:hst/hst:configurations/project/hst:pages/foundationIndex:
jcr:primaryType: hst:component
hst:referencecomponent: hst:abstractpages/base
/main:
jcr:primaryType: hst:component
hst:componentclassname: project.components.FoundationIndexPageComponent
hst:template: foundation-index-page
and in that bean it has the override…
public class FoundationIndexPageComponent extends BaseHstComponent {
private static final Logger Log = LoggerFactory.getLogger(FoundationIndexPageComponent.class);
@Override
public void doBeforeRender(final HstRequest request, final HstResponse response) throws HstComponentException {
super.doBeforeRender(request, response);
}
}
However if I write anything to the request to grab in the FTL it does not work. No error just not available in the FTL template
For example request.setAttribute(“parent”, parentBean);
in the FTL nothing…
I do not really want to create an actual component that inherits from CommonComponent
thoughts?
Thanks
J