instead of
item.add(new link("categoryLink"){});
item.add(new label("categoryname"))
do
Link link=new linke("categoryLink");
item.add(link);
link.add(new label("categoryname"));
-igor
On 3/1/07, Chris Colman <[EMAIL PROTECTED]> wrote:
I have a list view and I need each item in the list to display a HREF
link and text. Both the link target URL and the link text are different
for each item in the list.
Using the following causes a component 'categoryName' not found error:
<span wicket:id = "items">
<h2 style="line-height: 2px">
<a href="#" wicket:id="categoryLink">
<span
wicket:id="categoryName">Pizza</span>
</a>
</h2>
<span wicket:id="categoryDesc">Hmmm, yum.</span>
</span>
Without changing any .java files I move the categoryName span tag to
outside the HREF and it works without error - although my HREF tag link
text is wrong:
<span wicket:id = "items">
<h2 style="line-height: 2px">
<a href="#" wicket:id="categoryLink">
Fixed name but want a variable
name
</a>
</h2>
<span wicket:id="categoryName">category
name</span>
<span wicket:id="categoryDesc">Hmmm, yum.</span>
</span>
How do I get content from my ListItem embedded into the <a href> IN HERE
</a>?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user