Re: Force modal page to reload on Ajax event

2011-06-20 Thread Martin Grigorov
Don't use AjaxFormComponentUpdatingBehavior but use DropDownChoice.wantOnSelectionChangedNotifications() instead. On Mon, Jun 20, 2011 at 8:28 AM, Alec Swan alecs...@gmail.com wrote: Hello, I have a modal window which displays a page (using ModalWindow.PageCreator()) with a DropDownChoice

Replacement of a markup container with nested components by a panel / fragment

2011-06-20 Thread pasto
Hi, I guess, this is the same question as the 'WICKET-1190' issue. Extending AjaxLazyLoadPanel and overriding the xhtml markup file and the getLoadingComponent method causes, as soon as there is a child component in the 'content' component, Close tag not found for tag exception. wicket:panel

Re: Force modal page to reload on Ajax event

2011-06-20 Thread Alec Swan
But how do I refresh the page in the modal window by overriding DropDownChoice.wantOnSelectionChangedNotifications()? Where do I get the handle to AjaxRequestTarget? On Mon, Jun 20, 2011 at 12:25 AM, Martin Grigorov mgrigo...@apache.org wrote: Don't use AjaxFormComponentUpdatingBehavior but use

Re: Force modal page to reload on Ajax event

2011-06-20 Thread Martin Grigorov
read the javadoc of this method. try it and come back here with further questions using Ajax to reload the whole page is non-sense On Mon, Jun 20, 2011 at 10:25 AM, Alec Swan alecs...@gmail.com wrote: But how do I refresh the page in the modal window by overriding

Internal error parsing wicket:interface

2011-06-20 Thread Martin Makundi
Hi! This: http://web.archiveorange.com/archive/v/yH01cximWIUPZlAGlPPF It appears to be a YUI bug. YUILoader probably mistakes bookmarkable url slashes /login/wicket:interface/... as real paths. For some reason it tries to fetch resources from same url appending

Re: Internal error parsing wicket:interface

2011-06-20 Thread Martin Makundi
Hi! Actually to make it work (indestad of just suppressing the error on serverside) do this: protected void onBeginRequest() { { final String interfaceParameter = getRequest().getPath(); if ((!Utils.isEmpty(interfaceParameter))

Re: Internal error parsing wicket:interface

2011-06-20 Thread Martin Grigorov
Hi, I'm not YUI user but I think YUILoader has something like baseUrl, so configuring it will prevent errors like this, i.e. it will not confuse with indexed params as part of the path. The code below should probably be in HttpServletRequestWrapper. This way it will work in Tomcat too. On Mon,

Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Hi, I've been trying for some time now to localize a somewhat random stackoverflow error. I've done an overhaul of the code and am now convinced we no longer have any reference to the session object but we still get StackOverflowErrors during page serialization. This has probably been covered

Re: Locating StackOverflowErrors

2011-06-20 Thread Martin Grigorov
Hi, Wicket uses Java Serialization to do this. So the question is: What are the do not's of Java Serialization ? In Wicket 1.5 this is plugable so you can use something else than Java Serialization (still the default impl). Schema-less serialization frameworks like Kryo and XStream is quite

Re: Internal error parsing wicket:interface

2011-06-20 Thread Martin Makundi
Hi! 1. Again: without this row or you get double effect: ((org.mortbay.jetty.Request) ((WebRequest) getRequest()).getHttpServletRequest()).setServletPath(contextPath); 2011/6/20 Martin Grigorov mgrigo...@apache.org: 2. I'm not YUI user but I think YUILoader has something like baseUrl, so

Re: Locating StackOverflowErrors

2011-06-20 Thread Serban.Balamaci
Hello, Are you perhaps using your WebSession in a PropertyModel? like new PropertyModel(getSession(), username) for example? This way the web session might get serialized. -- View this message in context:

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
No, we should not have any references to the session in models. Thanks Robert On 06/20/2011 11:43 AM, Serban.Balamaci wrote: Hello, Are you perhaps using your WebSession in a PropertyModel? like new PropertyModel(getSession(), username) for example? This way the web session might get

Re: Locating StackOverflowErrors

2011-06-20 Thread Martijn Dashorst
Note that you can increase the max stack size, which sometimes too low for given component structures. We run with the default for 64 bit machines on our production boxes (-Xss1024k), but that is specific to and sufficient for our application. Your application might just push that boundary. You

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Besides me not being able to figure where we have done the wrong thing I don't have a problem with the serialization in Wicket 1.4 :) Regards Robert On 06/20/2011 11:40 AM, Martin Grigorov wrote: Hi, Wicket uses Java Serialization to do this. So the question is: What are the do not's of Java

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Interesting idea, but I'm pretty sure we get a cyclic reference somewhere. (I'm basing that on the stacktrace below) which has been somewhat edited for brevity: [org.apache.wicket.Session] - Exception when detaching/serializing page java.lang.StackOverflowError ... at

Re: Forms across multiple panels

2011-06-20 Thread lucast
I know this thread hasn't been active for a while but I thought I'd ask. How can one perform form field validation if the form fields are inside the panels contained in the forms? The form itself will not now what fields are contained in the panels. Thanks in advance, Lucas -- View this message

RE: Forms across multiple panels

2011-06-20 Thread Wilhelmsen Tor Iver
How can one perform form field validation if the form fields are inside the panels contained in the forms? Extend FormComponentPanel instead of Panel. That deals with the nesting. - Tor Iver - To unsubscribe, e-mail:

Re: Replacement of a markup container with nested components by a panel / fragment

2011-06-20 Thread Igor Vaynberg
if you have div wicket:id=fooa wicket:id=bar//div and you attach a panel to foo who is going to render bar? -igor On Sun, Jun 19, 2011 at 6:42 AM, pasto peter.pastr...@gmail.com wrote: Hi, I guess, this is the same question as the 'WICKET-1190' issue. Extending AjaxLazyLoadPanel and

Re: Replacement of a markup container with nested components by a panel / fragment

2011-06-20 Thread pasto
Thank you, for your replay. I understand your point, but is it really necessary to have it rendered? What I was doing, was a component replace. I just had the feeling, that the important part, is to have a strict binding between components and markup files and not to restrict the developer to

Re: Replacement of a markup container with nested components by a panel / fragment

2011-06-20 Thread Igor Vaynberg
wicket traverses the hierarchy and renders all the tags. if you have a tag with wicket:id in markup you must have it in java. -igor On Mon, Jun 20, 2011 at 8:10 AM, pasto peter.pastr...@gmail.com wrote: Thank you, for your replay. I understand your point, but is it really necessary to have it

Re: component rendering order

2011-06-20 Thread Nelson Segura
On Thu, Jun 16, 2011 at 10:23 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: give your component the dataprovider that the datatable has and use that to calc visibility. -igor This does not work for me because: a) my pages might have multiple providers, and each one of them might change

Re: Preserving user input on ajax changes

2011-06-20 Thread Nelson Segura
I forgot to reply to this. Your observations are absolutely correct. I realized that I was using the ListView incorrectly, and recreating it on each refresh. No wonder I was losing my values. Now it works like a charm. Thanks. -Nelson On Mon, Jun 6, 2011 at 1:29 PM, Pedro Santos

Re: component rendering order

2011-06-20 Thread Igor Vaynberg
components are rendered in the same order they are in markup. how does your component know now if the table is empty or not? -igor On Mon, Jun 20, 2011 at 9:37 AM, Nelson Segura nsegu...@gmail.com wrote: On Thu, Jun 16, 2011 at 10:23 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: give your

Debugging page expired exception errors

2011-06-20 Thread Brown, Berlin [GCG-PFS]
I get two pageexpiredexception errors and I can't recreate the problem. With an error like this, what would cause this type of page expired exception error? Do you think that the page actually expired? Or is there something wrong with writing or reading from the page map file on disk.

models and autoCompleteTextField

2011-06-20 Thread wmike1...@gmail.com
I'm missing some fundamental concept here I think. I've got an AutoCompleteTextField whose model I put as the same kind as in the example found here:

Re: models and autoCompleteTextField

2011-06-20 Thread Sven Meier
what in the wicket framework causes setObject to be called on a component's model so that it changes? Normally each form component updates its model on form submit. Note that in the example a |AjaxFormSubmitBehavior||onchange ||is added to the field, thus the model is update|d on each change.

Re: models and autoCompleteTextField

2011-06-20 Thread wmike1...@gmail.com
Thanks, Is it bad practice to manually call the model's setObject method if I want to change it on a non-form-submit action? Bottom line is I don't need this autoCompleteTextField to be in a form. -- View this message in context:

Re: models and autoCompleteTextField

2011-06-20 Thread Sven Meier
See AjaxFormComponentUpdatingBehavior. Sven -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/models-and-autoCompleteTextField-tp3612033p3612245.html Sent from the Users forum mailing list archive at Nabble.com.

streaming files with wicket

2011-06-20 Thread Douglas Ferguson
I built a page with markup type = xml and set the content type and disposition so that the file will download. This is great except when there is a fatal exception thrown, my error page is getting written to the downloaded file. Any ideas how make the browser load the error page? Only thought

Re: streaming files with wicket

2011-06-20 Thread Igor Vaynberg
i dont think there is a way once you start streaming with an attachment header... you can try rendering the page into memory and writing that out instead - so then you at least know your page rendered ok. -igor On Mon, Jun 20, 2011 at 1:50 PM, Douglas Ferguson doug...@douglasferguson.us wrote: