fero wrote:
>
> I found what was wrong but I can not explain it
>
> In markup of LabelLink I had
> <wicket:panel>
> <button wicket:id="id" id="id"><label wicket:id="id"></label></button>
> </wicket:panel>
>
> When I changed "button" tags to "a" it was working, but I want my links to
> look like buttons
>
> <wicket:panel>
> <label wicket:id="id"></label>
> </wicket:panel>
>
>
I tried using a button and it works fine. Here is my code (using v1.3
beta2):
LabelLink.html:
<wicket:panel>
<input type="button" wicket:id="id" value="click me"><label
wicket:id="id"></label></input>
</wicket:panel>
LabelLink.java: same as yours.
Test.html:
<html>
<body>
<form wicket:id="form">
</form>
</body>
</html>
Test.java:
public class Test extends WebPage {
public Test() {
add(new FeedbackPanel("fb"));
Form form = new Form("form");
add(form);
form.add(new LabelLink("ll", new Model("hello")) {
@Override
public void onClick() {
error("error!");
}
});
}
}
--
View this message in context:
http://www.nabble.com/FeedbackPanel-%2B-Link-problem-tf4380134.html#a12494894
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]