You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeffrey Hau <jh...@doc.ic.ac.uk> on 2007/01/22 17:43:31 UTC

[s2] adding an attribute to ajax link tag

Hi,
there is a loadingText atrribute for the ajax link tag, is there  
anyway for me to dispaly an image? do I need to extend the current  
link tag to do this? If so, can someone point me in the rite  
direction on how to extend tags, i can't seem to find any related  
tutorials or guides on the project website.

many thanks,

Jeff 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [s2] adding an attribute to ajax link tag

Posted by Dariusz Wojtas <dw...@gmail.com>.
Try using indicator.
It is shown in the showcase app.
The indicator image can also be found in the showcase app.

   <img id="customerIndicator"
       src="<%= request.getContextPath() %>/images/indicator.gif"
       alt="Loading..." style="display:none"/>

  <s:url id="editUrlId" namespace="/my/namespace" action="edit"
includeParams="none">
  <s:a href="%{editUrlId}" theme="ajax"
   targets="myTargetDiv" indicator="customerIndicator"
   loadingText="Loading ...">Edit</s:a>

Dariusz Wojtas


On 1/22/07, Jeffrey Hau <jh...@doc.ic.ac.uk> wrote:
> Hi,
> there is a loadingText atrribute for the ajax link tag, is there
> anyway for me to dispaly an image? do I need to extend the current
> link tag to do this? If so, can someone point me in the rite
> direction on how to extend tags, i can't seem to find any related
> tutorials or guides on the project website.
>
> many thanks,
>
> Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org