DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14938>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14938

Inconsistent "No getter method found" error for bean object within ArrayList, but the 
property does exist

           Summary: Inconsistent "No getter method found" error for bean
                    object within ArrayList, but the property does exist
           Product: Struts
           Version: 1.1 Beta 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an object with a property, which sits within an ArrayList belonging to 
the form bean.  This is only required for displaying, and not setting.  
On one machine, everything works fine - on the next, I get a "No getter method 
found" error. 

HOWEVER, if I change the name of that property in any way whatsoever from 
   getIsEnteredByLea / setIsEnteredByLea
to, for example:
   getIsEnteredByLea2 / setIsEnteredByLea2
then it doesn't complain.

It seems to randomly do this with various properties - and recompiling / 
redeploying doesn't help.

????

//--------------------------------------------------------------------
// Sample code snippet

public class LeaTotal implements java.io.Serializable
{
    private String isLea = "Y";
   
    // doesn't like this
    public String getIsEnteredByLea () {
        return isLea;
    }

    public void setIsEnteredByLea (String value) {
        isLea = value;
    }

    // finds this okay
    public String getIsEnteredByLea2 () {
        return isLea;
    }
}

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to