That worked great!!!
thank you so much

For those of you who don't know (as i was one of them just a minute ago)
EventContext is a collection of parameters that may eventually be passed to
an event handler method. in this case two parameters were returned wrapped
int the context - the value in the textfield (handeled within this great
ZoneUpdate mixin) and myObject.id value


Christian Riedel wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/textfield-id-with-ajax-tp4227493p4227751.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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

Reply via email to