You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ivan Vasilev (JIRA)" <ji...@apache.org> on 2011/01/01 15:26:45 UTC

[jira] Commented: (WICKET-3293) Ajax form submit and third party HTML editors

    [ https://issues.apache.org/jira/browse/WICKET-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976406#action_12976406 ] 

Ivan Vasilev commented on WICKET-3293:
--------------------------------------

Just for the record I think I found a workaround for this issue. I added a hidden input field to the form and an AjaxPreprocessingCallDecorator to the AjaxButton that submits the form. Before the form is submitted the call decorator retrieves the value from the editor and sets it to the hidden input field. On the server side the value from the editor is retrieved via the hidden field. 

> Ajax form submit and third party HTML editors
> ---------------------------------------------
>
>                 Key: WICKET-3293
>                 URL: https://issues.apache.org/jira/browse/WICKET-3293
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M3
>         Environment: Any
>            Reporter: Ivan Vasilev
>            Assignee: Igor Vaynberg
>         Attachments: quickstart.rar
>
>
> There is a form with two textarea elements in it. 
> The first textarea is converted into a CKEditor (http://ckeditor.com/) and the second one is converted into dijit.Editor (http://docs.dojocampus.org/dijit/Editor).
> There are two submit buttons - one Ajax and one non-ajax.
> When the form is submitted with page reload (non ajax) the values from the two textarea elements are correctly submitted to the server.
> However, if the form is submitted via ajax the values from the two textarea elements are not sent to the server. This can be observed in the attached quickstart.
> This issue involves third party tools, so in a sense it's not a wicket problem, but I decided to create an issue for two reasons:
> 1. There is a repeated pattern with two different editors, which (as far as I know) have nothing in common.
> 2. There is a different behavior when the form is submitted via ajax (doesn't work) and with page reload (works). 
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.