Hi!

I just copied Inge's ZoneUpdater and by magic my registration page started
to recieve events
for each key pressed in the field that I had instrumented with it.

BUT by some reason the string passed is null and I must have missed
something.

When I look at the JumpStart example I noticed that the field names have
underscores in them in the java class.
Is this needed ? Something with mixins ? I have never used underscores ....

What have I missed?

Thanks in advande
Gunnar Eketrapp

===============================================

JumpStart example ....


<form t:type="form" style="background-color: eee; padding: 15px">
                First Name:
                <input t:type="TextField" t:id="firstName" 
t:mixins="zoneUpdater"
zone="nameZone" event="firstNameChanged" clientEvent="keyup"/><br/>
                Last Name:
                <input t:type="TextField" t:id="lastName" t:mixins="zoneUpdater"
zone="nameZone" event="lastNameChanged"
clientEvent="keyup"/><br/><br/>

                <t:zone t:id="nameZone">
                        Welcome ${name}.
                </t:zone><br/>

                Note that the following time field does not update because it's 
not
in the zone:  ${time}<br/>
                
        </form>
        
        References:


blic class AJAXOnEvent {

        @Property
        @Persist
        private String _firstName;

        @Property
        @Persist
        private String _lastName;

        @InjectComponent
        private Zone _nameZone;


-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to