You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Singer <wi...@regnis.de> on 2012/05/12 17:59:14 UTC
Prevent a fragment from rendering the outer tag
I have following markup:
...
<div wicket:id="page">
<h1>...</h2>
<p>...</p>
<div wicket:id="info">
</div>
<h2>Foo</h2>
</div>
<div wicket:id="fragment-1">
<h2>Bar</h2>
<ul>...</ul>
</div>
...
When adding "fragment-1" (instance of Fragment) to "page", it renders using
Wicket 1.4.* as:
...
<div>
<h1>...</h2>
<p>...</p>
<div>
<h2>Bar</h2>
<ul>...</ul>
</div>
<h2>Foo</h2>
</div>
...
How can I make the Fragment not to render the div-tag around <h2>Bar...</ul>:
...
<div>
<h1>...</h2>
<p>...</p>
<h2>Bar</h2>
<ul>...</ul>
<h2>Foo</h2>
</div>
...
Thanks in advance.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Prevent a fragment from rendering the outer tag
Posted by Andrea Del Bene <an...@gmail.com>.
Hi,
fragment.setRenderBodyOnly(true)
> I have following markup:
>
> ...
> <div wicket:id="page">
> <h1>...</h2>
> <p>...</p>
>
> <div wicket:id="info">
> </div>
>
> <h2>Foo</h2>
> </div>
>
> <div wicket:id="fragment-1">
> <h2>Bar</h2>
> <ul>...</ul>
> </div>
> ...
>
> When adding "fragment-1" (instance of Fragment) to "page", it renders
> using Wicket 1.4.* as:
>
> ...
> <div>
> <h1>...</h2>
> <p>...</p>
>
> <div>
> <h2>Bar</h2>
> <ul>...</ul>
> </div>
>
> <h2>Foo</h2>
> </div>
> ...
>
> How can I make the Fragment not to render the div-tag around
> <h2>Bar...</ul>:
>
> ...
> <div>
> <h1>...</h2>
> <p>...</p>
>
> <h2>Bar</h2>
> <ul>...</ul>
>
> <h2>Foo</h2>
> </div>
> ...
>
> Thanks in advance.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org