Re: Button and AutoTextLabelResolver

2014-08-04 Thread Martin Grigorov
Hi,

Please create a quickstart and attach it to a ticket in JIRA.
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Jul 30, 2014 at 11:33 AM, Patrick Davids 
patrick.dav...@nubologic.com wrote:

 Hi all,
 it seems it is not possible to use AutoTextLabelResolver with buttons?

 I always get errors like
 java.lang.IllegalStateException: no related component found for
 wicket:label
   at

 org.apache.wicket.markup.html.form.AutoLabelTextResolver.resolve(AutoLabelTextResolver.java:258)

 Button b = new Button(previous);
 b.setLabel(Model.of(Next Step));

 button wicket:id=previous type=submitwicket:label
 for=previous[next Step]/wicket:label/button

 Thanx for feedback...
 kind regards
 Patrick
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Button and AutoTextLabelResolver

2014-07-30 Thread Patrick Davids
Hi all,
it seems it is not possible to use AutoTextLabelResolver with buttons?

I always get errors like
java.lang.IllegalStateException: no related component found for 
wicket:label
  at 
org.apache.wicket.markup.html.form.AutoLabelTextResolver.resolve(AutoLabelTextResolver.java:258)

Button b = new Button(previous);
b.setLabel(Model.of(Next Step));

button wicket:id=previous type=submitwicket:label 
for=previous[next Step]/wicket:label/button

Thanx for feedback...
kind regards
Patrick
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org