I think your question has been correctly answered already. But, anyways, it
is pleasant to have questions in  wicket's users list :-)

On Wed, Jun 28, 2023 at 4:08 PM Shawn McKinney <smckin...@symas.com> wrote:

> Howdy,
>
> I’m a little embarrassed to be asking. It seems so basic, should know it
> already.
>
> But, I’ve already spent a fair amount of time digging with no answers.
>
> My usage of Ajax buttons generates this warning in the logs:
>
> ```
> WARN  - 28 Jun 2023 07:35:56,704 - IndicatingAjaxButton       -
> IndicatingAjaxButton should be applied on a 'button’ tag
> ```
>
> Looking at the wicket source, I see:
>
>
> ```
> public abstract class IndicatingAjaxButton extends AjaxButton
> ...
> @Override
> protected void onComponentTag(ComponentTag tag)
> {
>   super.onComponentTag(tag);
>   if (!"button".equalsIgnoreCase(tag.getName()))
>   {
>     LOG.warn("IndicatingAjaxButton should be applied on a 'button' tag”);
>   }
> }
> ```
>
> A head scratcher to me why that warning is in place.
>
> Obviously, there’s something I’m missing.
>
> Here’s my code. It all “seems" to work just fine (other than the warning).
> What am I doing wrong?
>
> ```java
> public Page1Form( String id )
> {
> …
>
> add( new IndicatingAjaxButton( "wspage1.button1" )
> {
>   @Override protected void onSubmit( AjaxRequestTarget target )
>   {
>     logIt( target, “..." );
>   }
> }
> ...
> ```
>
> ```html
>
> <form wicket:id="pageForm”>
> …
> <input 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"/>
>
> ```
>
> I’m using the latest Wicket (v10). This behavior (log warnings) was
> present on earlier versions as well.
>
> Thanks
>
> —
> Shawn
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to