RE: Grabbing a form component's input before the form has been submitted
I tried that - the onUpdate() method is being called as soon as the field is being populated with a date. The onError() method is being called as well when invalid input is entered (e.g. 'foo'). This must be something simple - I mean grabbing a field's input is the underlying mechanism allowing AJAX in the first place. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 10:28 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted are you sure the field validates? override onerror() in the ajax behavior and set a break point there. -igor On Wed, Jun 18, 2008 at 6:30 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I wonder what difference it makes what 'link' I'm using. The more interesting code is this: dateField.add(new AjaxFormComponentUpdatingBehavior(JavaScriptUtil.BLUR) { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug(Date Input: {}, dateField.getInput()); LOG.debug(Date Model: {}, dateField.getModelObject()); } }); Although there is a behavior attached to the text field it still logs null for both the input and the model. Don't understand why this isn't being updated. Thanks, Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: Grabbing a form component's input before the form has been submitted
Okay, I fixed it - by accident I realized that the field started populating AFTER I first entered some erroneous data, and then a real date. Changing the JS even from BLUR to CHANGE fixed the issue. It was simply an event based timing problem. Works like a charm now. Thanks for the help, Igor - the onError() method implicitly lead to finding the solution :-) Cheers, Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:36 AM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted I tried that - the onUpdate() method is being called as soon as the field is being populated with a date. The onError() method is being called as well when invalid input is entered (e.g. 'foo'). This must be something simple - I mean grabbing a field's input is the underlying mechanism allowing AJAX in the first place. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 10:28 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted are you sure the field validates? override onerror() in the ajax behavior and set a break point there. -igor On Wed, Jun 18, 2008 at 6:30 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I wonder what difference it makes what 'link' I'm using. The more interesting code is this: dateField.add(new AjaxFormComponentUpdatingBehavior(JavaScriptUtil.BLUR) { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug(Date Input: {}, dateField.getInput()); LOG.debug(Date Model: {}, dateField.getModelObject()); } }); Although there is a behavior attached to the text field it still logs null for both the input and the model. Don't understand why this isn't being updated. Thanks, Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED
RE: Grabbing a form component's input before the form has been submitted
Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grabbing a form component's input before the form has been submitted
If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-form-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grabbing a form component's input before the form has been submitted
Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grabbing a form component's input before the form has been submitted
if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grabbing a form component's input before the form has been submitted
/* Pops up the modal */ private void showModal(final FooModalWindow modalWindow, AjaxRequestTarget target) { Date startDate = (Date)startTimeField.getConvertedInput(); if (null != startDate) { MutableDateTime dateTime = new MutableDateTime(startDate); ((Foo)FooDetailsPanel.this.getModelObject()).setStartTime(dateTime.toDat e()); } modalWindow.setTitle(getLocalizer().getString(BarFooModalTitle, FooDetailsPanel.this)); modalWindow.setContent(new CreateBarFooPanel(modalWindow.getContentId(), FooDetailsPanel.this.getModel(), modalWindow)); modalWindow.show(target); } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax Foo to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grabbing a form component's input before the form has been submitted
I wonder what difference it makes what 'link' I'm using. The more interesting code is this: dateField.add(new AjaxFormComponentUpdatingBehavior(JavaScriptUtil.BLUR) { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug(Date Input: {}, dateField.getInput()); LOG.debug(Date Model: {}, dateField.getModelObject()); } }); Although there is a behavior attached to the text field it still logs null for both the input and the model. Don't understand why this isn't being updated. Thanks, Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grabbing a form component's input before the form has been submitted
are you sure the field validates? override onerror() in the ajax behavior and set a break point there. -igor On Wed, Jun 18, 2008 at 6:30 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I wonder what difference it makes what 'link' I'm using. The more interesting code is this: dateField.add(new AjaxFormComponentUpdatingBehavior(JavaScriptUtil.BLUR) { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug(Date Input: {}, dateField.getInput()); LOG.debug(Date Model: {}, dateField.getModelObject()); } }); Although there is a behavior attached to the text field it still logs null for both the input and the model. Don't understand why this isn't being updated. Thanks, Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 5:45 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted if you would have actually pasted your code someone would have been able to help you a long time ago... i dont know what kind of link you are using to launch the modal or how you are launching the modal etc -igor On Wed, Jun 18, 2008 at 5:17 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Added that listener and my logger shows that it's still empty - about to pull my hair out here. I frankly think there should be a default method of handling such a scenario. Any input/help would be appreciated. Thanks, Michael -Original Message- From: brian.diekelman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 3:42 PM To: users@wicket.apache.org Subject: RE: Grabbing a form component's input before the form has been submitted If I'm understanding you correctly the input it still sitting on the client (since the form hasn't been submitted) and the server doesn't have any knowledge of it when it renders the modal. You should be able to use AjaxFormComponentUpdatingBehavor(onblur) on the date field. That will send an ajax event to notify the server of the component change so it is updated in the modal. Michael Mehrle wrote: Nope - still getting null, although the field is populated. How can I force this without submitting the form? Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 8:24 PM To: users@wicket.apache.org Subject: Re: Grabbing a form component's input before the form has been submitted getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Grabbing-a-form-component%27s-input-before-the-for m-has-been-submitted-tp17957853p17993636.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grabbing a form component's input before the form has been submitted
getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I have a form that contains a date textfield. When a user fills out the date and then launches a modal via another link I need to somehow pass that field's input to the modal's panel. Problem is that the form at that point has not been submitted yet. I already tried: Date startDate = (Date)startTimeField.getConvertedInput(); However, it's always null. How can I do this? Thanks in advance... Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]