cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Baptiste Quenot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-1437) Htmlarea lost contents
Date Tue, 03 Oct 2006 08:00:20 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1437?page=comments#action_12439404 ] 
            
Jean-Baptiste Quenot commented on COCOON-1437:
----------------------------------------------

This is a known issue: when using HTMLArea in a form, you can't use Cocoon Forms submit-on-change
or <fd:submit>.  There must be a conflict somewhere in the <body onload> handlers.
 As a workaround you can use <input type="submit"> instead<fd:submit> of <ft:widget>.

> Htmlarea lost contents
> ----------------------
>
>                 Key: COCOON-1437
>                 URL: http://issues.apache.org/jira/browse/COCOON-1437
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.2-dev (Current SVN)
>         Environment: Operating System: All
> Platform: All
>            Reporter: Gioni Gennai
>         Assigned To: Cocoon Developers Team
>
> In my project I use htmlarea with cform. I customize the html area calling a js
> function with onload event
> <body onload="initHtmlArea('descrizione'); return true;">
> function initHtmlArea(elementId) {
>    // inititalize editor
>    editor = new HTMLArea(elementId);
>    // retrive the config object
>    var config = editor.config;
>    // do custom configuration
>    config.toolbar = [
>        [
>            "bold", "italic", "underline", "separator",
>            "undo", "redo", "separator",
>          "justifyleft", "justifycenter", "justifyright", "separator",
>          "insertorderedlist", "insertunorderedlist", "outdent",
>          "indent"
>        ]
>    ];      HTMLArea.replace(elementId, config);
> }
> Where descrizione is the htmlarea's id
> <ft:widget id="descrizione">
>  <fi:styling type="textarea" rows="20" style="width:100%"/>
> </ft:widget>
> All seems to work, I have my htmlarea show in the form.
> The problem is that in the form I have a selection list,  with  the <fi:styling
> submit-on-change="true"/>, that I use to populate another selection list on the
> form. When i change the selection, in the first selection list, the second is
> populate as I expect, but the text present in the htmlarea is lost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message