Perhaps this thread will help: http://apache-wicket.1842946.n4.nabble.com/Ajax-response-render-as-source-in-the-browser-tt3028722.html
-- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Mon, Jan 24, 2011 at 9:48 AM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote: > please attach a quickstart that reproduce it to a jira issue. > > -igor > > On Sun, Jan 23, 2011 at 10:40 PM, Jeffrey Schneller > <jeffrey.schnel...@envisa.com> wrote: > > Got an odd issue occurring where the Ajax Response xml is showing in the > > browser rather than modifying the DOM of the page as it usually does. > > The scenario is the following: > > > > > > > > My Login page is abstract and has an abstract method called > > onLoginSuccess. > > > > When the login is successful we call onLoginSuccess. > > > > > > > > > > > > Abstract Class called LoginLink which extends AjaxLink > > > > LoginLink has an abstract method called onSuccess() and > > onAlreadyLoggedIn() > > > > The Login page is constructed and has it's abstract method > > onLoginSuccess defined to call onSuccess() > > > > The onClick method of LoginLink does a setResponsePage to my Login page > > if not already logged in and calls onAlreadyLoggedIn() if the user is > > already logged into the site. > > > > > > > > I have a page called Page1 which contains a LoginLink. > > > > The onSuccess() method is defined to setResponsePage() to the page I > > ultimately need to go to say Page2. > > > > The onAlreadyLoggedIn() method is defined to setResponsePage() to the > > page I ultimately need to go to say Page2. > > > > > > > > On Page2, there are AjaxButtons to submit forms. If any button is > > clicked I get the AjaxResponse xml showing in the browser window. > > > > > > > > Any ideas on how to solve this? Is there another way of doing this > > interaction with built in wicket components. > > > > > > > > Thanks. > > > > > > > > Jeff > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >