Hi Shawn,

That’s more of a styling issue.

<input type=“button”> uses the “value” attribute to render the button text.

For a <button> you’ll need to put the value inside the button tag:
<button>value goes here</button>

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 28 juni 2023 bij 15:24:44, Shawn McKinney (smckin...@symas.com) schreef:


> On Jun 28, 2023, at 8:11 AM, Bas Gooren <b...@iswd.nl> wrote:
>
> Hi Shawn,
>
> The code basically checks if you apply the behavior to a <button>
element.
>
> In other words:
>
> <input type=“button”> is considered an “invalid” element for this
behavior.
>
> <button> is considered “valid”.
>

Hello,

As part of my scientific ‘poke and hope’ methodology;-), I had tried that.

Now, the warning has disappeared. But, the button renders on the page as a
tiny dot, that actually works. I doubt my users would be a big fan of it
(tiny buttons), although their eye doctors might?

Anyway, all kidding aside, here’s what the html looks like:

```
<button type=button class="ui-button ui-widget ui-state-default
ui-corner-all ui-button-text-only"
wicket:id="wspage1.button1" value="wspage1.button1"
name="wspage1.button1”/>
```

Best

—
Shawn

> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren


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

Reply via email to