Re: Get the selected item in the DropDownChoice using Scala

2013-05-06 Thread Hans Lesmeister 2
Hi, you can pass a IModelCustomer to the constructor as well. This model will receive the currently selected Customer. - -- Regards, Hans http://cantaa.de -- View this message in context:

Wicket push alternative

2013-05-06 Thread Noven
Hi all, Do you know any wicket push technology beside atmosphere and wicket-push project? I use wicket-push 1.4 and it work good for me. But when migrate to wicket v6.x, my code is not applicable anymore. I tried atmosphere, but it causes many error I'm not able to fix. Many thanks.

Re: Wicket push alternative

2013-05-06 Thread Maxim Solodovnik
I believe you can you wicket-websocket's On Mon, May 6, 2013 at 2:29 PM, Noven noven_...@yahoo.com wrote: Hi all, Do you know any wicket push technology beside atmosphere and wicket-push project? I use wicket-push 1.4 and it work good for me. But when migrate to wicket v6.x, my code is

Re: How to deal with JPA Entities in a Wicket Model? (Data handling in models)

2013-05-06 Thread Bernard
Hi, This can be solved by using a generic LoadableDetachableModel implementation that loads a model via an interface that constructs a new entity. Preferably it is a subclass of a persisting LoadableDetachableModel that has access to EntityManager. The new POJO entity can be stored in the

Re: Wicket push alternative

2013-05-06 Thread Martin Grigorov
HI, On Mon, May 6, 2013 at 9:29 AM, Noven noven_...@yahoo.com wrote: Hi all, Do you know any wicket push technology beside atmosphere and wicket-push project? I use wicket-push 1.4 and it work good for me. But when migrate to wicket v6.x, my code is not applicable anymore. I tried

Re: Wicket BootStrap Tour

2013-05-06 Thread Martin Grigorov
Hi, Check https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ExtensionsPage.java#L161 On Mon, May 6, 2013 at 12:31 PM, Tommy Sadiq Hinrichsen tommy.ly...@gmail.com wrote: Hey Is there anyone that has used the

Re: Get the selected item in the DropDownChoice using Scala

2013-05-06 Thread Martin Grigorov
Hi, On Mon, May 6, 2013 at 8:29 AM, Hans Lesmeister 2 hans.lesmeis...@lessy-software.de wrote: Hi, you can pass a IModelCustomer to the constructor as well. This model will receive the currently selected Customer. Otherwise you have to keep a reference to DropDownChoice and do:

Re: Wicket - get the value of a textbox using scala

2013-05-06 Thread Martin Grigorov
Hi, On Mon, May 6, 2013 at 2:48 AM, Bruno Moura brunormo...@gmail.com wrote: I'm trying to retrieve a value of a TextField as is showed bellow: item.add(new TextField(description, new Model[String]() { override def getObject(): String = { customer.description = ???

Re: Popup window ( user notification window) after Form submission.

2013-05-06 Thread Martin Grigorov
Hi, I suggest you to start with this book: https://code.google.com/p/wicket-guide/ On Sun, May 5, 2013 at 5:33 PM, mayanksahai mayanksa...@gmail.com wrote: Hi all ,i am new to wicket and taking panel based approach to build out Pages. in my application there is main page that contains

Re: Dynamic Session.style

2013-05-06 Thread Martin Grigorov
Hi, You can use variations instead. Each special page can override #getVariation(). On Fri, May 3, 2013 at 7:27 PM, Allen Gilbert allen.gilb...@doane.eduwrote: If locale and/or style are determined by a user-configurable setting, then yes, I agree that all pages should be affected by it.

Re: Wicket push alternative

2013-05-06 Thread Noven
Hi Martin, Thank you for your quick response. I will try the 2nd and 3rd option. For the atmosphere issue, I will try to create the quickstart. Noven --- On Mon, 5/6/13, Martin Grigorov mgrigo...@apache.org wrote: From: Martin Grigorov mgrigo...@apache.org Subject: Re: Wicket push

Re: Wierd ajax thing

2013-05-06 Thread Entropy
That appears to have done it. clearInput solved my issue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wierd-ajax-thing-tp4658543p4658574.html Sent from the Users forum mailing list archive at Nabble.com.

CheckGroup, CheckGroupSelection and Check behavior

2013-05-06 Thread David Beer
Hi All I am trying to add Checkgroup selection behaviour to my table, this all works fins so far. I can use the select all and individual check boxes to select items. What I am trying to get is get notified when a selection occurs so that I can enable and or disable buttons depending on how

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-06 Thread Sven Meier
You have to wrap you whole table in a form, otherwise only the value of the single check is sent to the server. Sven On 05/06/2013 03:34 PM, David Beer wrote: Hi All I am trying to add Checkgroup selection behaviour to my table, this all works fins so far. I can use the select all and

Re: Wicket push alternative

2013-05-06 Thread Noven
Thank you Maxim. --- On Mon, 5/6/13, Maxim Solodovnik solomax...@gmail.com wrote: From: Maxim Solodovnik solomax...@gmail.com Subject: Re: Wicket push alternative To: users@wicket.apache.org Date: Monday, May 6, 2013, 7:36 AM I believe you can you wicket-websocket's On Mon, May 6,

Re: Redirect user in Ajax response

2013-05-06 Thread Nick Pratt
I've attached a quickstart that exhibits this behavior. Run Start, and access locally at: localhost:8080/gateway Then try hitting: localhost:8080/target While both approaches intercept the destination page (TargetPage), the first case displays the Ajax Response content after auth. The second

How to preserve current url in error page

2013-05-06 Thread infiniter
I've got a listener that does the error handling in Wicket 6.6.0 and I want to keep the current url instead of replacing it with the url of the error page. Anyone Help is appreciated. Carlos. -- View this message in context:

Re: Wicket BootStrap Tour

2013-05-06 Thread Tommy Sadiq Hinrichsen
Thanks I must have looked in the wrong place. Med venlig hilsen / Best regards Tommy Sadiq Hinrichsen Humlebækgade 16, 1.tv. 2200 København N Tlf: 26 24 14 36 Mangler du en billig anlægsgartner, så prøv http://www.sl-haveanlaeg.dk 2013/5/6 Martin Grigorov mgrigo...@apache.org Hi, Check

Adding javascript to form submit

2013-05-06 Thread krishnamohank
I have a wicket Form and a AjaxButton on it, my requirement is to create a cookie/local storage on form submit. For this i tried to add following js: addEvent(form[0], submit, save); function addEvent(elem, evt, fn) { if (elem.addEventListener)

Re: Adding javascript to form submit

2013-05-06 Thread Nick Pratt
Add an AjaxFormSubmitBehavior and override getPreconditionScript() (or override that for your AjaxButton) On Mon, May 6, 2013 at 11:39 AM, krishnamohank k.krishnamoha...@gmail.comwrote: I have a wicket Form and a AjaxButton on it, my requirement is to create a cookie/local storage on form

Re: Resource Path

2013-05-06 Thread Hemen
Hi Martin, I tried your solution and again it was working on my dev but wasn't getting the context on deploying on test . This fixed it: String fullUrl = getRequest().getContextPath() + / + RequestCycle.get().mapUrlFor(new PackageResourceReference(Anchor.class, LOGO_NAME), pp).toString(); and

Re: Server and client side validation

2013-05-06 Thread Gabriel Landon
Martin, That's a great project! That's exactly what I've been waiting for! It would be very nice to have it in wicketstuff so we could upload it with maven and maybe extend it. Regards, Gabriel. -- View this message in context:

Re: Server and client side validation

2013-05-06 Thread Gabriel Landon
Martin, I've create a ParsleyRangeValidator and a ParsleyLengthValidator very easily thanks to your code. I've also create ParsleyForm that initializes Parsley in the RenderHead and a ParsleyAjaxButton that validates Parsley on submit. I only have one problem with forms in a ModalWindow. As the

Re: Adding javascript to form submit

2013-05-06 Thread krishnamohank
Thank you, it works for me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-javascript-to-form-submit-tp4658587p4658603.html Sent from the Users forum mailing list archive at Nabble.com. - To

[wicket 6] Modal unable to see page's properties anymore ?

2013-05-06 Thread smallufo
I have a LoginModal which binds a LoginPage . In LoginModal.setWindowClosedCallback() method , I use LoginPage.isSuccessful() to judge if the user login successful. If login successful , I refresh the page , or do nothing. LoginModal code : http://pastebin.com/nLU2akzV LoginPage code :

Migrating WebRequestCycleProcessor from 1.4.x to 6.5.0

2013-05-06 Thread iamrakesh
Hi, I am trying migration code from wicket v1.4 to v6.5.0, I've a custom implementation of WebRequestCycleProcessor, on migration wiki page I read that WebRequestcycleProcessor is removed, is there any replacement for this class? Regards, Rakesh.A -- View this message in context:

Re: Migrating WebRequestCycleProcessor from 1.4.x to 6.5.0

2013-05-06 Thread iamrakesh
Hi, In resolve() method we're trying to catch handle InvalidUrlException to prevent exception due to multiple clicks on a button. In respond() method we're logging the request target [RequestCycle#getRequestTarget() value] and if it is of type AjaxRequestTarget we're trying to add components to