Hello,

If a component renders it's parent's body (using <t:body/>) during an
ajax request, the body will be empty if
 * the parent's component template (basically the page) has been modified.
 * or the server was restarted.
 * or if a new page instance for your component is added to the page pool.

I submitted a bug report
https://issues.apache.org/jira/browse/TAP5-1100 for that.

This bug is painfull for me as I often use body inclusion. Am I the
only one to have run into this issue ? Is there any workaround ?

As far as I understood the problem is in ComponentPageElementImpl, if
we use a <t:body/> the render method of ComponentPageElementImpl is
not called, only the enqueueBeforeRenderBody is called (via the
RenderBodyElement). If the ComponentPageElementImpl was never rendered
before, the render phases are not initialized and the component
silently avoids rendering. Am I right ?


Thanks,

Denis

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to