ok the error goes away when i remove the <img.../> and i am using wicket
1.2.4
On 7/11/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
>From the javadoc
/**
* The AutoLinkResolver is responsible to handle automatic link resolution.
Tags
* are marked "autolink" by the MarkupParser for all tags with href
attribute,
* such as anchor and link tags with no explicit wicket id. E.g. <a
* href="Home.html">
* <p>
* If href points to a *.html file, a BookmarkablePageLink will
automatically be
* created, except for absolut paths, where an ExternalLink is created.
* <p>
* If href points to a *.html file, it resolves the given URL by searching
for a
* page class, either relative or absolute, specified by the href attribute
of
* the tag. If relative the href URL must be relative to the package
containing
* the associated page. An exception is thrown if no Page class was found.
* <p>
* If href is no *.html file a static reference to the resource is created.
Does the exception go away when you remove <img ..> from the markup?
Which wicket version are you using?
you are not using the panel (the same of instance of the panel) more
than once, do you?
Juergen
On 7/11/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> when the markup is like this,
>
> <wicket:panel>
> <div style="height:250px;">
> <img src="images/default_logo.png" width="152" height="61" /><br
/>
> <strong>Worker Solutions Limited </strong>
> <br />
> <ul style="padding-left:1px; margin:0; list-style:none;">
> <li>1000 Resumes</li>
> <li>23 Open Vacancies</li>
> <li>12 Closed Vacancies</li>
> <li>100 Unreviewed Resumes</li>
> <li>90 Reviewed Resumes</li>
> <li>10 Invitations </li>
> </ul>
> </div>
> <a wicket:id="logout">Log out</a>
> </wicket:panel>
>
> it throws this error
>
> and when its like this
> <wicket:panel>
>
> <a wicket:id="logout">Log out</a>
> </wicket:panel>
>
> it works fine
>
>
>
> On 7/11/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> >
> > I did something like this on the homapage class
> >
> >
> > signInPanel = new MemberSignInPanel("loginFrame");
> > add(signInPanel);
> > loggedInPanel = new
> AfterSignPanel("loggedInFrame");
> > add(loggedInPanel);
> >
> > if (isSignedIn()) {
> > signInPanel.setVisible(false);
> > loggedInPanel.setVisible (true);
> > } else {
> > signInPanel.setVisible(true);
> > loggedInPanel.setVisible(false);
> > }
> >
> > and....what could cause this even though their is no component with
the
> same id in the markup. What is AutoLinkResolver?
> >
> >
> > WicketMessage: The component [MarkupContainer [Component id =
_autolink_6,
> page = com.nairanet.project.newhome.NewHomePage, path =
> 1:_<body>:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
> isVisible = true, isVersioned = true]] has the same wicket:id as another
> component already added at the same level
> >
> > Root cause:
> >
> > wicket.markup.MarkupException: The component [MarkupContainer
[Component
> id = _autolink_6, page = com.nairanet.nelx.project.NewHomePage, path =
> 1:_<body>:_autolink_6.AutoLinkResolver$AutolinkExternalLink,
> isVisible = true, isVersioned = true]] has the same wicket:id as another
> component already added at the same level
> > at wicket.Page.componentRendered(Page.java:940)
> > at wicket.Component.rendered(Component.java:1762)
> > at wicket.Component.render(Component.java:1541)
> > at wicket.MarkupContainer.renderNext(MarkupContainer.java
> :1334)
> > at
> wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982)
> > at
> wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)
> > at wicket.Component.renderComponent(Component.java :1719)
> > at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
> > at wicket.Component.render(Component.java:1533)
> > at
> wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
> > at wicket.MarkupContainer.renderAll
> (MarkupContainer.java:9
> >
> >
>
>
>
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user