Oh, brother.  If that's it, take my keyboard away from me.  :o)

I'll check as soon as I get on tonight.  If that's it, sorry for troubling
the list.

Andy

On Fri, 11 Apr 2008 11:20:43 -0400, "Peter Beshai" <[EMAIL PROTECTED]>
wrote:
> Unless there's a typo in your post:
> 
> public void setAgeRangeSrvd( AgeRange ageRangeeSrvd )
>                { this.ageRangeSrvd = ageRangeSrvd; }
> 
> The parameter's name is 'ageRangeeSrvd'  not ageRangeSrvd, so you're not
> setting it.
> 
> e.g. You're doing:
> private String _name;
> 
> public void setName(String name)
> {
>     this._name = _name;
> }
> 
> Peter Beshai
> 
> On Fri, Apr 11, 2008 at 10:06 AM, Filip S. Adamsen <[EMAIL PROTECTED]>
wrote:
> 
>> That's odd.
>>
>> What does your page class/template look like?
>>
>> -Filip
>>
>>
>> On 2008-04-11 10:15, Andy Huhn wrote:
>>
>> > Hello,
>> >
>> > I have what I thought was a fairly straightforward piece of code, but
> I
>> > can't seem to get it working.
>> >
>> > I have an enum defined as:
>> >
>> >        public enum AgeRange {
>> >                K6, MiddleSchool, HighSchool, K12, MiddleHighSchool
>> >        }
>> >
>> > I reference this enum in one of my POJOs:
>> >
>> >        public class CoOp extends Entity {
>> >            protected AgeRange ageRangeSrvd;
>> >
>> >            public AgeRange getAgeRangeSrvd()
>> >                { return ageRangeSrvd;    }
>> >
>> >            public void setAgeRangeSrvd( AgeRange ageRangeeSrvd )
>> >        { this.ageRangeSrvd = ageRangeSrvd; }
>> >        }
>> >
>> > And then I have a BeanEditForm to edit the POJO.
>> >
>> > The BeanEditForm correctly displays a drop-down with the correct list
> of
>> > values, but if I edit the drop-down and submit the form, it doesn't
> seem
>> > to pick up the changed value.  It picks up null each time.
>> >
>> > Any ideas?
>> >
>> > If it's at all relevant, I used Gavin King's GenericEnumUserType to
> get
>> > Hibernate to persist the enum (http://www.hibernate.org/272.html). 
> But
>> > I can't see how my Hibernate configuration would affect Tapestry's
>> > ability to encode/decode the enum value.
>> >
>> > Thanks,
>> > Andy
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>


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

Reply via email to