Project

General

Profile

Rendering template within a template on the server-side.

Added by Plug Gulp about 5 years ago

Hi,

I am trying to render a template within another template on the server-side and then delivering that to the client via ajax request. But the Wt code core dumps in the Wt::WWebWidget::widgetAdded(Wt::WWidget*) method because the application does not have a valid session. Attached is the code that core dumps.

How do I render a template within another template? Does injecting a sub-template into another template using bindWidget not supported, or do I have to bind the rendered template as a string using bindString method?

Thanks and kind regards,

~Plug