Re: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux
Hello, Just a question : why we can't add Behavior on onsubmit event on form to do that ? - Duto -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3298726.html Sent from the Users forum mailing list archive at Nabble.com.

Re: TextField submit via Ajax

2011-02-10 Thread Olivier Dutrieux
I do that to intercept (by submit btn or ENTER key on every components form) the submit form : form.add(new AjaxFormValidatingBehavior(form, onsubmit) { @Override protected void onSubmit(AjaxRequestTarget target) { setResponsePage(ResultPage.class,

Re: Form/Enter Key Problem

2011-02-10 Thread Olivier Dutrieux
My solution is to AjaxFormValidatingBehavior on form : I do that to intercept (by submit btn or ENTER key on every components form) the submit form : form.add(new AjaxFormValidatingBehavior(form, onsubmit) { @Override protected CharSequence getEventHandler() {

wicketstuff-annotation - No 1.5 compatible release available

2011-02-10 Thread Daniel Soneira
Hi, I've searched for a binary releaseof wicketstuff-annotation that is compatible with Wicket 1.5 RC1 / trunk (snapshot) in the sonatype and official maven repository to no avail. Where can I get the latest JAR file (please note: We don't use maven for our projects)? Regards, Daniel

onInitialize / onBeforeRender

2011-02-10 Thread Brown, Berlin [GCG-PFS]
Version: wicket1.4.13 Is there any reason onInitialize would not be called? And is it always called before onBeforeRender? When I look at my logs, it looks like there are cases where onInitialize wasn't called. But onBeforeRender was always called. Berlin Brown

Re: onInitialize / onBeforeRender

2011-02-10 Thread Igor Vaynberg
create a quickstart that reproduces this, oninitialize() should always be called on components after they are added to the page. -igor On Thu, Feb 10, 2011 at 8:49 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be

Re: onInitialize / onBeforeRender

2011-02-10 Thread Matthias Keller
On 2011-02-10 17:49, Brown, Berlin [GCG-PFS] wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be called? And is it always called before onBeforeRender? When I look at my logs, it looks like there are cases where onInitialize wasn't called. But onBeforeRender was always

Re: onInitialize / onBeforeRender

2011-02-10 Thread Igor Vaynberg
failing to do so will throw an exception. -igor On Thu, Feb 10, 2011 at 8:58 AM, Matthias Keller matthias.kel...@ergon.ch wrote: On 2011-02-10 17:49, Brown, Berlin [GCG-PFS] wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be called?  And is it always called before

Re: cleanup form values and feedback messages

2011-02-10 Thread Gabriel Landon
You could try for one field : yourField.clearIput(); or for a form : yourForm.clearInput() Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/cleanup-form-values-and-feedback-messages-tp3275588p3299704.html Sent from the Users forum mailing list

Wicket 1.5 and custom request cycle

2011-02-10 Thread Bertrand Guay-Paquet
Hello, Disclaimer: I am a relatively new Wicket user I use a custom session to store the current user Id and I want to use the request cycle to store the current user object which is fetched from the DB on each request following advice from

Re: Wicket 1.5 and custom request cycle

2011-02-10 Thread Igor Vaynberg
i just fixed this last night, will be part of rc2. -igor On Thu, Feb 10, 2011 at 10:46 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, Disclaimer: I am a relatively new Wicket user I use a custom session to store the current user Id and I want to use the request cycle to

RE: Wicket 1.5 and custom request cycle

2011-02-10 Thread Zhubin Salehi
I had the same issue. Do you have any estimate on the release date of RC2? Zhubin -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: February 10, 2011 1:54 PM To: users@wicket.apache.org Subject: Re: Wicket 1.5 and custom request cycle i just fixed this last

Re: Wicket 1.5 and custom request cycle

2011-02-10 Thread Igor Vaynberg
no i do not. there are still a lot of reported bugs that need to be fixed before we release it. you can always use a snapshot or run a build yourself if you need it now. -igor On Thu, Feb 10, 2011 at 11:31 AM, Zhubin Salehi zhubin.sal...@route1.com wrote: I had the same issue. Do you have any

Re: Wicket 1.5 and custom request cycle

2011-02-10 Thread Bertrand Guay-Paquet
In the meantime, I am using the following workaround: lazy init the desired CustomRequestCycle member. e.g Instead of @Override protected void onBeginRequest() { super.onBeginRequest(); Long userId = CustomSession.get().getCurrentUserId(); if (userId != null)

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-10 Thread Igor Vaynberg
the problem is indeed that you are sharing state between pages which is not allowed. you are doing it via one page passing in an anonymous SelectionCallback to another page, which is the same as passing in an instance of one page to another. what you should do instead, especially since you