You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Mihai Toma (JIRA)" <ji...@apache.org> on 2012/05/07 15:28:51 UTC
[jira] [Created] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Mihai Toma created WICKET-4538:
----------------------------------
Summary: refresh page from an AjaxLink or OnChangeAjaxBehavior
Key: WICKET-4538
URL: https://issues.apache.org/jira/browse/WICKET-4538
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.5.5
Environment: Windows
Reporter: Mihai Toma
Hi,
I have an OnChangeAjaxBehavior on a DropDownChoice component.
After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
themeComp.add(new OnChangeAjaxBehavior() {
private static final long serialVersionUID = -1973825163343103968L;
@Override
protected void onUpdate(final AjaxRequestTarget arg0) {
setAValueInSession();
setResponse(currentPage.getClass(), currentPage.getPageParameters());
}
});
The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Posted by "Mihai Toma (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Toma updated WICKET-4538:
-------------------------------
Attachment: TestPage.zip
> refresh page from an AjaxLink or OnChangeAjaxBehavior
> -----------------------------------------------------
>
> Key: WICKET-4538
> URL: https://issues.apache.org/jira/browse/WICKET-4538
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: Windows
> Reporter: Mihai Toma
> Attachments: TestPage.zip
>
>
> Hi,
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
> After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
> themeComp.add(new OnChangeAjaxBehavior() {
> private static final long serialVersionUID = -1973825163343103968L;
>
> @Override
> protected void onUpdate(final AjaxRequestTarget arg0) {
>
> setAValueInSession();
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
> }
> });
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
>
> I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
>
> Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4538.
-------------------------------------
Resolution: Invalid
Fix your TestPage.html to be a proper .html, i.e. add <html> and <body>
> refresh page from an AjaxLink or OnChangeAjaxBehavior
> -----------------------------------------------------
>
> Key: WICKET-4538
> URL: https://issues.apache.org/jira/browse/WICKET-4538
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: Windows
> Reporter: Mihai Toma
> Attachments: TestPage.zip
>
>
> Hi,
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
> After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
> themeComp.add(new OnChangeAjaxBehavior() {
> private static final long serialVersionUID = -1973825163343103968L;
>
> @Override
> protected void onUpdate(final AjaxRequestTarget arg0) {
>
> setAValueInSession();
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
> }
> });
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
>
> I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
>
> Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
> I want to mention that in wicket 1.4.x this works.
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Posted by "Mihai Toma (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269627#comment-13269627 ]
Mihai Toma commented on WICKET-4538:
------------------------------------
I store in cookie the application css theme name. That's why when i change that value i want to reload the entire page with the new css theme.
Mihai
> refresh page from an AjaxLink or OnChangeAjaxBehavior
> -----------------------------------------------------
>
> Key: WICKET-4538
> URL: https://issues.apache.org/jira/browse/WICKET-4538
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: Windows
> Reporter: Mihai Toma
> Attachments: TestPage.zip
>
>
> Hi,
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
> After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
> themeComp.add(new OnChangeAjaxBehavior() {
> private static final long serialVersionUID = -1973825163343103968L;
>
> @Override
> protected void onUpdate(final AjaxRequestTarget arg0) {
>
> setAValueInSession();
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
> }
> });
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
>
> I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
>
> Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
> I want to mention that in wicket 1.4.x this works.
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Posted by "Mihai Toma (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Toma updated WICKET-4538:
-------------------------------
Description:
Hi,
I have an OnChangeAjaxBehavior on a DropDownChoice component.
After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
themeComp.add(new OnChangeAjaxBehavior() {
private static final long serialVersionUID = -1973825163343103968L;
@Override
protected void onUpdate(final AjaxRequestTarget arg0) {
setAValueInSession();
setResponse(currentPage.getClass(), currentPage.getPageParameters());
}
});
The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
I want to mention that in wicket 1.4.x this works.
Thanks
was:
Hi,
I have an OnChangeAjaxBehavior on a DropDownChoice component.
After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
themeComp.add(new OnChangeAjaxBehavior() {
private static final long serialVersionUID = -1973825163343103968L;
@Override
protected void onUpdate(final AjaxRequestTarget arg0) {
setAValueInSession();
setResponse(currentPage.getClass(), currentPage.getPageParameters());
}
});
The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
> refresh page from an AjaxLink or OnChangeAjaxBehavior
> -----------------------------------------------------
>
> Key: WICKET-4538
> URL: https://issues.apache.org/jira/browse/WICKET-4538
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: Windows
> Reporter: Mihai Toma
> Attachments: TestPage.zip
>
>
> Hi,
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
> After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
> themeComp.add(new OnChangeAjaxBehavior() {
> private static final long serialVersionUID = -1973825163343103968L;
>
> @Override
> protected void onUpdate(final AjaxRequestTarget arg0) {
>
> setAValueInSession();
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
> }
> });
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
>
> I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
>
> Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
> I want to mention that in wicket 1.4.x this works.
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-4538) refresh page from an AjaxLink or
OnChangeAjaxBehavior
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269613#comment-13269613 ]
Martin Grigorov commented on WICKET-4538:
-----------------------------------------
Please create a proper quickstart. See http://wicket.apache.org/start/quickstart.html
This will make it easier for us to setup the app and debug it.
Are the cookies important for the test case ? You don't mention them in the description...
> refresh page from an AjaxLink or OnChangeAjaxBehavior
> -----------------------------------------------------
>
> Key: WICKET-4538
> URL: https://issues.apache.org/jira/browse/WICKET-4538
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.5
> Environment: Windows
> Reporter: Mihai Toma
> Attachments: TestPage.zip
>
>
> Hi,
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
> After I change a value in that drop down I want to reload the page using setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
> themeComp.add(new OnChangeAjaxBehavior() {
> private static final long serialVersionUID = -1973825163343103968L;
>
> @Override
> protected void onUpdate(final AjaxRequestTarget arg0) {
>
> setAValueInSession();
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
> }
> });
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root <ajax-response> element". I receive the content from ajax but it is not between <ajax-response> element.
>
> I verify this problem on AjaxLink and the response is the same as from OnChangeAjaxBehavior.
>
> Do you have any idea how to reload the page from an AjaxLink or OnChangeAjaxBehavior ?
> I want to mention that in wicket 1.4.x this works.
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira