[
https://issues.apache.org/jira/browse/COCOON-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562621#action_12562621
]
Gabriel Gruber commented on COCOON-1738:
----------------------------------------
I attached 2 patches which worked for me to use the DoubleListBox within an
Ajax enabled CForm under Cocoon 2.1.10. With this path the DoubleListbox works
with Ajax (outside of a repeapter!)
I recently tested them also inside repeaters, with mixed results.
I think it is a starting point, how the problem could be solved :-)
Gabriel
> double-listbox problem in repeaters
> -----------------------------------
>
> Key: COCOON-1738
> URL: https://issues.apache.org/jira/browse/COCOON-1738
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax, Blocks: Forms
> Affects Versions: 2.1.8, 2.1.9
> Reporter: Fabrizio Sitzia
> Attachments: cocoon-ajax.js.diff,
> forms-advanced-field-styling.xsl.diff,
> forms-advanced-field-styling_snippet.xsl, forms-lib.js.diff,
> forms-lib_snippet.js
>
>
> Rendering a multivaluefield using the 'double-listbox' styling fails, when
> that multivaluefield is contained in a repeater, and Ajax is enabled for the
> form:
> The 'double-listbox'-styled fields in the repeater stop working as soon as
> some action, involving a round-trip to the server and a partial re-rendering
> of the repeater, is being performed (for example adding or deleting a
> repeater row, validation error on submit...)
> After such a round-trip, a click on any of the double-listbox's UI elements
> (double-click on an item, click on an option-transfer button) will yield a
> Javascript error ("optxxxxx is not defined" on Cocoon 2.1.8, and
> "from.options has no properties" on the current BRANCH_2_1_X)
> The multivaluefield's values will not be submitted correctly afterwards.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.