You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2007/07/23 02:06:05 UTC

[jira] Commented: (WW-2048) [2.0.8] AnchorTag has no setter method corresponding to TLD declared attribute 'onLoadJS'

    [ https://issues.apache.org/struts/browse/WW-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41560 ] 

James Holmes commented on WW-2048:
----------------------------------

I don't know the history here, but the problem seems to be in org.apache.struts2.components.Anchor:

    @StrutsTagAttribute(name="onLoadJS", description="Deprecated. Use 'notifyTopics'. Javascript code execute after reload")
    public void setAfterLoading(String afterLoading) {
        this.afterLoading = afterLoading;
    }


    @StrutsTagAttribute(name="preInvokeJS", description="Deprecated. Use 'notifyTopics'. Javascript code execute before reload")
    public void setBeforeLoading(String beforeLoading) {
        this.beforeLoading = beforeLoading;
    }

There are no "onLoadJS" and "preInvokeJS" methods. Instead the@StrutsTagAttribute annotation is pointing those tag attributes to other methods. I'm not sure if there was some sort of backward compatibility / deprecation work going on here, but it isn't working.

Anyone opposed to changing those annotations to point to the correct method names and removing the references to "onLoadJS" and "preInvokeJS"?

> [2.0.8] AnchorTag has no setter method corresponding to TLD declared attribute 'onLoadJS'
> -----------------------------------------------------------------------------------------
>
>                 Key: WW-2048
>                 URL: https://issues.apache.org/struts/browse/WW-2048
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 2.0.8
>         Environment: Weblogic 8.1 SP4, JRockit 1.4.2_07
>            Reporter: Maxx
>            Priority: Blocker
>             Fix For: 2.1.0
>
>
> Hello,
> I'm still having this issue:
> Parsing of JSP File '/pages/login.jsp' failed: /pages/login.jsp(2): Error in using tag library uri='/struts-tags' prefix='s': The Tag class 'org.apache.struts2.views.jsp.ui.AnchorTag' has no setter method corresponding to TLD declared attribute 'onLoadJS', (JSP 1.1 spec, 5.4.1)
> probably occurred due to an error in /pages/login.jsp line 2:
> <%@ taglib prefix="s" uri="/struts-tags"%>
> Using fresh download of struts-2.0.8-j4.zip (Java 4 ready JAR's) and on Weblogic 8.1 SP4, JRockIt 1.4.2_07 (production platform).
> As told on issue [#WW-1697], unpacking the .jar and editing the .tld is possible, but is only a work-around, as we need to do this again and again as well as we will upgrade our Struts 2 jar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.