Re: [Wicket-user] Exception on WebResponse Outputstream

2007-01-23 Thread Igor Vaynberg
or even better dont use a page at all, use a shared resource -igor On 1/23/07, Daniel Nüst <[EMAIL PROTECTED]> wrote: Thank you very much, Johan! I wrote my own XMLRequestTarget around your code and now it works. Daniel Johan Compagner schrieb: > you can't just write to something in the co

Re: [Wicket-user] Exception on WebResponse Outputstream

2007-01-23 Thread Daniel Nüst
Hi Igor! Igor Vaynberg schrieb: > looks like you are trying to output your xml too late in the game > (wicket has already written something to the request). I would rather guess it seems the other way around (and I will try to explain the situation a bit better): * If I use res.write( xmlout.out

Re: [Wicket-user] Exception on WebResponse Outputstream

2007-01-23 Thread Daniel Nüst
Thank you very much, Johan! I wrote my own XMLRequestTarget around your code and now it works. Daniel Johan Compagner schrieb: > you can't just write to something in the constructor (thats in the > event/request phase) > > make a RequestTarget that outputs that what you want and set that > requ

Re: [Wicket-user] Exception on WebResponse Outputstream

2007-01-23 Thread Johan Compagner
you can't just write to something in the constructor (thats in the event/request phase) make a RequestTarget that outputs that what you want and set that request target as the response request target on the request cycle RequestCycle.get().setRequestTarget(new IRequestTarget() { void respond(R

Re: [Wicket-user] Exception on WebResponse Outputstream

2007-01-22 Thread Igor Vaynberg
looks like you are trying to output your xml too late in the game (wicket has already written something to the request). what triggers that code? also our wiki has an example of a wicket rss page -igor On 1/22/07, Daniel Nüst <[EMAIL PROTECTED]> wrote: Hi! I want to load an XML-file from a w

[Wicket-user] Exception on WebResponse Outputstream

2007-01-22 Thread Daniel Nüst
Hi! I want to load an XML-file from a wicket page concerning the html page parameters with javascript. The javascript part (load and parse xml) works fine and also the generated xml file is okay. I just always get an java.lang.IllegalStateException: getOutputStream() has already been called for