Hello all,

Currently i am using wicket 6.18 with liferay-portal-6.2-ce-ga2, 

Below is code written in TestPage.java

 AjaxButton testButton = new AjaxButton("testButton", form)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target,  Form<?> form)
      {
         setResponsePage(SecondPage.class, pageParams)
      }
    }

When testButton is added inside <form> then only it calls the onSubmit()
method else not.

and after adding it to <form> tag, its not working for setResponsePage()
call, and shows below error inside Ajax-debug-window.

ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Error:
Invalid XML: <!DOCTYPE html> <html class="aui ltr" dir="ltr" lang="en-US">
<head> <title>Home - Test</title> <meta content="initial-scale=1.0,
width=device-width" name="viewport" /> <meta content="text/html;
charset=UTF-8" http-equiv="content-type" /> <link
href="http://localhost:8150/test-theme/images/favicon.ico"; rel="Shortcut
Icon" />... 




Please revert if anyone knows this issue.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setResponsePage-with-AjaxButton-not-working-correctly-tp4668881.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to