You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2013/11/26 14:58:19 UTC
JS error ajaxformloop
I'm seeing the following error in my console while adding rows to the
AjaxFormLoop. I discovered the issue in alpha-22 and upgraded to alpha-28
to find it still existed.
TypeError: newElement.trigger is not a function
return newElement.trigger(events.zone.didUpdate);
ajaxformloop.js (line 44)
Sample html
<t:form t:id="form">
<div t:type="ajaxformloop" t:id="phones" source="person.phones"
value="phone" encoder="encoder">
<t:select t:id="type" model="selectModel"
value="phone.phoneType"/>
<t:textfield t:id="number" value="phone.number"/>
<t:removerowlink>remove</t:removerowlink>
</div>
<input type="submit" value="Update"/>
</t:form>
--
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Re: JS error ajaxformloop
Posted by Chris Poulsen <ma...@nesluop.dk>.
It has been reported a couple of times recently. TAP5-2230 and TAP5-2228
On Tue, Nov 26, 2013 at 2:58 PM, George Christman
<gc...@cardaddy.com>wrote:
> I'm seeing the following error in my console while adding rows to the
> AjaxFormLoop. I discovered the issue in alpha-22 and upgraded to alpha-28
> to find it still existed.
>
> TypeError: newElement.trigger is not a function
>
> return newElement.trigger(events.zone.didUpdate);
>
> ajaxformloop.js (line 44)
>
> Sample html
>
> <t:form t:id="form">
> <div t:type="ajaxformloop" t:id="phones" source="person.phones"
> value="phone" encoder="encoder">
> <t:select t:id="type" model="selectModel"
> value="phone.phoneType"/>
> <t:textfield t:id="number" value="phone.number"/>
> <t:removerowlink>remove</t:removerowlink>
> </div>
> <input type="submit" value="Update"/>
> </t:form>
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>