what is row? where you add that externling link to?
I see you have a row wicket component (the id) but myLink is not the
child of that but the parent?
So looking at youre code you should do:
myLink = new External(xxxx)
myLink.add(new Xxx("rows"))
[EMAIL PROTECTED] wrote:
Hi,
I'm trying to modify NestedList.html found in the wicket examples to make
"<li>" a HREF. In otherwords I want the list item to link to an external
site.
I modified the NestedList.html to:
<ul>
<span wicket:id="rows">
<a wicket:id="myLink">
<li wicket:id="row">
<span wicket:id="label">The lable here!</span>
</li>
</a>
<span wicket:id="nested"/>
</span>
</ul>
and defined the "myLink" component in the NestedLink.java class as:
row.add(new ExternalLink("myLink", "http://www.google.com",
modelObject.toString()));
But I get the error: "wicket.markup.MarkupException: Unable to find
component with id 'myLink' in [MarkupContainer ...".
What am I doing wrong? Or is there a better way to do this? Any code to
demonstrate?
Thanks
F
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user