You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Patrick Davids <pa...@nubologic.com> on 2014/07/30 11:33:37 UTC

Button and AutoTextLabelResolver

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="submit"><wicket:label 
for="previous">[next Step]</wicket:label></button>

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


Re: Button and AutoTextLabelResolver

Posted by Martin Grigorov <mg...@apache.org>.
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.davids@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="submit"><wicket:label
> for="previous">[next Step]</wicket:label></button>
>
> Thanx for feedback...
> kind regards
> Patrick
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>