Guten Tag,

On Tue, Mar 12, 2019 at 5:57 PM Thorsten Schöning <tschoen...@am-soft.de>
wrote:

> Guten Tag Martin Grigorov,
> am Dienstag, 12. März 2019 um 15:18 schrieben Sie:
>
> > There is an example how to do this in wicket-examples:
> > - http://examples8x.wicket.apache.org/mailtemplate/
> > -
> https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/asemail
>
> Thanks, looking at PackageTextTemplate, it doesn't provide any support
> for tables, lists etc.? Only replacement of key-value-pairs?
>

Correct!


>
> If I want to use HTML-templates only at best, do I need to
> additionally look at ComponentRenderer? "Component.setRenderBodyOnly"
> in combination with adding newlines, manual indentation etc. on the
> result of the rendering?
>

To render more complex markup you need to use ComponentRenderer.
You can render whole Pages or just Components (like Panels).
I do not understand what you mean with `adding newlines, manual
indentation, etc.` - Wicket just renders whatever your page/panel says.

ComponentRenderer just sets up a dummy RequestCycle so that you can render
in non-HTTP threads, i.e. background threads.


>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: thorsten.schoen...@am-soft.de
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to