Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
5.3.2
-
None
-
None
Description
I've seen several posts on the mailing lists asking for how to render blocks manually in pages/components.
Had a use case in this issue: https://issues.apache.org/jira/browse/TAP5-1863
Basically I tried with:
--------
RenderCommand renderCommand = (RenderCommand)alertBlock;
MarkupWriter markupWriter = new MarkupWriterImpl();
RenderQueueImpl renderQueue = new RenderQueueImpl(log);
renderQueue.push(renderCommand);
renderQueue.run(markupWriter);
alertManager.info(markupWriter.toString());
--------
Don't know if it's the 'correct' way of doing things so requesting a service or a helper class available in core that does the job.
Attachments
Attachments
Issue Links
- relates to
-
TAP5-938 Expose ability to render a portion of a page (a Block, Component, etc.) without using internal services
- Resolved