Didn't work.  So I have a Border component with the following markup:

<wicket:border>
                <wicket:body/>
</wicket:border>

Then I have a Page with the following markup:

<span wicket:id="border">
                <span wicket:id="eventSummaryPanel"/>
</span>

And the error is: "There must be exactly one <wicket:body> tag for each border compoment."  Well, I have exactly one <wicket:body/> tag for the one Border component. 

I thought it might be a runtime exception getting thrown when the Page component is getting rendered, but adding loads of logging didn't reveal anything.  These same Border and eventSummaryPanel components work everywhere else, so I'm still inclined to think that it's my problem, but I'm out of places to look. 


On 9/6/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
Martijn:

No, it's not solved yet.  Here's what I don't understand: I use that same page multiple times throughout my application and there is only one place where it fails.  I'll try dropping in the <wicket:body/> tag in my Page markup and see if it works. 


On 9/6/05, Martijn Dashorst < [EMAIL PROTECTED] > wrote:
Nick,

Is the problem already solved?

from what I can see (and what Juergen is referring to) is that the
<span wicket:id="border"> needs a wicket:body tag in the markup.

So:
<span wicket:id="border"><!-- bunch of markup --> <wicket:body /> <!--
other bunch of markup --></span>

Martijn


On 9/2/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> That markup is from the Page component.  The Border component markup does
> have a <wicket:body/> tag.
>
>
> On 9/1/05, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
> > at a first glance. The error message says that "there must be exactly
> > one <wicket:body>". I do not see any wicket:body tag in your markup.
> > Border component require it. If you do not need it, use Panel instead
> >
> > Juergen
> >
> >
> > On 9/2/05, Nick Heudecker < [EMAIL PROTECTED]> wrote:
> > > I'm getting the following exception for one page in my app:
> > >
> > >  wicket.markup.MarkupException: There must be exactly one <wicket:body>
> tag
> > > for each border compoment.
> > > [markup = file:/*removed*, index = 1, current = [Raw markup]]
> > >  at wicket.markup.MarkupStream.throwMarkupException
> > > (MarkupStream.java:277)
> > >  at
> > > wicket.markup.html.border.Border.onComponentTagBody
> (Border.java :239)
> > >  at
> wicket.Component.renderComponent(Component.java:1813)
> > >  at wicket.markup.html.WebMarkupContainer.onRender
> > > (WebMarkupContainer.java:78)
> > >  at wicket.Component.render(Component.java :1130)
> > >  at
> > >
> wicket.MarkupContainer.renderNext(MarkupContainer.java:1107)
> > >  at
> > >
> wicket.MarkupContainer.renderAll (MarkupContainer.java:750)
> > >
> > >  at wicket.Page.onRender(Page.java:761)
> > >  at wicket.Component.render(Component.java:1130)
> > >  at wicket.Page.doRender(Page.java :247)
> > >  The same markup works fine in other pages.  Here's a sample of the
> markup:
> > >
> > >  <span wicket:id="border">
> > >                  <tr>
> > >                      <td class="leftcol">
> > >                          <span
> wicket:id="eventSummaryPanel"/>
> > >                      </td>
> > >                      <td class="rightcol">
> > >                          <table cellpadding="0"
> cellspacing="0"
> > > width="100%">
> > >                              <tr>
> > >                                  <td>
> > >                                      <table
> class="node"
> > > cellpadding="0" cellspacing="0">
> > >                                          <tr>
> > >                                              <th>
> > >                                                  <span
> > > wicket:id="name">Template name</span>
> > >                                              </th>
> > >                                              <th
> > > style="text-align: right;">
> > >                                                  <span
> > > class="edit"><a wicket:id="editTemplateEmail" href="">> > >                                              </th>
> > >                                          </tr>
> > >
> > >  'eventSummaryPanel' is a Panel that also works great in other pages.
> It's
> > > just this one page that's having the problem.  Any ideas on where to
> look or
> > > what to debug?  Setting logging to debug generates a mountain of info.
> > >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Reply via email to