Cannot read property of private nested class
--------------------------------------------

                 Key: STS-463
                 URL: http://mc4j.org/jira/browse/STS-463
             Project: Stripes
          Issue Type: Improvement
          Components: ActionBean Dispatching
    Affects Versions: Release 1.4.3
         Environment: Windows/Linux, Tomcat 5.5.28
            Reporter: Phil Sladen
         Assigned To: Tim Fennell


I get this in the log:

14:34:58,810  INFO DefaultPopulationStrategy:166 - Could not locate property of 
name [timePeriod.startTime.hr] on 
ActionBean.net.sourceforge.stripes.util.bean.EvaluationException: Could not 
read value of property 'hr' on bean of type 
com.example.utils.TimePeriod$HrMinTime due to an exception.

Trimmed down code is:

public class TimePeriod {
        private HrMinTime startTime = new HrMinTime();
        private HrMinTime endTime = new HrMinTime();
       
        public HrMinTime getEndTime() {
                return endTime;
        }
        public HrMinTime getStartTime() {
                return startTime;
        }
       
        private class HrMinTime {
                String hr = "";
                String min = "";
               
                public String getHr() { return hr; }
                public void setHr(String hr) { this.hr = hr; }
                public String getMin() { return min; }
                public void setMin(String min) { this.min = min;}
        }
}

If I make the inner class public I don't get the log message. This worked in 
Struts2, so I guess there must be a way to get this to work. Otherwise, I am 
forced to make members public when best practice dictates they should be 
private.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to