struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <>
Subject Re: preInvokeJS does not work for <a> tag
Date Tue, 02 Jan 2007 18:37:54 GMT
What version are you using? using head svn , I modified showcase's 
remote link first example to this:

        targets="t1,t2" notifyTopics="/after" 
preInvokeJS="alert('test')">Update 'Div 1' and 'Div 2', publish topic 
'/after', use indicator</s:a>

and it shows "test". "preInvokeJS" is deprecated. If you are using head 
svn, use "notifyTopics" instead. See showcase for examples, or this link:


Célio Cidral Junior wrote:
> Hi,
> The preInvokeJS attribute does not work for the <a> tag as described
> in the example from <>. That
> feature seems to be originated from the issue
> <>. Below is a snippet of
> my source JSP code.
> <s:a href="%{delete}" 
> preInvokeJS="confirm('%{getText('confirm-delete')}')">
>     <s:text name="record.delete"/>
> </s:a>
> The anchor works properly, except that it does not call the confirm()
> method. The generated HTML gives me this code:
> <a href="/sed/listUsers!">Deletar</a>
> And there's no occurrence of the word "confirm" in the whole HTML code
> nor there's any reference to an external JS file.
> I presume I'm not missing anything. Any guess whether this feature is
> actually working or not?
> Célio.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message