Re: How to access the AJAX transport.responseXML
Martin, the application provides the web page administrator the ability to assign styles to a web page by user group. For example, the visbility of certain fields or tabs will be displayed on an as need basis. These administered styles are stored in a database table. When a page is to be loaded, the stored styles are fetched and streamed to the page as XML or JSON. The responseXML is acquired; in the onSuccess function, the XML or JSON is read and the Javascript on-the-fly applies the styles. Martijn Dashorst wrote: What is the usecase for needing to acces the responseXML coming from Wicket? Martijn -- View this message in context: http://www.nabble.com/How-to-access-the-AJAX-transport.responseXMLtp21206061p21218950.html Sent from the Wicket - User 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
Re: feedback message without a form
Have you tried without redirecting to the response page? miro wrote: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return; } getStgAuditProcessService().startProcess(assignProgramsDTO); setResponsePage(HomePage.class); setRedirect(true); } miro wrote: yes jWeekend wrote: Did you add a FeedbackPanel to your page? Regards - Cemal http://www.jWeekend.co.uk jWeekend miro wrote: adding message is simple but how to display this message , who is rendering the added message ?, in my case I am adding the message to the page , getPage().info(This is a test message ) , now what in html i have to do to display this message ? James Carman-3 wrote: Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message as a feedback message -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/feedback-message-without-a-form-tp21206285p21222096.html Sent from the Wicket - User 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
How to access the AJAX transport.responseXML
I need to access the XMLHttpRequest.responseXML from my javascript for a Wicket web page. I followed the code in the wicket-ajax.js, seen below. I assume this.loadedCallback is the onSuccess function, but how to access responseXML passed in the xmldoc variable, or have loadedCallback call my javascript function with the responseXML? if (typeof(window.XMLHttpRequest) != undefined typeof(DOMParser) != undefined) { var parser = new DOMParser(); xmldoc = parser.parseFromString(responseAsText, text/xml); } else if (window.ActiveXObject) { xmldoc = t.responseXML; } // invoke the loaded callback with an xml document this.loadedCallback(xmldoc); } Vance -- View this message in context: http://www.nabble.com/How-to-access-the-AJAX-transport.responseXML-tp21206061p21206061.html Sent from the Wicket - User 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