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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
>
>
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
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
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
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
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
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);
?
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
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
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
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
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
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
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.
>
> ---
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
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
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) {
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
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
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
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
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
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:
>>
>&
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
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
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
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
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
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
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
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
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
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.
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
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.
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
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
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
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
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
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
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
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
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
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
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
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)
>
&
:
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
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;
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
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
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
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
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
>
> --
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,
: 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
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
--
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
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
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
.
> 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
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
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
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
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.
>
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
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
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
://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
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
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
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&
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&
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?
>
&
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
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.
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
>>
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
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 - 100 of 143 matches
Mail list logo