You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bala ji <ba...@gmail.com> on 2012/08/20 11:57:47 UTC

Wicket fragment is not working inside wicket extend in wicket 1.5.3

I've added a scenario where i need to use wicket:fragments.
<wicket:extend>
     ...
    <span wicket:id="myPanel">Example input (will be removed)</span>
     ...
     <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment>
     <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>
 </wicket:extend>

 The above situation is working fine in case of wicket 1.4, but now in
wicket 1.5.3 its giving me an error of No Markup found.

I attached the sample project, please give me the solution for the problems

-- 
Balaji.N

Re: Wicket fragment is not working inside wicket extend in wicket 1.5.3

Posted by bala ji <ba...@gmail.com>.
hi,
Can u give me the exact solution whether the fragments inside wicket:extend
are working in wicket 1.5.3 or not.
On Mon, Aug 20, 2012 at 3:41 PM, Thomas Matthijs <li...@selckin.be> wrote:

> On Mon, Aug 20, 2012 at 11:57 AM, bala ji <ba...@gmail.com> wrote:
> > I've added a scenario where i need to use wicket:fragments.
> > <wicket:extend>
> >      ...
> >     <span wicket:id="myPanel">Example input (will be removed)</span>
> >      ...
> >      <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment>
> >      <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>
> >  </wicket:extend>
> >
> >  The above situation is working fine in case of wicket 1.4, but now in
> > wicket 1.5.3 its giving me an error of No Markup found.
> >
> > I attached the sample project, please give me the solution for the
> problems
> >
>
> If you remove the TransparentWebMarkupContainer from the BasePage it
> works, so fragments are fine in wicket:extends, but the transparent
> container somehow seems to mess it up (i have never used TWMC before,
> so not sure how its supposed to work)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Balaji.N

Re: Wicket fragment is not working inside wicket extend in wicket 1.5.3

Posted by Thomas Matthijs <li...@selckin.be>.
On Mon, Aug 20, 2012 at 11:57 AM, bala ji <ba...@gmail.com> wrote:
> I've added a scenario where i need to use wicket:fragments.
> <wicket:extend>
>      ...
>     <span wicket:id="myPanel">Example input (will be removed)</span>
>      ...
>      <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment>
>      <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>
>  </wicket:extend>
>
>  The above situation is working fine in case of wicket 1.4, but now in
> wicket 1.5.3 its giving me an error of No Markup found.
>
> I attached the sample project, please give me the solution for the problems
>

If you remove the TransparentWebMarkupContainer from the BasePage it
works, so fragments are fine in wicket:extends, but the transparent
container somehow seems to mess it up (i have never used TWMC before,
so not sure how its supposed to work)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org