Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-25 Thread Juergen Donnerstag
fixed. Panel children can now be re-rendered (AJAX) as well. Juergen On 12/23/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Actually rerendering a Panel does work (junit tests are successful), but a component within a panel does not. Juergen On 12/23/05, Marco van de Haar [EMAIL

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-23 Thread Marco van de Haar
I might be a bit late, but I built a few components using your code and I have to say it works pretty good! The only problems I encountered during testing were indeed with Panels. Not only with rerendering Panels, but also with rerendering components within Panels. When our demo app is done we

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-23 Thread Juergen Donnerstag
Actually rerendering a Panel does work (junit tests are successful), but a component within a panel does not. Juergen On 12/23/05, Marco van de Haar [EMAIL PROTECTED] wrote: I might be a bit late, but I built a few components using your code and I have to say it works pretty good! The only

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-20 Thread Ari Suutari
Hi, I extended the junit with such a case. And yes, it fails as well. If you can find time to look at this before 1.2 it would be great. If could try to help too, but so far it looks like I'll have to learn more about wicket internals before. Ari S. On 12/19/05, Ari

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Ari Suutari
Hi, I can now report that things mostly work. But there are still some cases where the page renders ok, but some components don't when trying to render just a component. My application is already rather complex (I'm still digging deeper in this), but it looks like that there are cases where

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Ari Suutari
Ok, I have now reproduced the problem with simple page. If I have a page, which has a panel (with it's own html template) which contains some tags it is not possible to render those panel's tags via ajax handler from phonebook example. The difference with full page render and partial render

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Juergen Donnerstag
It might that Panel is the problem, but I'm not sure you explanation is right. Panel.java protected void onRender() { // Render the tag that included this html compoment final MarkupStream markupStream = findMarkupStream(); validateMarkupStream(markupStream);

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Ari Suutari
Hi, It might that Panel is the problem, but I'm not sure you explanation is right. Well, I'm almost sure that my explanation is not right :-) The test code is available at http://www.suutari.iki.fi/tmp/simpletest.zip (it shows a simple page, with a link. Click the link to launch the

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Ari Suutari
Hi again, SimplePageTest contains a test to rerender the Panel, but not a component inside a Panel, correct? Is that the test you added? Sorry, I missed this, but yes, this is specifically the case that seems to fail. My code is not a junit test case, it is more like a very much

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-19 Thread Juergen Donnerstag
I extended the junit with such a case. And yes, it fails as well. Juergen On 12/19/05, Ari Suutari [EMAIL PROTECTED] wrote: Hi again, SimplePageTest contains a test to rerender the Panel, but not a component inside a Panel, correct? Is that the test you added? Sorry, I missed this,

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Hi, okay I'm kinda lost and I think i'm either doing somehting fundamentally wrong or missing something really stupid.. Me too. I tried to study the junit test that (re)renders a component, but cannot get it working with browser. What I tried was to create AjaxHandler to

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Got it. Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, December 16, 2005 1:35 PM Subject: Re: [Wicket-user] How to render part of page (with ajax maybe) Try

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Ari Suutari
Ok, (Sorry for horrible formatting of this e-mail) I took code from AjaxHandler.java to my TestAjaxHandler, so it looks like this: import wicket.*; import wicket.protocol.http.*; import wicket.protocol.http.servlet.ServletWebRequest; import wicket.response.StringResponse; import

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-16 Thread Juergen Donnerstag
That that is true as well. You can not render a component inside a view, because these component by default get removed onEndRequest for optimization reason. I think you can avoid it by calling listView.setOptimized() Juergen On 12/16/05, Ari Suutari [EMAIL PROTECTED] wrote: Hi, I did

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-15 Thread Marco van de Haar
okay I'm kinda lost and I think i'm either doing somehting fundamentally wrong or missing something really stupid.. this is the error I get when i call someRequestCycle.request(myLabel) I studied the simplepageTest rerender calls, I created a ComponentRequestTarget, set the target,

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-15 Thread Juergen Donnerstag
Could you create a junit test and provide the source to us. I'll look into it. Juergen On 12/15/05, Marco van de Haar [EMAIL PROTECTED] wrote: okay I'm kinda lost and I think i'm either doing somehting fundamentally wrong or missing something really stupid.. this is the error I get when

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-02 Thread Marco van de Haar
Is there any concrete (simple) code example for rerendering a part of a page? I tried myRequestCycle.request(myComponent), but all I got were huge errors in my console. Ari Suutari wrote: Hi, Project wicket-stuff contains already some AJAX components (scriptaculous and dojo based ones).

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-02 Thread Johan Compagner
that should work, what kind of errors do you getsee the unit test: SimplePageTestand then the rerender(component) calls.johanOn 12/2/05, Marco van de Haar [EMAIL PROTECTED] wrote: Is there any concrete (simple) code example for rerendering a part of apage? I tried

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-02 Thread Eelco Hillenius
you should use requestcycle.setResponseTarget with ComponentRequestTarget Eelco On 12/2/05, Marco van de Haar [EMAIL PROTECTED] wrote: Is there any concrete (simple) code example for rerendering a part of a page? I tried myRequestCycle.request(myComponent), but all I got were huge errors in

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-02 Thread Johan Compagner
that is what RequestCycle.request(component) does (and how the SimplePageTest works)On 12/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:you should use requestcycle.setResponseTarget with ComponentRequestTargetEelcoOn 12/2/05, Marco van de Haar [EMAIL PROTECTED] wrote: Is there any concrete

[Wicket-user] How to render part of page (with ajax maybe)

2005-11-25 Thread Ari Suutari
Hi, We are developing applications, which have kind of a content 'push' system, ie. data arrives from factory automation and we visualize it on-line. Our traditional approach to this has been to send the data to browser (via applet and additional tcp socket) and use javascript to render it.

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-11-25 Thread Juergen Donnerstag
Project wicket-stuff contains already some AJAX components (scriptaculous and dojo based ones). Wicket core contain a AjaxHandler and we provide a yet experimental component level re-render (requestcycle.render(component). Though the latter one is no yet accessible through a URL (that piece of

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-11-25 Thread Ari Suutari
Hi, Project wicket-stuff contains already some AJAX components (scriptaculous and dojo based ones). Wicket core contain a AjaxHandler and we provide a yet experimental component level re-render (requestcycle.render(component). Though the latter one is no yet accessible through a URL (that piece