Re: CheckGroup and AjaxPagination

2010-02-22 Thread ckuehne
I added a ajax event handler to the checks in my pageable list view like this add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget target) { List list = (List)

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-02-05 Thread ckuehne
I created a quickstart project to reproduce the error. Curiously, the problem does not show up in the automated test case. It does show up however if you run jetty and then click TabbedPanels--intercept--Tabbed Panel. The difference between the test case and the browser variant seems to be that

Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
I have the following use case: I go from Page A to Page B passing an instance of A as return page to B. In B I click a link which brings me back to the (cached(?)) instance of A. In the onBeforeRender-method of a child component of A I want to redirect if some condition is

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
Pills wrote: iirc, onBeforeRender must always call super.onBeforeRender. so put super.onBeforeRender on the first line. Thanks for the quick reply. Unfortunately the super.onBeforeRender call does not solve the issue. -- View this message in context:

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
://issues.apache.org/jira/browse/WICKET-1478 but I'm sure you don't mean that behaviour as you certainly searched the list and the jira before posting, am I right? ;-) regards Michael ckuehne wrote: I have the following use case: I go from Page A to Page B passing an instance of A as return

Bookmarkable Page with AjaxTabbedPanel

2009-01-23 Thread ckuehne
My problem is as follows: I have a bookmarkable page with an AjaxTabbedPanel as a component. If one of the page parameters contains a forward slash / I get a weird behavior. Firefox generates the following URL a)

Tree component looses page

2008-08-19 Thread ckuehne
I'm doing drag and drop operations with an implementation of org.apache.wicket.markup.html.tree.BaseTree. For the drop event I call ... dropNode.add(dragNode); tree.repaint(target); ... However I get an IllegalStateException when processing the ajax request (in detach(RequestCycle)) because

Re: Ajax Detach Question

2008-02-07 Thread ckuehne
no difference as long as you don't rerender the component during an ajax request. -Matej On Jan 19, 2008 9:51 PM, ckuehne [EMAIL PROTECTED] wrote: I don't want it to be cached across ALL requests. If the site is reloaded I want the model detached and reloaded as well. But not so between ajax

Autocomplete Ajax AddReplace IE Issue

2008-01-22 Thread ckuehne
If I put the autocomplete field on a panel that is added and replaced dynamically via ajax it does not work in Internet Explorer (tested with ver. 7) anymore. In Firefox everything is alright. In IE also if the ac-field is visible when the page is loaded. But when I add it later on dynamically

Ajax Detach Question

2008-01-19 Thread ckuehne
Just out of curiosity: I noticed that when I add a component to an AjaxRequestTarget a detach of the component's parent page (component.getPage()) is triggered. Is there a way around this behavior? I have a listview on that page with a LoadableDetachableModel and I'd rather like that to be

Re: Ajax Detach Question

2008-01-19 Thread ckuehne
when needed, if you want it to be cached across request you need to implement your own model. -Matej On Jan 19, 2008 6:28 PM, ckuehne [EMAIL PROTECTED] wrote: Just out of curiosity: I noticed that when I add a component to an AjaxRequestTarget a detach of the component's parent page

Re: Ajax Detach Question

2008-01-19 Thread ckuehne
. -Matej On Jan 19, 2008 9:51 PM, ckuehne [EMAIL PROTECTED] wrote: I don't want it to be cached across ALL requests. If the site is reloaded I want the model detached and reloaded as well. But not so between ajax request that only include some components of the site. Matej Knopp-2 wrote

Autocomplete setResponsePage in ajax request

2008-01-17 Thread ckuehne
I call setRespongePage() in the ajax onchange handler of the autocomplete field. The behavior seems buggy in the case when the user did not select a choice but submitted the input of the field with ENTER. If there are no choices for the entered text then everything works fine. But if there are

Re: Markup of type 'html' for component not found

2008-01-15 Thread ckuehne
Thanks, that was very helpful. Conny Eelco Hillenius wrote: On Jan 14, 2008 3:49 PM, ckuehne [EMAIL PROTECTED] wrote: Hi, I don't quite know what to do with the following debug message. The AddPanel.html is definetely where it should be (wicket bench finds it as well). I am also

Re: Autocomplete Textfield gets submitted twice on mouse click

2008-01-13 Thread ckuehne
the id's of the autocomplete selections the workaround was straightforward: I hooked the onchange event to the hidden field and made the autocomplete javascript fire an onchange on the hidden field. ckuehne wrote: In the use case from the ajax autocomplete example the field gets submitted twice when

Autocomplete Textfield gets submitted twice on mouse click

2008-01-12 Thread ckuehne
In the use case from the ajax autocomplete example the field gets submitted when the selection is made with the mouse. Is there a quick way to fix this? Conny -- View this message in context:

Ajax AutoCompleteTextField with hidden id-field

2007-11-27 Thread ckuehne
Hi, I'd like my AutoCompleteTextField to behave as follows - I want the names of my list items displayed (item.name) - when I select one I want the item.name displayed in the AC-TextField So far, so good. But ... - internally I want the item.id put into the request in order to select the