I am migrating my application from 1.2.6 to 1.3.0 and am getting a
similar (although slightly different) problem in 1.3.0-incubating-SNAPSHOT.
I'll try to isolate the problem in a small example and follow up.
Regards,
Huergo
Igor Vaynberg wrote:
have you tried against the latest wicket-1.2.x branch?
-igor
On 6/8/07, *Huergo Perez* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi All,
I am having the following problem trying to use a TabbedPanel
inside a fragment. The structure of components is the following:
[CompanyDetailsPanel] -> [RelatedInfoFragment] -> [TabbedPanel].
Wicket throws a MarkupException complaining about a missing
component ID. The exception message seems to be unrelated to the
real cause of the problem. The component IDs in HTML and the
panel's Java code match. Below the exception stack trace Wicket
displays my markup file and highlights the closing </div> of my
fragment.
If I use the TabbedPanel directly from my CompanyDetailsPanel
(i.e. without using a fragment), then everything works fine.
I am using Wicket 1.2.6.
Has anybody faced such a problem? Is it a bug in Wicket? Are there
any workarounds?
Thanks in advance!
Huergo
Markup reported by wicket:
-------------------------
<wicket:panel>
<div wicket:id="generalInfo">[general info]</div><br />
<div wicket:id="bankInfo">[bank info]</div><br />
<div wicket:id="contactInfo">[contact info]</div><br />
<div wicket:id="legalAddress">[legal address]</div><br />
<div wicket:id="primaryAddress">[primary address]</div><br />
<div wicket:id="comments">[comments section]</div><br />
<div wicket:id="relatedInfo">[related info] </div><br />
^^^^^^^^^^^
</wicket:panel>
Wicket's exception message:
-------------------------
WicketMessage: Unable to find component with id 'name' in
[MarkupContainer [Component id = relatedInfo, page =
com.xlab.collection.wicket.test.london.CompanyDetailsTestPage,
path =
0:companyDetails:relatedInfo.CompanyDetailsPanel$RelatedInfoFragment
, isVisible = true, isVersioned = true]]. This means that you
declared wicket:id=name in your markup, but that you either did
not add the component to your page at all, or that the hierarchy
does not match.
[markup =
file:/C:/work/projects/collection/collection-webapp/target/classes/com/xlab/collection/wicket/gui/party/details/CompanyDetailsPanel.html,
index = 177, current = '<span wicket:id="name">' (line 97, column 7)]
-------------------------------------------------------------------------
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
<mailto: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