RE: how to change format in DateTimeField?
I went ahead and added the Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with the attached code granting the license. All the code is original and unborrowed except the trivial "public domain" snippet that adds an escape function to JavaScript's RegExp. Let me know if there is anything else I need to do- thanks for the help! -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 3:34 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? It is your code, so we can't legally license it ;-) If you don't mind people taking your code without contributing back the following licenses are rather equivalent: - BSD (http://www.opensource.org/licenses/bsd-license.php) - MIT (http://www.opensource.org/licenses/mit-license.php) If you do mind people taking your code without contributing back, the (L)GPL is what you are looking for. But that will hinder adoption with for instance Wicket. If you want maximum compatibility with Wicket, then you should choose the Apache license. The easiest way to contribute it would be to attach it to a JIRA issue, and check the 'may be used in the project' checkmark. I see you already have possible sponsors in Eelco and Gerolf, so inclusion in wicket-extensions wouldn't be too far off. This all assumes of course that you are the owner of the copyright of your contribution and didn't use another javascript library as a base. Please note that I'm not implying anything wrong, but it is easy to mess things up, and messy to clean up after the fact. Martijn On 10/18/07, William Hoover <[EMAIL PROTECTED]> wrote: > I see... Not sure how the licensing works, but whatever is the suggested > license is fine with me. I'm not much of a business guru and wouldn't mind > leaving it up to you Wicket folks ;o) I just need to know what the next step > is so that others can make use of it :o) > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - 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: how to change format in DateTimeField?
It is your code, so we can't legally license it ;-) If you don't mind people taking your code without contributing back the following licenses are rather equivalent: - BSD (http://www.opensource.org/licenses/bsd-license.php) - MIT (http://www.opensource.org/licenses/mit-license.php) If you do mind people taking your code without contributing back, the (L)GPL is what you are looking for. But that will hinder adoption with for instance Wicket. If you want maximum compatibility with Wicket, then you should choose the Apache license. The easiest way to contribute it would be to attach it to a JIRA issue, and check the 'may be used in the project' checkmark. I see you already have possible sponsors in Eelco and Gerolf, so inclusion in wicket-extensions wouldn't be too far off. This all assumes of course that you are the owner of the copyright of your contribution and didn't use another javascript library as a base. Please note that I'm not implying anything wrong, but it is easy to mess things up, and messy to clean up after the fact. Martijn On 10/18/07, William Hoover <[EMAIL PROTECTED]> wrote: > I see... Not sure how the licensing works, but whatever is the suggested > license is fine with me. I'm not much of a business guru and wouldn't mind > leaving it up to you Wicket folks ;o) I just need to know what the next step > is so that others can make use of it :o) > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
There is no difference, you still can use DateTextField . All you have to do is update the datePattern to support also the time, like this: "dd/MM/yyy HH:mm:ss" Alex raybristol wrote: > > Thanks for your reply, I actually mean DateTimeField and I want to do the > same thing as in DateTextField, because I need no only the date but the > time as well. > > Many thanks > Ray > > > > > Alex Objelean wrote: >> >> You mean DateTextField (instead of DateTimeField). It has also this >> constructor: >> DateTextField(String id, IModel model, String datePattern) >> where datePattern can be: "dd/MM/". >> >> Alex >> >> >> raybristol wrote: >>> >>> there is a good example about use DateTextfield in : >>> http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage >>> >>> however, I want to add the time field as well, so I found DateTimeField >>> which is working, however i don't know how to change the format of the >>> date it displayed, in DateTextfield I believe I can do that with using >>> its constructor: new DateTextField("dateTextField", new >>> PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but >>> DateTimeField only has a constructor: new >>> DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) >>> so I don't know how to change its format, also I want to prevent user to >>> type in invalid date in the text field as well, becuase if user type >>> some letters in the textfield next to the date picker then the date >>> picker won't start properly as well. >>> >>> I might asking dump question becuase I am too new to wicket (I use >>> asp.net before). >>> >>> >>> Many thanks! >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13281652 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: how to change format in DateTimeField?
I see... Not sure how the licensing works, but whatever is the suggested license is fine with me. I'm not much of a business guru and wouldn't mind leaving it up to you Wicket folks ;o) I just need to know what the next step is so that others can make use of it :o) -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 2:57 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? On 10/18/07, William Hoover <[EMAIL PROTECTED]> wrote: > There are no licenses or dependencies. This is in itself a problem :). You really should pick a license, or make it "public domain". But the best way of ensuring compatibility with the rest of the world is to make it BSD or MIT licensed. Picking a (L)GPL license will ensure Wicket can't ever distribute it in the core. I also think wicketstuff-minis won't accept the contribution if you use (L)GPL. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - 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: how to change format in DateTimeField?
On 10/18/07, William Hoover <[EMAIL PROTECTED]> wrote: > There are no licenses or dependencies. This is in itself a problem :). You really should pick a license, or make it "public domain". But the best way of ensuring compatibility with the rest of the world is to make it BSD or MIT licensed. Picking a (L)GPL license will ensure Wicket can't ever distribute it in the core. I also think wicketstuff-minis won't accept the contribution if you use (L)GPL. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
> > Does it work well? Any issues with licenses/ dependencies? If it is a > big improvement, I'd be ok with it if the rest agrees. A good mask > component imho would fit wicket-extensions. Though we have to be > careful not get ourselves into more maintenance obligations. yep, i totally agree with. also, thanks for pointing out possible limitations/restrictions/concerns, which i should have done in the first place. Gerolf
RE: how to change format in DateTimeField?
There are no licenses or dependencies. The script from the previous post is a lightweight js mask solution that I created to handle needs that my company has had in the past. I have not migrated a Wicket component to use it as of yet, but it would be very simple to accomplish seeing its just a js call when the input text gains focus. There is not any external variables stored in the dom that would cause namespace conflicts (other than the "InputTextMask" namespace that could possibly be migrated to a wicket registered namespace). Let me know what your thoughts are on this. -Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 2:16 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? > maybe we could use the input text mask ( > http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned > by william in a thread recently. > but then it would have to be in a wicket core project (eg. > wicket-extensions) instead of the suggested wicketstuff-minis... Does it work well? Any issues with licenses/ dependencies? If it is a big improvement, I'd be ok with it if the rest agrees. A good mask component imho would fit wicket-extensions. Though we have to be careful not get ourselves into more maintenance obligations. Eelco - 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: how to change format in DateTimeField?
> maybe we could use the input text mask ( > http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned > by william in a thread recently. > but then it would have to be in a wicket core project (eg. > wicket-extensions) instead of the suggested wicketstuff-minis... Does it work well? Any issues with licenses/ dependencies? If it is a big improvement, I'd be ok with it if the rest agrees. A good mask component imho would fit wicket-extensions. Though we have to be careful not get ourselves into more maintenance obligations. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to change format in DateTimeField?
Would it make more sense to add it to extensions instead? -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:39 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? On 10/18/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > also I want to prevent user to type in > > invalid date in the text field as well, becuase if user type some > letters in > > the textfield next to the date picker then the date picker won't start > > properly as well. > > I think there's an open issue for that. > maybe we could use the input text mask ( http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned by william in a thread recently. but then it would have to be in a wicket core project (eg. wicket-extensions) instead of the suggested wicketstuff-minis... Gerolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
On 10/18/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > also I want to prevent user to type in > > invalid date in the text field as well, becuase if user type some > letters in > > the textfield next to the date picker then the date picker won't start > > properly as well. > > I think there's an open issue for that. > maybe we could use the input text mask ( http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned by william in a thread recently. but then it would have to be in a wicket core project (eg. wicket-extensions) instead of the suggested wicketstuff-minis... Gerolf
Re: how to change format in DateTimeField?
> however, I want to add the time field as well, so I found DateTimeField > which is working, however i don't know how to change the format of the date > it displayed, in DateTextfield I believe I can do that with using its > constructor: new DateTextField("dateTextField", new > PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but > DateTimeField only has a constructor: new > DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) so I > don't know how to change its format, Provide a custom datetextfield by overriding newDateTextField(String, PropertyModel) > also I want to prevent user to type in > invalid date in the text field as well, becuase if user type some letters in > the textfield next to the date picker then the date picker won't start > properly as well. I think there's an open issue for that. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
Thanks for your reply, I actually mean DateTimeField and I want to do the same thing as in DateTextField, because I need no only the date but the time as well. Many thanks Ray Alex Objelean wrote: > > You mean DateTextField (instead of DateTimeField). It has also this > constructor: > DateTextField(String id, IModel model, String datePattern) > where datePattern can be: "dd/MM/". > > Alex > > > raybristol wrote: >> >> there is a good example about use DateTextfield in : >> http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage >> >> however, I want to add the time field as well, so I found DateTimeField >> which is working, however i don't know how to change the format of the >> date it displayed, in DateTextfield I believe I can do that with using >> its constructor: new DateTextField("dateTextField", new >> PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but >> DateTimeField only has a constructor: new >> DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) >> so I don't know how to change its format, also I want to prevent user to >> type in invalid date in the text field as well, becuase if user type some >> letters in the textfield next to the date picker then the date picker >> won't start properly as well. >> >> I might asking dump question becuase I am too new to wicket (I use >> asp.net before). >> >> >> Many thanks! >> >> > > -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13276631 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: how to change format in DateTimeField?
You mean DateTextField (instead of DateTimeField). It has also this constructor: DateTextField(String id, IModel model, String datePattern) where datePattern can be: "mm/DD/". Alex raybristol wrote: > > there is a good example about use DateTextfield in : > http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage > > however, I want to add the time field as well, so I found DateTimeField > which is working, however i don't know how to change the format of the > date it displayed, in DateTextfield I believe I can do that with using > its constructor: new DateTextField("dateTextField", new > PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but > DateTimeField only has a constructor: new > DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) so > I don't know how to change its format, also I want to prevent user to type > in invalid date in the text field as well, becuase if user type some > letters in the textfield next to the date picker then the date picker > won't start properly as well. > > I might asking dump question becuase I am too new to wicket (I use asp.net > before). > > > Many thanks! > > -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13274525 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to change format in DateTimeField?
there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField("dateTextField", new PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but DateTimeField only has a constructor: new DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) so I don't know how to change its format, also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I might asking dump question becuase I am too new to wicket (I use asp.net before). Many thanks! -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13272285 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]