facebook

Taglib problem Unable to find setter method for attribute

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #236454 Reply

    Patryn
    Member

    Hi,

    i’am having some problems with taglibs, eclipse3.1, myeclipse4.0GA.

    Tag: <ic:message name=”Warenkorb” />
    Taglibdescriptor: taglib uri=”http://www.init.de/coremedia/ic&#8221; prefix=”ic”
    Correctly installed in web.xml and tld, i can run this in tomcat4 and all is ok, but myeclipse keeps saying:

    “Unable to find setter method for attribute: name”

    In tld:
    <attribute>
    <name>name</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>

    In code:
    public void setName(final String name) {
    this.name = name;
    }

    Tomcat4 says, it’s fine…what is the problem?

    #236492 Reply

    Riyad Kalla
    Member

    Would you able to create a small sample project with the taglibs and a single example JSP that doesn’t work and then File > Export > To ZIP and send it to support@genuitec.com ATTN Riyad?

    #236593 Reply

    Patryn
    Member

    Hi, no…this isn’t a project dependant problem 🙂
    I would say, there is a update listener missing mixed with caching stuff in the myeclipse taglib stuff.
    If i restart myeclipse und clean + rebuild the full project, the shown errors are gone.
    Myeclipse dosn’t notice new inserted attribute parameters for custom tags in jsp pages.
    I can live with it, seldom adding new attributes.

    #236735 Reply

    tbrantb
    Member

    I am also experiencing this same problem. Sometimes I add an attribute to the tag class and it works other times, I get the same error described above. I believe it may have to do with the order I add the attribute to the jsp, tld, java tag class.

    Anyhow, restart, clean, revalidate makes the error disappear.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Taglib problem Unable to find setter method for attribute

You must be logged in to post in the forum log in