Ajax works also with empty tags, but your link does not receive click events 
because of the surrounding span (which gets the click events).

Try this:

<a wicket:id="link" class="myIcon"></a>

.myIcon {
    background: url("...");
    display: inline-block;
    height: XXXpx;
    width:  YYYpx;
}


Cheers,
   -Tom

                        
On 23.11.2012, at 12:41, ronny.v...@consult.nordea.com wrote:

> Hi all
> 
> I seem to struggle more than expected on this scenario: An empty <A> tag wont 
> trigger Ajax
> 
> HTML is pretty simple
> <span class="myIcon" " id="id3192">
> <a 
> href="../page?3-2.ILinkListener-navigation-navigation_body-wmc-left-4-comp-content-tabs-panel-body-rows-5-cells-2-cell-3-link"
>  id="link17a">
> </a>
> </span>
> 
> myIcon {
>    background: url("../img/myImg.png");
> 
> Whats the trick? should I use some transparent text approach or? any 
> experiences here to share?
> 
> Thanks in advance!
> 
> /Ronny


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

Reply via email to