You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alex Grant (JIRA)" <ji...@apache.org> on 2010/01/06 04:43:54 UTC
[jira] Created: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
----------------------------------------------------------------
Key: WICKET-2663
URL: https://issues.apache.org/jira/browse/WICKET-2663
Project: Wicket
Issue Type: Bug
Affects Versions: 1.4.5
Reporter: Alex Grant
I have a wicket page, with a URL several levels deep that contains
* An initially hidden file upload field (so that multipart is used)
* A link to open an ajax modal popup
* An initially empty table
I am also using UploadWebRequest to allow the upload progress bar to work.
When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: Response parsed. Now invoking steps...
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-2663:
------------------------------------
Attachment: WICKET-2663-problem2.patch
Fix the second problem in this ticket: the URLs to resources (wicket-ajax.js, ...) are wrong, they don't have the "relativePathPrefixToWicketHandler" because org.apache.wicket.extensions.ajax.markup.html.form.upload.MultipartRequest has no the original RequestParameters.
Now org.apache.wicket.extensions.ajax.markup.html.form.upload.MultipartRequest behaves like org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, WICKET-2663.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796978#action_12796978 ]
Alex Grant commented on WICKET-2663:
------------------------------------
Attached sample eclipse project containing an application that demonstrates this problem.
Project once running can be accessed at
http://localhost:8080/wicket-modal-dialog/app
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: wicket-modal-dialog-add-link-sample-app-compact.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804255#action_12804255 ]
Martin Grigorov commented on WICKET-2663:
-----------------------------------------
I removed the first patch since it seems the problem was caused by the broken urls to resources files. With fixed org.apache.wicket.extensions.ajax.markup.html.form.upload.MultipartRequest Google Chrome now behaves like Firefox (everything works).
Please test on Internet Explorer.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Grant updated WICKET-2663:
-------------------------------
Attachment: (was: wicket-modal-dialog-add-link-sample-app-compact.zip)
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804936#action_12804936 ]
Martin Grigorov commented on WICKET-2663:
-----------------------------------------
Weird. I'm testing on Chrome for Linux (ver. 4.0.302.2 dev) and the problem disappeared after fixing this.
Try with this patch additionally to the attached one:
Index: src/main/java/org/apache/wicket/ajax/wicket-ajax.js
===================================================================
--- src/main/java/org/apache/wicket/ajax/wicket-ajax.js (revision 902181)
+++ src/main/java/org/apache/wicket/ajax/wicket-ajax.js (working copy)
@@ -1222,7 +1222,7 @@
window.setTimeout(notify,2);
}.bind(this));
- if (Wicket.Browser.isKHTML()) {
+ if (Wicket.Browser.isKHTML() || Wicket.Browser.isSafari()) {
// there's a nasty bug in KHTML that makes the browser crash
// when the methods are delayed. Therefore we have to fire it
// ASAP. The javascripts that would cause dependency problems are
This was the first patch that I removed.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Grant updated WICKET-2663:
-------------------------------
Attachment: wicket-modal-dialog-add-link-sample-app-compact.zip
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: wicket-modal-dialog-add-link-sample-app-compact.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Grant updated WICKET-2663:
-------------------------------
Attachment: wicket-modal-dialog-add-link-sample-app.zip
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-2663:
------------------------------------
Attachment: WICKET-2663.patch
It seems Google Chrome has the same problems as Konqueror (both KHTML)
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804805#action_12804805 ]
Alex Grant commented on WICKET-2663:
------------------------------------
I have applied your patch to wicket-1.4.5 (I also tried the trunk but couldn't make it compile).
Firefox 3.5.6 and IE8 both work.
Chrome 3.0 is still broken, with the error mentioned at the bottom of the Description above:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: Response parsed. Now invoking steps...
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: refocus last focused component not needed/allowed
This error is particularly bizarre as if I put a web proxy in (to capture the invalid response) the problem goes away.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805231#action_12805231 ]
Alex Grant commented on WICKET-2663:
------------------------------------
I have applied your patch, cleared my cache, upgraded to Chrome for Windows v4.0.249.78, and the problem still occurs.
Thank you for trying, though.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2663) Modal Dialog cannot add AjaxLink
when UploadWebRequest is in use
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2663.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4.7
Assignee: Igor Vaynberg
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Assignee: Igor Vaynberg
> Fix For: 1.4.7
>
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2663) Modal Dialog cannot add AjaxLink when
UploadWebRequest is in use
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-2663:
------------------------------------
Attachment: (was: WICKET-2663.patch)
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (WICKET-2663) Modal Dialog cannot add
AjaxLink when UploadWebRequest is in use
Posted by "Alex Grant (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804805#action_12804805 ]
Alex Grant edited comment on WICKET-2663 at 1/26/10 12:09 AM:
--------------------------------------------------------------
I have applied your patch (WICKET-2663-problem2.patch) to wicket-1.4.5 (I also tried the trunk but couldn't make it compile).
Firefox 3.5.6 and IE8 both work.
Chrome 3.0 is still broken, with the error mentioned at the bottom of the Description above:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: Response parsed. Now invoking steps...
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: refocus last focused component not needed/allowed
This error is particularly bizarre as if I put a web proxy in (to capture the invalid response) the problem goes away.
was (Author: alexgrant):
I have applied your patch to wicket-1.4.5 (I also tried the trunk but couldn't make it compile).
Firefox 3.5.6 and IE8 both work.
Chrome 3.0 is still broken, with the error mentioned at the bottom of the Description above:
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: Response parsed. Now invoking steps...
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: refocus last focused component not needed/allowed
This error is particularly bizarre as if I put a web proxy in (to capture the invalid response) the problem goes away.
> Modal Dialog cannot add AjaxLink when UploadWebRequest is in use
> ----------------------------------------------------------------
>
> Key: WICKET-2663
> URL: https://issues.apache.org/jira/browse/WICKET-2663
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4.5
> Reporter: Alex Grant
> Attachments: WICKET-2663-problem2.patch, wicket-modal-dialog-add-link-sample-app.zip
>
>
> I have a wicket page, with a URL several levels deep that contains
> * An initially hidden file upload field (so that multipart is used)
> * A link to open an ajax modal popup
> * An initially empty table
> I am also using UploadWebRequest to allow the upload progress bar to work.
> When I open the popup, type some data and close the popup, it tries to re-render the table with an extra row, which includes an ajax link to re-show the popup to allow editing. This fails.
> At least part of the problem is that the ajax response contains an invalid link to wicket-ajax.js. It should start with "../../", but that is lost when using UploadWebRequest, as newMultipartWebRequest creates a child request that has no interface parameter and therefore a urlDepth of -1.
> Changing the application to use the standard ServletWebRequest solves the problem for Firefox and IE8, but Chrome still fails. I have been unable to determine the cause of this. The Wicket Ajax Debug Log shows this:
> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: Response parsed. Now invoking steps...
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: SyntaxError: Unexpected end of input
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> INFO: refocus last focused component not needed/allowed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.