Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

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

Dariusz Wojtas

2007-01-22

Replies:

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 <jh398@(protected):
> 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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.