Re: Variable number of links with just one wicket id?

2012-09-20 Thread fabley
Hello again,

I'm sorry but it seems like this doesn't work for me. In your example it
always uses the same text for each link, but I want to define my own text
for each link. Is there a way to do this?

Code Snippets: 

 HTML
 
   
 div id=menu
   
 ul
 li wicket:id=repeater
 /li
 /ul
   
 /div


 Java
 
 RepeatingView view = new RepeatingView(repeater);
 Link link = new Link(1) {
 @Override
 public void onClick() {
   
 }
 };
 view.add(link);
 add(view);





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Variable-number-of-links-with-just-one-wicket-id-tp4652150p4652178.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Variable number of links with just one wicket id?

2012-09-19 Thread fabley
Hello,

I’m pretty new to Wicket and I want to realize the following thing:

There is a variable number of links which I’d like to show on my page with
only one wicket-id… So that there can be added links in the Java Code
without adding them in my HTML-file. Is there any solution to do this?

Kind regards 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Variable-number-of-links-with-just-one-wicket-id-tp4652150.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org