Hi,
I guess you are using Inge's ZoneUpdater?
Try to add the context parameter to the textfield:

<t:textfield t:id="field" value="myObject.myString" t:mixins="zoneUpdater"
zone="myZone" event="myEvent" clientEvent="keyup" context="myObject.id" />

The 'id' should be in the EventContext and you should be able to retrieve it in Object onMyEvent(EventContext context);

Hope that works :)

Christian


Am 29.12.09 13:30, schrieb markovinac ante:
Hy guys,

I have an Ajax, ZoneUpdater, t:loop kind of problem :) - hope you can help
t:loop component is wrapped around a t:textfield component - like this...

<t:zone t:id="myZone">
<t:form>
<t:loop source="myList" value="myObject" t:formstate="ITERATION">
<t:textfield t:id="field" value="myObject.myString" t:mixins="zoneUpdater"
zone="myZone" event="myEvent" clientEvent="keyup"/>
</t:loop>
</t:form>
</t:zone>

ZoneUpdater event fires beautifully but i'm unable to determine which
textfield fired it , or better yet - i do not know how to retreive the
textfield id in my code.

Object onMyEvent (String myString) {
// Which textfield fired this event?
}

thanks in advance...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to