You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Fabrizio Sitzia (JIRA)" <ji...@apache.org> on 2006/01/17 10:50:41 UTC
[jira] Created: (COCOON-1732) Ajax and IE empty textarea bugfix
Ajax and IE empty textarea bugfix
---------------------------------
Key: COCOON-1732
URL: http://issues.apache.org/jira/browse/COCOON-1732
Project: Cocoon
Type: Bug
Components: Blocks: Ajax
Versions: 2.1.8
Reporter: Fabrizio Sitzia
Priority: Minor
Attachments: empty_textarea_ie.txt
Empty textareas in a repeater are displayed incorrectly by Internet
Explorer after a round-trip to the server (for example after
adding/deleting a row, or when a validation error occurs!)
Instead of being empty, the textareas display a garbled mix of text and
html-tags occurring in the html document. Submission of the form usually
won't work afterwards...
(See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Updated: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Guillaume Déflache (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=all ]
Guillaume Déflache updated COCOON-1732:
---------------------------------------
Attachment: insertion.js.patch
This patch applies to src/java/org/apache/cocoon/ajax/resources/js/insertion.js in AJAX block.
It is simply the (trivial) adaptation of the previous 2.1.8 patch to 2.1.9.
It was tested and works on 2.1.9.
It is untested on current CVS maintainance and trunk branches.
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Guillaume Déflache (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=comments#action_12436590 ]
Guillaume Déflache commented on COCOON-1732:
--------------------------------------------
That's OK, the file taken from the trunk also works when put in Cocoon 2.1.9.
For the record both trunk version and mine works, the only difference is that in my version "<texarea/>"'s are replaced before "script" elements are removed from the HTML text, instead of after in Cocoon trunk version.
Is the fix now also on the 2.1.X branch?
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Updated: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=all ]
Antonio Gallardo updated COCOON-1732:
-------------------------------------
Thanks for the patch. However I found there was already applied a patch in the trunk:
http://svn.apache.org/viewvc?view=rev&revision=406636
Would you kindly review if the applied patch works for you?
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Guillaume Déflache (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=comments#action_12425177 ]
Guillaume Déflache commented on COCOON-1732:
--------------------------------------------
I stumbled upon the same bug recently. Is there a particular reason (other than lack of time) why this patch is not commited yet?
Before finding this bug I wrote another solution at the CForms level that basically modifies the stock 'textarea' styling so that textareas are never empty. Would it be a better solution? If so, I can provide a patch. Else I will happily apply the existing patch as is, hoping it will also be in the next released version.
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Guillaume Déflache (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=comments#action_12425517 ]
Guillaume Déflache commented on COCOON-1732:
--------------------------------------------
Sorry, I had not noticed that... Guess that (unless anybody cares to fix it on the AJAX level) I will post a patch on CF styling here then.
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Closed: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=all ]
Antonio Gallardo closed COCOON-1732.
------------------------------------
Fix Version/s: 2.2-dev (Current SVN)
2.1.10-dev (current SVN)
Resolution: Fixed
I am closing, because the patch is already on the repository. Feel free to reopen the issue if needed.
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Franchet Nicolas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=comments#action_12441382 ]
Franchet Nicolas commented on COCOON-1732:
------------------------------------------
The patch works fine for textareas, but the problem can occur with other html element. IE seems to not understand the tags with no content.
instead of :
var tmatch = new RegExp('(<textarea.*?)\/>', 'img');
text = text.replace(tmatch, "$1></textarea>");
we'd better do :
var tmatch = new RegExp('<([A-Za-z]*)(.*?)\/>', 'img');
text = text.replace(tmatch, "<$1 $2></$1>");
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Updated: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Fabrizio Sitzia (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=all ]
Fabrizio Sitzia updated COCOON-1732:
------------------------------------
Attachment: ie_empty_textarea.gif
That's how the supposedly "empty" textarea looks like on IE, after adding one row...
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Type: Bug
> Components: Blocks: Ajax
> Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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
[jira] Updated: (COCOON-1732) Ajax and IE empty textarea bugfix
Posted by "Antonio Gallardo (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/COCOON-1732?page=all ]
Antonio Gallardo updated COCOON-1732:
-------------------------------------
The ajax implementation shipped in cocoon 2.1.8 was dropped in favor of dojo [1] in cocon 2.1.9. Since there is no file called cocoon-ajax.jsin the trunk, we cannot apply the patch. :-(
[1] http://dojotoolkit.org/
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
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