Problem with window name generated using AjaxNewWindowNotifyingBehavior in wicket 6.5.0

2013-05-10 Thread iamrakesh
Hi, I've a WicketPage implementation to which I've added AjaxNewWindowNotifyingBehavior, as shown below public class MyPage extends WicketPage { public MyPage() { add(new AjaxNewWindowNotifyingBehavior() { protected void onNewWindow(AjaxRequestTarget target) {

Re: Problem with window name generated using AjaxNewWindowNotifyingBehavior in wicket 6.5.0

2013-05-10 Thread Martin Grigorov
Hi, The behavior fires the Ajax call only when the same page instance is loaded in two tabs/windows. That is both tabs should have the same pageId in the url query string, e.g. ?3another=parameter, here '3' is the page id. On Fri, May 10, 2013 at 11:03 AM, iamrakesh

Re: Problem with window name generated using AjaxNewWindowNotifyingBehavior in wicket 6.5.0

2013-05-10 Thread iamrakesh
Hi, I dont have page id in the URL [probably because of 'RenderStrategy.ONE_PASS_RENDER' I've used]!, In this case - is page id different for pages in two tabs/windows? If yes, how can I listen to such event? Regards, Rakesh.A -- View this message in context:

Re: Problem with window name generated using AjaxNewWindowNotifyingBehavior in wicket 6.5.0

2013-05-10 Thread Martin Grigorov
Put a breakpoint at the line with: add(new AjaxNewWindowNotifyingBehavior() { and another one at : org.apache.wicket.ajax.AjaxNewWindowNotifyingBehavior#respond() and see what happens On Fri, May 10, 2013 at 12:50 PM, iamrakesh iamrakes...@rediffmail.comwrote: Hi, I dont have page id in the

Re: Problem with window name generated using AjaxNewWindowNotifyingBehavior in wicket 6.5.0

2013-05-10 Thread iamrakesh
Hi, I did, when the AjaxNewWindowNotifyingBehavior's contructor is called, a new value for 'window.name' is generated, but when I see the page source, the value written to the markup is same as the first tab, and the respond method also gets the same value as the first tab. Regards, Rakesh.A

Re: Textbox in a listView, retrieve the value and set the property model

2013-05-10 Thread Bruno Moura
Maxin, thanks a lot again! I'll verify and if this approach works for me and then I'll share the code here! Regards! Bruno Moura 2013/5/10 Maxim Solodovnik solomax...@gmail.com ChoiceRenderer accepts 2 parameters (one of its constructor) one parameter for the name being displayed, other

Modal window extending panel do not expand

2013-05-10 Thread seyaw
Hi all, I have couple of modal windows. Modals that extend Page can grow/Shrink with the mouse button along side the parent page. Those extending Panel do not't expand (while the parent window can) Thanks for the hint -- View this message in context:

Wicket 6.8.0 schedule release

2013-05-10 Thread Paul Bors
Do you guys know when is the next minor release for Wicket 6.8.0 scheduled to come out? I'm wondering what I should do about WICKET-5147 https://issues.apache.org/jira/browse/WICKET-5147 WicketTester MockHttpRequest.getCookies very slow / OutOfMemory since it slowed down our unit tests from

[wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring are making use of existent beans , and inject to WebPage or Panel via @SpringBean , and it indeed works well. But my interface implementations

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread Richard W. Adams
Not sure exactly what the issue is. You can create beans any time you want. All you need to do is get an application context object based on a Spring config file. You can do that in init() or wherever is appropriate for your app. From: smallufo small...@gmail.com To:

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread Igor Vaynberg
see spring's FactoryBean, its an indirect way to create beans. -igor On Fri, May 10, 2013 at 12:33 PM, smallufo small...@gmail.com wrote: Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring

Re: Modal window extending panel do not expand

2013-05-10 Thread Taro Fukunaga
Why don't you try using ModalWindow? This class also has a method to enable/disable resizing of the window. See http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html

Call me page wicket from iframe in page.jsp

2013-05-10 Thread Alis
Hello! Help me , how call me a page in wicket from iframe of page .jsp. Example: *page.jsp* -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Call-me-page-wicket-from-iframe-in-page-jsp-tp4658716.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Retrieve a value of textField and set the property of the Model

2013-05-10 Thread Paul Bors
Why the Ajax round-trips for each keyup to extract the model's object? Have you tried to implement just the Save link/button and then look-up the model object from inside the onClick() method? In your case it would come from the PropertyModel you use already: TextField description = new

DataTable update components on Page Change

2013-05-10 Thread David Beer
Hi All I have an Ajax DataTable that extends DataTable and when I click the navigation panel to change page in the table I would like to make sure that the necessary components are disable or enabled. What is the best way of doing this? So on onPageChanged I would like to enable or disable

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
Hi Is there any code example to create beans and register to spring ? I can get ApplicationContext by WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); but there is no setter or register or createBean methods within... Or use of factory bean ? I searched

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
I try to do this in init() : ctx.getAutowireCapableBeanFactory().configureBean(obj, myobj); or ctx.getAutowireCapableBeanFactory().applyBeanPostProcessorsAfterInitialization(obj, myobj); or ctx.getAutowireCapableBeanFactory().applyBeanPostProcessorsBeforeInitialization(obj, myobj); But in a