You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Mehrle <mi...@ask.com> on 2008/02/28 21:53:16 UTC

close tag error

I have <div> like this:

<div wicket:id="somePanel">
	<a wicket:id="someModal>
		<wicket:message key="label.link" />
	</a>
</div>

My code is:

SomePanel somePanel - new SomePanel("somePanel", someModel);
..
somePanel.add(new AjaxLink("openModal") {
	..
}

I keep getting an error message: WicketMessage: close tag not found for
tag: <div wicket:id="somePanel">

Anyone any idea what I am doing wrong?

Thanks!

Michael


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


Re:
close tag error

Posted by Igor Vaynberg <ig...@gmail.com>.
assuming SomePanel extends Panel

you cannot embed components into panel's markup. any static markup
inside tags that the panel is attached to will be removed and replaced
by the panel's markup. if you do put a wicket:id into a markup that is
inside panel tags you will get that error. the error means wicket
expects to find </div> right after <div> (skipping any raw markup),
but cannot and instead finds a <a> tag for a wicket component.

-igor


On Thu, Feb 28, 2008 at 12:53 PM, Michael Mehrle <mi...@ask.com> wrote:
> I have <div> like this:
>
>  <div wicket:id="somePanel">
>         <a wicket:id="someModal>
>                 <wicket:message key="label.link" />
>         </a>
>  </div>
>
>  My code is:
>
>  SomePanel somePanel - new SomePanel("somePanel", someModel);
>  ..
>  somePanel.add(new AjaxLink("openModal") {
>         ..
>  }
>
>  I keep getting an error message: WicketMessage: close tag not found for
>  tag: <div wicket:id="somePanel">
>
>  Anyone any idea what I am doing wrong?
>
>  Thanks!
>
>  Michael
>
>
>  ---------------------------------------------------------------------
>  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


Re:
close tag error

Posted by Jay Hogan <se...@gmail.com>.
Does wicket:message require an explicit close tag? Like this:

<wicket:message key="label.link">Replace me</wicket:message>

On Thu, Feb 28, 2008 at 4:28 PM, Michael Mehrle <mi...@ask.com>
wrote:

> Oh, I just typed this as a simplified example - it's properly done in my
> real code.
>
> Any other suggestions?
>
> -----Original Message-----
> From: Thijs [mailto:vonk.thijs@gmail.com]
> Sent: Thursday, February 28, 2008 12:56 PM
> To: users@wicket.apache.org
> Subject: Re: <div> close tag error
>
> Wicket:id="someModal is missing a "
>
> Michael Mehrle wrote:
> > I have <div> like this:
> >
> > <div wicket:id="somePanel">
> >       <a wicket:id="someModal>
> >               <wicket:message key="label.link" />
> >       </a>
> > </div>
> >
> > My code is:
> >
> > SomePanel somePanel - new SomePanel("somePanel", someModel);
> > ..
> > somePanel.add(new AjaxLink("openModal") {
> >       ..
> > }
> >
> > I keep getting an error message: WicketMessage: close tag not found for
> > tag: <div wicket:id="somePanel">
> >
> > Anyone any idea what I am doing wrong?
> >
> > Thanks!
> >
> > Michael
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


-- 
============================================
Computer Science: solving today's problems tomorrow.

RE:
close tag error

Posted by Michael Mehrle <mi...@ask.com>.
Oh, I just typed this as a simplified example - it's properly done in my real code.

Any other suggestions?

-----Original Message-----
From: Thijs [mailto:vonk.thijs@gmail.com] 
Sent: Thursday, February 28, 2008 12:56 PM
To: users@wicket.apache.org
Subject: Re: <div> close tag error

Wicket:id="someModal is missing a "

Michael Mehrle wrote:
> I have <div> like this:
>
> <div wicket:id="somePanel">
> 	<a wicket:id="someModal>
> 		<wicket:message key="label.link" />
> 	</a>
> </div>
>
> My code is:
>
> SomePanel somePanel - new SomePanel("somePanel", someModel);
> ..
> somePanel.add(new AjaxLink("openModal") {
> 	..
> }
>
> I keep getting an error message: WicketMessage: close tag not found for
> tag: <div wicket:id="somePanel">
>
> Anyone any idea what I am doing wrong?
>
> Thanks!
>
> Michael
>
>
> ---------------------------------------------------------------------
> 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


RE:
close tag error

Posted by Maeder Thomas <th...@ecofin.ch>.
And your ids are mismatched: "someModal" != "openModal" 

> -----Original Message-----
> From: Thijs [mailto:vonk.thijs@gmail.com] 
> Sent: Donnerstag, 28. Februar 2008 21:56
> To: users@wicket.apache.org
> Subject: Re: <div> close tag error
> 
> Wicket:id="someModal is missing a "
> 
> Michael Mehrle wrote:
> > I have <div> like this:
> >
> > <div wicket:id="somePanel">
> > 	<a wicket:id="someModal>
> > 		<wicket:message key="label.link" />
> > 	</a>
> > </div>
> >
> > My code is:
> >
> > SomePanel somePanel - new SomePanel("somePanel", someModel); ..
> > somePanel.add(new AjaxLink("openModal") {
> > 	..
> > }
> >
> > I keep getting an error message: WicketMessage: close tag not found 
> > for
> > tag: <div wicket:id="somePanel">
> >
> > Anyone any idea what I am doing wrong?
> >
> > Thanks!
> >
> > Michael
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 

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


Re:
close tag error

Posted by Thijs <vo...@gmail.com>.
Wicket:id="someModal is missing a "

Michael Mehrle wrote:
> I have <div> like this:
>
> <div wicket:id="somePanel">
> 	<a wicket:id="someModal>
> 		<wicket:message key="label.link" />
> 	</a>
> </div>
>
> My code is:
>
> SomePanel somePanel - new SomePanel("somePanel", someModel);
> ..
> somePanel.add(new AjaxLink("openModal") {
> 	..
> }
>
> I keep getting an error message: WicketMessage: close tag not found for
> tag: <div wicket:id="somePanel">
>
> Anyone any idea what I am doing wrong?
>
> Thanks!
>
> Michael
>
>
> ---------------------------------------------------------------------
> 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