facebook

Unable to find setter Method for attribute: type

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #253424 Reply

    ferenjito
    Member

    Hello there,

    I have a strange problem with a self-made tag library:

    Jsp:

    
    <mytools:createbean type="Booking" name="booking" />
     

    TLD:

    
    
       <tag>
          <name>createbean</name>
          <tagclass>tag.TagCreateBean</tagclass>
          <bodycontent>jsp</bodycontent>
          
          <attribute>
             <name>name</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
             <name>type</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          </attribute>
          
      </tag>

    Tag Class :

    
    ...
             String type;
        String name;
        
        
        
        public void setName(String name) {
            this.name = name;
        }
        
        public void setType(String b) {
            this.type = b;
        }
        
        
    .....
        

    Obviously the TLD demands an attribute ‘type’ and there is a setter Method provided for the atttribute in the Tag Class. Funnily, the Parser does not stop warning me :
    <b>Unable to find setter Method for attribute: type</b>, Even if I restart Eclipse.
    The Application works fine though, so the Problem is only on Parsing level and does not have any Effect on the Program. But it is still ugly and looks like a Parser Bug.
    Is there a way to get rid of that?

    Thanks,
    Ferenjito

    #253449 Reply

    ferenjito
    Member

    Running works fine, parsing mentions error

    #254265 Reply

    rheaghen
    Member

    I’m having the Exact same Proble aswell.. as far as I can tell… everything is properly defined. However, I’m kind-of a noob when it comes to custom TLD’s.

    PLEASE! Can Anyone Help?

    #254284 Reply

    ferenjito
    Member

    Do not worry to much, with me, the problem disappeared after a while without obvious cause

    #254321 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Unable to find setter Method for attribute: type

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