[
https://issues.apache.org/jira/browse/TAP5-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734581#comment-14734581
]
Hudson commented on TAP5-2308:
------------------------------
ABORTED: Integrated in tapestry-trunk-freestyle #1489 (See
[https://builds.apache.org/job/tapestry-trunk-freestyle/1489/])
TAP5-2308: throw an exception if the fragment's clientId is null
(jochen.kemnade: rev 16a7f536eae66c78d8040f8c8104f6794ce285ce)
*
tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/TriggerFragment.java
TAP5-2308: allocate then FormFragment's client ID when it is first requested
(jochen.kemnade: rev 4a9b171531f9fa271cb540555ead87d6b7242cca)
*
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
* tapestry-core/src/test/app1/BeanEditorWithFormFragmentDemo.tml
*
tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
*
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/BeanEditorWithFormFragmentDemo.java
*
tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/BeanEditorWithFormFragmentTests.groovy
> TriggerFragment mixin is not working if it is applied for a field in a
> beaneditor
> ---------------------------------------------------------------------------------
>
> 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ó
> Assignee: Jochen Kemnade
> Priority: Minor
> Fix For: 5.4
>
>
> 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
> --------------------------------
> {code}
> <t:beaneditor object="job"
> include="title,description,proposalDeadline,jobCompletionDeadline,tags,canBeDoneRemotely">
> <p:canBeDoneRemotely>
> <t:checkbox t:id="canBeDoneRemotely" value="job.canBeDoneRemotely"
> t:mixins="triggerfragment" fragment="jobAddress"/>
> <t:label for="canBeDoneRemotely"/>
> </p:canBeDoneRemotely>
> </t:beaneditor>
> <t:formfragment t:id="jobAddress" visible="!job.canBeDoneRemotely">
> <t:beaneditor object="job" include="address" />
> </t:formfragment>
> {code}
> 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.3.4#6332)