You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Balázs Palcsó (JIRA)" <ji...@apache.org> on 2014/04/03 00:57:14 UTC

[jira] [Commented] (TAP5-2308) FormFragment with TriggerFragment on checkbox is broken in 5.4-beta-3 jquery

    [ https://issues.apache.org/jira/browse/TAP5-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13958292#comment-13958292 ] 

Balázs Palcsó commented on TAP5-2308:
-------------------------------------

After doing some debugging it looks like this is rather a server side issue.

{{org.apache.tapestry5.corelib.components.FormFragment.beginRender(MarkupWriter)}} is called after {{org.apache.tapestry5.corelib.mixins.TriggerFragment.beginRender()}}

{{FormFragment.beginRender}} sets the clientId field of FormFragment after null value was read in {{TriggerFragment.beginRender()}}.
Maybe it has something to do with {{TriggerFragment.beginRender()}} being called to early regardless it is annotated with {{@HeartbeatDeferred.}}

> FormFragment with TriggerFragment on checkbox is broken in 5.4-beta-3 jquery
> ----------------------------------------------------------------------------
>
>                 Key: TAP5-2308
>                 URL: https://issues.apache.org/jira/browse/TAP5-2308
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Balázs Palcsó
>            Priority: Blocker
>              Labels: javascript, jquery
>
> I am trying to use FormFragment with TriggerFragment on checkbox in the way it is documented at: http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html
> Here is my template snippet
> --------------------------------
> <t:checkbox t:id="canBeDoneRemotely" value="job.canBeDoneRemotely" t:mixins="triggerfragment" fragment="jobAddress"/>
> <t:label for="canBeDoneRemotely"/>
> <t:formfragment t:id="jobAddress" visible="!job.canBeDoneRemotely">
>        <t:beaneditor object="job" include="address" />
> </t:formfragment>
> The error message I get
> --------------------------------
> The event is bound properly and gets triggered when clicking on the checkbox, but I get the this error message:
> Uncaught Error: Attempt to wrap a null DOM element dom.js:411
> wrapElement dom.js:411
> update form-fragment.js:36
> wrapped dom.js:49
> jQuery.event.dispatch jquery.js:4624
> jQuery.event.add.elemData.handle jquery.js:4292
> The reason:
> ------------------
> In form-fragment.js at line 36 spec.fragmentId is undefined.



--
This message was sent by Atlassian JIRA
(v6.2#6252)