Re: Required DateTimeField not showing 'is required' feedback...

2016-09-12 Thread Sven Meier
Hi, DateTimeField is a FormComponentPanel and thus overrides #checkRequired() to always return true. I'm not sure whether your usage is possible or even makes sense for a FormComponentPanel. Regards Sven On 12.09.2016 17:40, ChambreNoire wrote: Hello, Quick question: When I att

Required DateTimeField not showing 'is required' feedback...

2016-09-12 Thread ChambreNoire
Hello, Quick question: When I attach a FeedbackPanel to a DateTimeField with setRequired(true), the required message never shows in the feedback whereas validators like DateValidator.maximum work fine… Any ideas? Thanks CN -- View this message in context: http://apache-wicket.1842946.n4

Re: WicketTester + DateTimeField

2016-04-29 Thread Zbynek Vavros
WICKET-6153 created. Thanks ! On Thu, Apr 28, 2016 at 8:07 PM, Martin Grigorov wrote: > You are very right! > Please a ticket! > > In the meantime you can use tester.getSession().setLocale(locale) > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, A

Re: WicketTester + DateTimeField

2016-04-28 Thread Martin Grigorov
You are very right! Please a ticket! In the meantime you can use tester.getSession().setLocale(locale) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 28, 2016 at 4:52 PM, Zbynek Vavros wrote: > Hi, > > finally got to fix that test and I don't have met

Re: WicketTester + DateTimeField

2016-04-28 Thread Zbynek Vavros
Hi, finally got to fix that test and I don't have method setLocale(aLocale) on MockHttpServletRequest. I am on Wicket 7.0.0... Zbynek On Tue, Apr 26, 2016 at 6:12 PM, Zbynek Vavros wrote: > Hey, > > good point, thanks a lot ! > I was using the inner workings of DateTextField to get the formatt

Re: WicketTester + DateTimeField

2016-04-26 Thread Zbynek Vavros
Hey, good point, thanks a lot ! I was using the inner workings of DateTextField to get the formatted string with locale DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(date) but setting the locale on request is much better, thanks again ! Zbynek On Tue, Apr 26, 2016 at

Re: WicketTester + DateTimeField

2016-04-26 Thread Martin Grigorov
Hi, WicketTester simulates browser behavior, so it sends String that is converted to a Date by the Wicket component. You can use tester.getRequest().setLocale(aLocale) to simulate localized browser. On Apr 26, 2016 4:22 PM, "Zbynek Vavros" wrote: Hi, whats the proper way to work with WicketTest

WicketTester + DateTimeField

2016-04-26 Thread Zbynek Vavros
Hi, whats the proper way to work with WicketTester and DateTimeFields ? I am using FormTester.setValue("myDateTimeField". "formattedDateTime"); is there any way using proper date instead of string (that differs with locales) ? using DateTimeField.setModelObject() or DateTimeField.setDefaultModej

Re: DateTimeField AJAX DatePicker not work

2016-02-05 Thread andrea del bene
: the DatePicker behavior does not get it’s renderHead() method called once the second DateTimeField becomes visible, and it is inside the inline enclosure. Why that is the case requires more debugging. My gist provides a solution in the meantime. Met vriendelijke groet, Kind regards, Bas Gooren

Re: DateTimeField AJAX DatePicker not work

2016-02-04 Thread Martin Grigorov
48bfd70 > > We’ve had some unexpected issues with inline enclosures in the past, which > is why I usually use explicit containers. > > In any case: the DatePicker behavior does not get it’s renderHead() method > called once the second DateTimeField becomes visible, and it is inside

Re: DateTimeField AJAX DatePicker not work

2016-02-04 Thread Bas Gooren
some unexpected issues with inline enclosures in the past, which is why I usually use explicit containers. In any case: the DatePicker behavior does not get it’s renderHead() method called once the second DateTimeField becomes visible, and it is inside the inline enclosure. Why that is the case

Re: DateTimeField AJAX DatePicker not work

2016-02-03 Thread Martin Grigorov
h wrote: > Hi, > I have some problems with the > org.apache.wicket.extensions.yui.calendar.DateTimeField. In the > constructor I set the visibility to false. Ajax redraw, when a checkbox > is clicked, the DateTimeField is marked as visible. As far as everything > works. Only then I

DateTimeField AJAX DatePicker not work

2016-02-02 Thread Christopher Auth
Hi, I have some problems with the org.apache.wicket.extensions.yui.calendar.DateTimeField. In the constructor I set the visibility to false. Ajax redraw, when a checkbox is clicked, the DateTimeField is marked as visible. As far as everything works. Only then I can't open the DatePicker o

Re: DateTimeField + AJAX

2015-06-01 Thread Martin Grigorov
mponents. Right now, I think, that is not > possible by overriding add(..), because the same behavior instance cannot > be assigned to multiple components AFAIK. > Right. You cannot reuse the same *Ajax* behavior for several components. Because it is not clear which server side component sho

Re: DateTimeField + AJAX

2015-06-01 Thread Urbani, Edmund
cause the same behavior instance cannot be assigned to multiple components AFAIK. In my case applying the behavior to the individual fields was only part of the solution BTW. I did end up making my own version of the DateTimeField component. Changes to the hour/minutes fields would not cause the mo

Re: DateTimeField + AJAX

2015-06-01 Thread Martin Grigorov
wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DateTimeField.java#L411 > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Mon, Jun 1, 2015 at 3:05 PM, Urbani, Edmund > wrote: > >> Hello all, I am

Re: DateTimeField + AJAX

2015-06-01 Thread Urbani, Edmund
having trouble trying to apply an OnChangeAjaxBehaviour to the DateTimeField component from wicket-extensions. The AJAX updates always cause the model to be set to null. Even when the model is initialized with a non-null value, and that date is property displayed, any attempt to edit it will

Re: DateTimeField + AJAX

2015-06-01 Thread Martin Grigorov
and Consulting https://twitter.com/mtgrigorov On Mon, Jun 1, 2015 at 3:05 PM, Urbani, Edmund wrote: > Hello all, I am having trouble trying to apply an OnChangeAjaxBehaviour > to the DateTimeField component from wicket-extensions. The AJAX updates > always cause the model to be set to

DateTimeField + AJAX

2015-06-01 Thread Urbani, Edmund
Hello all, I am having trouble trying to apply an OnChangeAjaxBehaviour to the DateTimeField component from wicket-extensions. The AJAX updates always cause the model to be set to null. Even when the model is initialized with a non-null value, and that date is property displayed, any attempt

Preset the TimeZone of DateTimeField

2015-05-05 Thread Ulrich
I want the enduser to set the datetimefield as UTC-time. I want to make sure ît is handled as UTC at program side - not to rely on the server settings. When I display the entered DateTimeField with the "getModelObject().toString()" it displays those values indicating that they rep

Re: DateTimeField or html5 date

2013-12-18 Thread Gerrit Wassink
ello, > > I am using Wicket now for a couple of weeks. In my form i have some > datefields. > Now is my question: considering my not so experienced knowledge about > Wicket, is it better to use the html5 input type=date or should i implement > a DateTimeField (like the e

Re: DateTimeField or html5 date

2013-12-17 Thread Martin Grigorov
efields. > Now is my question: considering my not so experienced knowledge about > Wicket, is it better to use the html5 input type=date or should i implement > a DateTimeField (like the example in Wicket in Action, page 208)? > > Thanks! > > Greetings Gerrit > > >

DateTimeField or html5 date

2013-12-17 Thread gerritqf
Hello, I am using Wicket now for a couple of weeks. In my form i have some datefields. Now is my question: considering my not so experienced knowledge about Wicket, is it better to use the html5 input type=date or should i implement a DateTimeField (like the example in Wicket in Action, page 208

Re: How to add the key in properties file for DateTimeField component

2013-01-23 Thread Martin Grigorov
Hi, I think adding hours.DateTimeField$HoursValidator=Some nice error message in MyApplication.properties should be OK. On Tue, Jan 22, 2013 at 8:33 PM, wicket_new_user wrote: > Hi, > i'm getting the below error when adding the hours greater than 12 for > DateTimeField Compone

Re: DateTimeField getting the wrong timezone

2012-01-30 Thread Martin Grigorov
Hi, On Mon, Jan 30, 2012 at 11:27 PM, Chris Merrill wrote: > I should add another strange detail to this - the DateTimeField works > correctly if I > establish a new browser eb session within the debug session.  I'm working on > AppEngine > and the SDK will save the se

Re: DateTimeField getting the wrong timezone

2012-01-30 Thread Chris Merrill
I should add another strange detail to this - the DateTimeField works correctly if I establish a new browser eb session within the debug session. I'm working on AppEngine and the SDK will save the session states when it shuts down. When I start a new debug session, my existing browser se

DateTimeField getting the wrong timezone

2012-01-30 Thread Chris Merrill
I'm using the yui.calendar.DateTimeField widget on a page with some other timezone sensitive data and I get the right timezone on the other fields but not with DateTimeField. When I stepped into the DateTimeField code, I came to line 417: TimeZone zone = getClientTim

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread hfriederichs
equestTarget; import org.apache.wicket.util.resource.AbstractResourceStream; import org.apache.wicket.util.resource.IResourceStream; import org.apache.wicket.util.resource.ResourceStreamNotFoundException; public class DownloadForm extends Form { public DownloadForm(String id) { super(id);

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread Martin Makundi
? Can you post your whole code here, it might be easier to try with your code. ** Martin > > Thanks in advance > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/I-just-want-the-entered-value-of-a-WIcket-DateTimeField-tp3953280p3953400.html

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread hfriederichs
many hours trying to solve this. Thank you for your advice, but please could you - or anybody else - be more specific in providing a way to go? Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-just-want-the-entered-value-of-a-WIcket-DateTimeField-tp39532

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread Martin Makundi
stTarget(resourceStream, fileName); > > RequestCycle.get().setRequestTarget(resourceStreamRequestTarget); > > When I use an (ajax)button, the browser's download-screen (save or open) > doesn't pop up... > > -- > View this message in context: > http://apache-wicket.1842946

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread hfriederichs
7;s download-screen (save or open) doesn't pop up... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/I-just-want-the-entered-value-of-a-WIcket-DateTimeField-tp3953280p3953326.html Sent from the Users forum mail

Re: I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread Martin Makundi
IN constructing the excel-sheet, I need a fromdate for a whereclause. There > are other clauses, but for simplicity's sake: > In a Wicket Form I have one DateTimeField fromDateTimePicker, > and one Link downloadSpreadsheetButton: > > fromDateTimePicker = new D

I just want the entered value of a WIcket DateTimeField...

2011-10-30 Thread hfriederichs
Goodday, I'm working on an Panel that has one function: downloading an excelsheet that is a view to a database. IN constructing the excel-sheet, I need a fromdate for a whereclause. There are other clauses, but for simplicity's sake: In a Wicket Form I have one DateTimeField fromDate

Re: DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread vineet semwal
7) > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/DateTimeField-and-AjaxFormComponentUpdatingBehavior-tp3877416p3877501.html > Sent from the Users forum mailing list archive at Nabble.com. > > ---

Re: DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
1.4.17) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateTimeField-and-AjaxFormComponentUpdatingBehavior-tp3877416p3877501.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread Martin Grigorov
On Thu, Oct 6, 2011 at 11:27 AM, dpmihai wrote: > In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a > DateTimeFiled for all its components (text field, hours field, minutes > field). > > I can do this only on date text field : > > DateTimeField txtTim

DateTimeField and AjaxFormComponentUpdatingBehavior

2011-10-06 Thread dpmihai
In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a DateTimeFiled for all its components (text field, hours field, minutes field). I can do this only on date text field : DateTimeField txtTime = new DateTimeField("txtTime", generalModel) {

Re: DateTimeField and setOutputMarkupId()

2011-07-22 Thread Julian Sinai
Martin, thanks for your help. Igor's hint helped me. After some investigation I realized that I have a visitor in my button's submit handler that visits all form components and adds them to the ajax target. That meant it was visiting the inner fields of the DateTimeField, also, whi

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
tField = new > HtFormPanel.DateFormField("startField", > new StringResourceModel("start", this, null), new PropertyModel(this, > "start"), false); > Where the constructor for HtFormPanel.DateFormField is: > public DateFormField(String uniqueId, IModel lab

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
null), new PropertyModel(this, "start"), false); Where the constructor for HtFormPanel.DateFormField is: public DateFormField(String uniqueId, IModel label, IModel m, boolean bShowTime) { // The DateTimeField is contained within the DateFormField super(uniqueId, FieldType.DAT

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
Show some code. On Thu, Jul 21, 2011 at 10:09 PM, Julian Sinai wrote: > Nothing is adding it, we add the DateTimeField itself to the target. > > Julian > On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg > wrote: > >> what is adding that to the target? >> >> -i

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg wrote: > what is adding that to the target? > > -igor > > On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai wrote: > > It is the hours component of th

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is adding that to the target? -igor On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai wrote: > It is the hours component of the DateTimeField. From DateTimeField.html: > >      : > > Julian > On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg > wrote: >> >&

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
It is the hours component of the DateTimeField. From DateTimeField.html:  : Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg wrote: > what is "hours" ? > > -igor > > On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai wrote: > > Igor, > > We do updat

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is "hours" ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai wrote: > Igor, > We do update  the DateTimeField itself, and this is what we see: > SEVERE: cannot update component that does not have setOutputMarkupId > property set to true. Component: [MarkupC

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Igor, We do update the DateTimeField itself, and this is what we see: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component: [MarkupContainer [Component id = hours]] java.lang.IllegalArgumentException: cannot update component that does not have

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
cant update the DateTimeField itself? -igor On Thu, Jul 21, 2011 at 10:57 AM, Julian Sinai wrote: > We have a need to update a DateTimeField via Ajax, but its fields are > private, and they don't have setOutputMarkupId() set on them. The result is > an exception upon Ajax update

DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
We have a need to update a DateTimeField via Ajax, but its fields are private, and they don't have setOutputMarkupId() set on them. The result is an exception upon Ajax update. Is there any solution other than cloning and owning DateTimeField? We are using Wicket 1.4.17 (and we can't

Re: Changing dateFormat of DateTimeField

2011-02-27 Thread Josh Kamau
Thanks. I was working with the DateTimeField from wicket-datetime sub project With this , i have made the datePicker to display date with the correct format. txtDateReceived = new DateTimeField("dateReceived") { @Override protected DatePicker new

Re: Changing dateFormat of DateTimeField

2011-02-27 Thread Martin Grigorov
If you pass 'null' as model I think it will look for the parent's model (the compound one). On Sun, Feb 27, 2011 at 10:55 AM, Josh Kamau wrote: > The problem is , am using it with a compound property model and there is > not > constructor that takes only the String , and the converter. > > Can i

Re: Changing dateFormat of DateTimeField

2011-02-27 Thread Josh Kamau
The problem is , am using it with a compound property model and there is not constructor that takes only the String , and the converter. Can i mix PropertyModel and CompoundPropertyModel on the same form? Thanks for your help. Josh. On Sun, Feb 27, 2011 at 11:45 AM, Martin Grigorov wrote: > Se

Re: Changing dateFormat of DateTimeField

2011-02-27 Thread Martin Grigorov
See org.apache.wicket.datetime.markup.html.form.DateTextField.DateTextField(String, IModel, DateConverter) The 3rd argument is what you need to tweak. On Sun, Feb 27, 2011 at 10:17 AM, Josh Kamau wrote: > Hi there, > > How do i change the DateTimeFormat of the > org.apache.wicket.extensions.yui

Changing dateFormat of DateTimeField

2011-02-27 Thread Josh Kamau
Hi there, How do i change the DateTimeFormat of the org.apache.wicket.extensions.yui.calendar.DateTimeField component? . Currently it displays the date in mm/dd/ format. i would like to make it display as dd/mm/ format. Josh.

How to make DateTimeField default to PM

2011-01-24 Thread Jim Pinkham
I wanted to have my DateTimeField (That's the wicket-extensions component with a date text field, button to open calendar, and hours/minutes fields with optional AM_PM choice) default to PM instead of AM for new dates because I noticed most dates in this part of my app are evening dates. I

Re: Bug in DateTimeField related to Daylight Savings Time

2010-10-27 Thread Jim Pinkham
It also won't accept 3/13/2011 2PM. I added a brief comment to the JIRA. Any fix for this? I don't really want 24hr format. -- Jim P.

Re: Prepopulate time fields in DateTimeField component

2010-09-10 Thread vp143
Is there any way to reapply the relationship checkinDate had with the CompoundPropertyModel? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prepopulate-time-fields-in-DateTimeField-component-tp2533175p2534425.html Sent from the Wicket - User mailing list archive at

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
Item object contains checkinDate field > > I create the component: DateTimeField checkinDateField = new > DateTimeField("checkinDate", new Model(new Date())); > > This populates the Date and Time fields. > However, I do not want the Date field to be populate, and when submitting &g

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread vp143
I tried that previously but then the field becomes NULL within the POJO I think this is what you mean: If i have: setDefaultModel(new CompoundPropertyModel(Item)); where Item object contains checkinDate field I create the component: DateTimeField checkinDateField = new DateTimeField

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
put the date value you want prepopulated into the model object -igor On Thu, Sep 9, 2010 at 9:20 AM, vp143 wrote: > > Hi all, > > I have a Form with the default model being a CompoundPropertyModel. I have > added the DateTimeField component to the form. I wish to prepopulate th

Prepopulate time fields in DateTimeField component

2010-09-09 Thread vp143
Hi all, I have a Form with the default model being a CompoundPropertyModel. I have added the DateTimeField component to the form. I wish to prepopulate the time fields but not the date. I have tried a few different things but all have their various issues. Anyone have any ideas? Many thanks in

Bug in DateTimeField related to Daylight Savings Time

2010-03-02 Thread Tauren Mills
In case anyone else is having troubles using the DateTimeField (date picker included in wicket-datetime) with dates on the day daylight savings time begins (3/14/2010), I've created a Jira issue with a quickstart demonstrating the problem: https://issues.apache.org/jira/browse/WICKET

Re: DateTimeField enhancement

2009-12-17 Thread Martin Makundi
gt;> 2009/12/17 Steve Lowery : >>> I'd like to use the DateTimeField component, but there is no API that I >>> can >>> see to override what DatePicker gets added to the component.  I'd like to >>> subclass the DatePicker and customize the icon, posi

Re: DateTimeField enhancement

2009-12-17 Thread slowery23
I am attempting to upload a patch. Should an issue be opened as well? MartinM wrote: > > Patch would be nice.. > > ** > Martin > > 2009/12/17 Steve Lowery : >> I'd like to use the DateTimeField component, but there is no API that I >> can >> see t

Re: DateTimeField enhancement

2009-12-17 Thread Martin Makundi
Patch would be nice.. ** Martin 2009/12/17 Steve Lowery : > I'd like to use the DateTimeField component, but there is no API that I can > see to override what DatePicker gets added to the component.  I'd like to > subclass the DatePicker and customize the icon, positioning, et

DateTimeField enhancement

2009-12-17 Thread Steve Lowery
I'd like to use the DateTimeField component, but there is no API that I can see to override what DatePicker gets added to the component. I'd like to subclass the DatePicker and customize the icon, positioning, etc. I can do this if just dealing with the DateTextField, where I add the

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread Marc Nuri (GMail)
I use that continuously. Not only in Wicket but with swing too. It's a kind of hack but it does its job. The economic way is to use a converter because in the future you may use the converter with other model classes. In the other hand if you use the same model with different technologies (Swing, w

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread chinedu efoagui
ava.lang.IllegalArgumentException: argument type mismatch >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >     at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >     at java.lang.reflect.Method.invoke(Method.java:597) > &

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread chinedu efoagui
: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at java.lang.reflect.Method.invoke(Method.java:597) I subclassed the Datetimefield public class

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread Marc Nuri (GMail)
You can create a custom converter. A simpler quick solution is to create two methods to encapsulate the sql date in a normal date: The pojo object accepts a java.sql.Timestamp Your original methods: [CODE] @Column(name = "timein" ) public java.sql.Timestamp getTimein() { return timein;

Re: How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread Matthias Keller
DateTimeField internally uses a DateTextField which is a normal TextField initialized as type java.util.Date You could create a class: public class TimestampField extends DateTimeField { protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel) { return

How to use DateTimeField with java.sql.Timestamp

2009-12-17 Thread chinedu efoagui
Hello, I am very new to Wicket I am building an application that requires a Datetimefield The field in my database 'timein' is datetime. The pojo object accepts a java.sql.Timestamp /** * Returns the value of the timein property. * */ @Column(name = "timei

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Bert
Thanks, this worked out great. now i have to do some reading / testing on how to style it, but it is working great so far On Sun, Feb 22, 2009 at 20:13, Igor Vaynberg wrote: > See datepicker in wicket-datetime > > -igor - To uns

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Igor Vaynberg
See datepicker in wicket-datetime -igor On 2/22/09, Bert wrote: > Hi, > > it looks like > org.apache.wicket.extensions.yui.calendar.DateTimeField > > is not available in version 1.3.5? > > is there a plan to add it again, or what do you use for a > 'fancy' Date Chooser control? > > thanks > Ber

Re: YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Martin Makundi
It is for sure in 1.4- branch. ** Martin 2009/2/22 Bert : > Hi, > > it looks like > org.apache.wicket.extensions.yui.calendar.DateTimeField > > is not available in version 1.3.5? > > is there a plan to add it again, or what do you use for a > 'fancy' Date Chooser control? > > thanks > Bert > > --

YUI DateTimeField and Wicket 1.3.5

2009-02-22 Thread Bert
Hi, it looks like org.apache.wicket.extensions.yui.calendar.DateTimeField is not available in version 1.3.5? is there a plan to add it again, or what do you use for a 'fancy' Date Chooser control? thanks Bert - To unsubscribe,

RE: DateTimeField

2009-01-28 Thread Wadi Jalil Maluf
: DateTimeField Hi Wadi, checkout this example (reached by click to examples link on wicket-homepage (wicket.apache.org)) http://www.wicketstuff.org/wicket13/dates/ Short version: - Add a form - Add a DateTextField to form - Set the model of DateTextfield - Get the date from model. HTH Per

Re: DateTimeField

2009-01-28 Thread Per Newgro
Hi Wadi, checkout this example (reached by click to examples link on wicket-homepage (wicket.apache.org)) http://www.wicketstuff.org/wicket13/dates/ Short version: - Add a form - Add a DateTextField to form - Set the model of DateTextfield - Get the date from model. HTH Per --

DateTimeField

2009-01-28 Thread Wadi Jalil Maluf
Hi all!I'm new to wicket, I would like to know how I can get the date from a yui DateTimeField. I had put this inside a modal window.Should I use an ajax behavior with a model?How? Thanks in advance, Regards, Wadi

Re: DateTimeField Error and Question

2009-01-01 Thread Adriano dos Santos Fernandes
d return a customized DateTextField object. gerolf On Thu, Jan 1, 2009 at 6:44 AM, tbt wrote: Hi I am not sure if the DateTextField attribute in the DateTimeField class can be modified to change the calendar behavior. But you could use a TextField or a DateTextField and add a DatePicker inst

Re: DateTimeField Error and Question

2009-01-01 Thread Gerolf Seitz
you can override the method newDateTextField(String, PropertyModel) and return a customized DateTextField object. gerolf On Thu, Jan 1, 2009 at 6:44 AM, tbt wrote: > > > Hi > > I am not sure if the DateTextField attribute in the DateTimeField class can > be modified to c

Re: DateTimeField Error and Question

2008-12-31 Thread tbt
. > Is it possible to show a dropdown for the year inside the calendar? > > > Regards > Christoph > > > > Hi I am not sure if the DateTextField attribute in the DateTimeField class can be modified to change the calendar behavior. But you could use a TextField or a Date

DateTimeField Error and Question

2008-12-30 Thread Christoph Bach
Hi, I am using the org.apache.wicket.extensions.yui.calendar.DateTimeField 1. If I enter a date say 1.1.1955 in the textfield, the textfield strips ist to 01.01.55. The first time I click on the Calendar icon, the calendar shows the year 1955. From the second click on, the Calendar shows the wr

Re: DateTimeField and java.util.Calendar

2008-11-28 Thread Timo Rantalaiho
On Thu, 27 Nov 2008, Eduardo Simioni wrote: > If you want Wicket to be competitive, you should think about better and > centralized documentation. Or better yet write it :) The wiki is centralised and open, everybody is more than welcome to update and improve it. > documentation, and definitely s

Re: DateTimeField and java.util.Calendar

2008-11-27 Thread jWeekend
Eduardo, See org.apache.wicket.extensions.yui.calendar.DateField if you want a popup DateTextField does not have a popup DateTimeField has fields for time (as well as date) All the javadoc seems to be http://repo1.maven.org/maven2/org/apache/wicket/wicket/ there . http://repo1.maven.org

Re: DateTimeField and java.util.Calendar

2008-11-27 Thread Bruno Borges
ely source code is not documentation. > I'm saying all this, because, once again, I spent a lot of time to get to > work something that should be easy and straight. > The first problem was my mistake, I haven't had realized that the > DatePicker > was a separate component. >

Re: DateTimeField and java.util.Calendar

2008-11-27 Thread Eduardo Simioni
me to get to work something that should be easy and straight. The first problem was my mistake, I haven't had realized that the DatePicker was a separate component. But the second problem with the DateTimeField, as almost always, I had to realize myself what was happening looking at the source c

Re: DateTimeField and java.util.Calendar

2008-11-26 Thread Eduardo Simioni
problem now is that the date fields don't show up as expected in the > page. I tried the DateTextField as in the examples but the button to open > the calendar pop-up is not showing in the page. > The DateTimeField (my first option) has a different problem, it shows an > extra field t

Re: DateTimeField and java.util.Calendar

2008-11-25 Thread Eduardo Simioni
initely be better if we could work with something more "magic". But for now that's ok. The problem now is that the date fields don't show up as expected in the page. I tried the DateTextField as in the examples but the button to open the calendar pop-up is not showing in the pag

Re: DateTimeField and java.util.Calendar

2008-11-24 Thread Jeremy Thomerson
://www.wickettraining.com On Mon, Nov 24, 2008 at 3:08 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > write a model that converts to and from. > > -igor > > On Mon, Nov 24, 2008 at 12:30 PM, Eduardo Simioni > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm try

Re: DateTimeField and java.util.Calendar

2008-11-24 Thread Igor Vaynberg
write a model that converts to and from. -igor On Mon, Nov 24, 2008 at 12:30 PM, Eduardo Simioni <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to use the DateTimeField from the wicket-datetime project. But I > realized that it's stuck to java.ut

DateTimeField and java.util.Calendar

2008-11-24 Thread Eduardo Simioni
Hi all, I'm trying to use the DateTimeField from the wicket-datetime project. But I realized that it's stuck to java.util.Date, all my entities use java.util.Calendar to store dates. So the question is: Is there a clean way to work with DateTimeField and java.util.Calendar "targe

RE: DateTimeField - changing the format of the date

2008-11-20 Thread Yazeed Isaacs
Hey guys Thanks for the help, but I found the solution. Its so easy. :D The DateTimeField class has a method called newDateTextField(PropertyModel model, String id). All that I did was override this method as follows: DateTimeField dateToField = new DateTimeField("dateToField&

Re: DateTimeField - changing the format of the date

2008-11-19 Thread Matthias Keller
terLocator; } class MyDateConverter extends DateConverter where I overrode getDateFormat: public DateFormat getDateFormat (Locale locale) { return new SimpleDateFormat("dd/MM/", locale); } Then any textfield marked as Date will be converted using this date format. I haven&

Re: DateTimeField - changing the format of the date

2008-11-19 Thread Jeremy Thomerson
e format of the default displayed date > "MM/dd/yy" to "dd/MM/yyyy" when using the DateTimeField. > > I cannot find any resource online that shows how this is implemented. Is > this even possible? > &

DateTimeField - changing the format of the date

2008-11-19 Thread Yazeed Isaacs
Hi I would like to change the format of the default displayed date "MM/dd/yy" to "dd/MM/" when using the DateTimeField. I cannot find any resource online that shows how this is implemented. Is this even possible? Yazeed Isaacs - Java Develo

DateTimeField setDate not taking hours and minutes

2008-10-03 Thread Marieke Vandamme
Hello, can somebody tell me why the setDate function in DateTimeField doesn't take the hours and minutes to generate the date to put into the defaultmodel? I hope it's a bug. If not, why is it implemented that way? Thanks ! Marieke. -- View this message in context: http://www.

Re: DateTimeField validation

2008-08-21 Thread Martijn Dashorst
o be entered but I'm not too familiar with how people use a 24 hour clock. > > Jim > > > jnorris wrote: >> >> The DateTimeField validation message for hours for a 12-hour format >> indicates that the date must be between 0 and 12. Shouldn't this be >>

Re: DateTimeField validation

2008-08-20 Thread jnorris
people use a 24 hour clock. Jim jnorris wrote: > > The DateTimeField validation message for hours for a 12-hour format > indicates that the date must be between 0 and 12. Shouldn't this be > between 1 and 12? The validator has the following: > > protected Map

DateTimeField validation

2008-08-20 Thread jnorris
The DateTimeField validation message for hours for a 12-hour format indicates that the date must be between 0 and 12. Shouldn't this be between 1 and 12? The validator has the following: protected Map variablesMap(IValidatable validatable) { final Map map = super.variabl

  1   2   >