Re: Code completion for a component's binding
That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
In my opinion, go for Joda Time, but perhaps wait how the integration of that in Java 8 turns out in detail. Am 16.11.2012 um 10:17 schrieb Johann Werner j...@oyosys.de: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Easiest migration would be a SimpleDateFormat that was extended or wrapped to understand the NSTimestampFromatter symbols. Or perhaps the same for DateTimeFormatter from Joda Time? I am not sure if we should stick with core Java classes for the core functionality, or go for fancy with Joda and add a dependancy. Chuck On 2012-11-16, at 1:17 AM, Johann Werner wrote: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
On 2012-11-15, at 4:19 PM, Johnny Miller wrote: I should for my own betterment... I wonder what would be the smart way to do it? This one might not be too hard. And the community does need more people who can make changes to the plugin. In the API editor you do get a list of choices that corresponds to the list in Sharpy's email. Maybe if one of the choices was Custom a table could appear, not unlike the bindings, where you could add the suggestions. But where would you store the suggestions? It would seem, to me, that the smartest place would be in the api file. If we just added an attribute like default-suggestions whose values was a some kind of delimited string of suggestions do you think that would break anything? That sounds like a good plan. I don't think it would break anything. Chuck On Nov 15, 2012, at 2:05 PM, Chuck Hill ch...@global-village.net wrote: You could always extend WOLips! :-) On 2012-11-15, at 3:57 PM, Johnny Miller wrote: Bummer... Thanks anyway! On Nov 15, 2012, at 1:52 PM, Michael Sharp getsh...@gmail.com wrote: They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing
Re: Code completion for a component's binding
If all goes well, Java 8 will have a new Date/Time API that's based on Joda Time. JSR-310 project lead is the author of Joda Time. http://jcp.org/en/jsr/detail?id=310 https://github.com/ThreeTen/threeten Am 16.11.2012 um 18:11 schrieb Chuck Hill ch...@global-village.net: Easiest migration would be a SimpleDateFormat that was extended or wrapped to understand the NSTimestampFromatter symbols. Or perhaps the same for DateTimeFormatter from Joda Time? I am not sure if we should stick with core Java classes for the core functionality, or go for fancy with Joda and add a dependancy. Chuck On 2012-11-16, at 1:17 AM, Johann Werner wrote: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Then perhaps we should make an ERXDateTimeFormatter that encapsulates a SimpleDateFormat object now and later on we can replace it with something from Joda/Java 8+/… without changing the outer class / API. Am 16.11.2012 um 18:11 schrieb Chuck Hill ch...@global-village.net: Easiest migration would be a SimpleDateFormat that was extended or wrapped to understand the NSTimestampFromatter symbols. Or perhaps the same for DateTimeFormatter from Joda Time? I am not sure if we should stick with core Java classes for the core functionality, or go for fancy with Joda and add a dependancy. Chuck On 2012-11-16, at 1:17 AM, Johann Werner wrote: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
+1 Envoyé de mon iPhone Le 2012-11-16 à 14:29, Johann Werner j...@oyosys.de a écrit : Then perhaps we should make an ERXDateTimeFormatter that encapsulates a SimpleDateFormat object now and later on we can replace it with something from Joda/Java 8+/… without changing the outer class / API. Am 16.11.2012 um 18:11 schrieb Chuck Hill ch...@global-village.net: Easiest migration would be a SimpleDateFormat that was extended or wrapped to understand the NSTimestampFromatter symbols. Or perhaps the same for DateTimeFormatter from Joda Time? I am not sure if we should stick with core Java classes for the core functionality, or go for fancy with Joda and add a dependancy. Chuck On 2012-11-16, at 1:17 AM, Johann Werner wrote: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
I'd say go with Joda now, as it's already in ERJars anyway, so there's no dependency to add. Even if Java 8 appears in 2013, it will still be a long time until we can make Java 8 a requirement to use Wonder for everybody. Am 16.11.2012 um 20:28 schrieb Johann Werner j...@oyosys.de: Then perhaps we should make an ERXDateTimeFormatter that encapsulates a SimpleDateFormat object now and later on we can replace it with something from Joda/Java 8+/… without changing the outer class / API. Am 16.11.2012 um 18:11 schrieb Chuck Hill ch...@global-village.net: Easiest migration would be a SimpleDateFormat that was extended or wrapped to understand the NSTimestampFromatter symbols. Or perhaps the same for DateTimeFormatter from Joda Time? I am not sure if we should stick with core Java classes for the core functionality, or go for fancy with Joda and add a dependancy. Chuck On 2012-11-16, at 1:17 AM, Johann Werner wrote: That's true but it is probably good to move to something supported as Apple must have had a good reason to deprecate that class. The community will have to decide which class should take its succession though: SimpleDateFormat from standard Java (not thread safe) FastDateFormat from commons-lang (only formatting, no parsing!) DateTimeFormatter from Joda Time ERXTimestampFormatter from Wonder (boo, it's a wolf in sheep's clothing as it is a subclass of NSTimestampFromatter ;-) ) ERXOneMoreThing (to be written by…?) … Am 16.11.2012 um 10:01 schrieb Maik Musall m...@selbstdenker.ag: Am 16.11.2012 um 07:57 schrieb Johann Werner j...@oyosys.de: That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. You mean, as in: won't be supported in a future release of WebObjects? ;~) Maik (I'm with you on this, of course) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Code completion for a component's binding
Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Create an .api file (it's a tab in WOLips on the component) and put what bindings you want in there. -Lon On Thu, Nov 15, 2012 at 3:14 PM, Johnny Miller jlmil...@kahalawai.comwrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com | e-mail +jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com This email sent to lon.varsc...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Hi Lon, Actually, I'm wondering how to add code completion to the value of the binding. i.e. when you set value of the dateformat binding for WOString the code completion will give you a suggested list of possible date formats i.e. %m/%d/%y I image that could also be set in the .api file but I don't believe WOLips supports it? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Nov 15, 2012, at 1:30 PM, Lon Varscsak lon.varsc...@gmail.com wrote: Create an .api file (it's a tab in WOLips on the component) and put what bindings you want in there. -Lon On Thu, Nov 15, 2012 at 3:14 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com This email sent to lon.varsc...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Ah, gotcha…yeah for values like dateformat there isn't any completion (that I know of). For other values like value it will complete after the $. So wo:str value=$myV can complete to myVar. -Lon On Thu, Nov 15, 2012 at 4:39 PM, Johnny Miller jlmil...@kahalawai.comwrote: Hi Lon, Actually, I'm wondering how to add code completion to the value of the binding. i.e. when you set value of the dateformat binding for WOString the code completion will give you a suggested list of possible date formats i.e. %m/%d/%y I image that could also be set in the .api file but I don't believe WOLips supports it? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com | e-mail +jlmil...@kahalawai.com On Nov 15, 2012, at 1:30 PM, Lon Varscsak lon.varsc...@gmail.com wrote: Create an .api file (it's a tab in WOLips on the component) and put what bindings you want in there. -Lon On Thu, Nov 15, 2012 at 3:14 PM, Johnny Miller jlmil...@kahalawai.comwrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website http://www.kahalawai.com/ | e-mail +jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com This email sent to lon.varsc...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
I think what you are referring to is hard coded for specific binding types in the component editor. Chuck On 2012-11-15, at 3:39 PM, Johnny Miller wrote: Hi Lon, Actually, I'm wondering how to add code completion to the value of the binding. i.e. when you set value of the dateformat binding for WOString the code completion will give you a suggested list of possible date formats i.e. %m/%d/%y I image that could also be set in the .api file but I don't believe WOLips supports it? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Nov 15, 2012, at 1:30 PM, Lon Varscsak lon.varsc...@gmail.com wrote: Create an .api file (it's a tab in WOLips on the component) and put what bindings you want in there. -Lon On Thu, Nov 15, 2012 at 3:14 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com This email sent to lon.varsc...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Bummer... Thanks anyway! On Nov 15, 2012, at 1:52 PM, Michael Sharp getsh...@gmail.com wrote: They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
You could always extend WOLips! :-) On 2012-11-15, at 3:57 PM, Johnny Miller wrote: Bummer... Thanks anyway! On Nov 15, 2012, at 1:52 PM, Michael Sharp getsh...@gmail.com wrote: They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
I should for my own betterment... I wonder what would be the smart way to do it? In the API editor you do get a list of choices that corresponds to the list in Sharpy's email. Maybe if one of the choices was Custom a table could appear, not unlike the bindings, where you could add the suggestions. But where would you store the suggestions? It would seem, to me, that the smartest place would be in the api file. If we just added an attribute like default-suggestions whose values was a some kind of delimited string of suggestions do you think that would break anything? On Nov 15, 2012, at 2:05 PM, Chuck Hill ch...@global-village.net wrote: You could always extend WOLips! :-) On 2012-11-15, at 3:57 PM, Johnny Miller wrote: Bummer... Thanks anyway! On Nov 15, 2012, at 1:52 PM, Michael Sharp getsh...@gmail.com wrote: They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Code completion for a component's binding
Am 16.11.2012 um 00:52 schrieb Michael Sharp getsh...@gmail.com: They seem to be defined in code in WOLips. The possible values for defaults here: org.objectstyle.wolips.bindings.api.IApiBinding public static final String[] ALL_DEFAULTS = new String[] { Undefined, IApiBinding.ACTIONS_DEFAULT, Boolean, YES/NO, Date Format Strings, Number Format Strings, MIME Types, Direct Actions, Direct Action Classes, Page Names, Frameworks, Resources }; And dealt with here org.objectstyle.wolips.bindings.api.ApiUtils eg if (Date Format Strings.equals(defaultsName)) { validValues.add(\%m/%d/%y\); validValues.add(\%B %d, %Y\); validValues.add(\%b %d, %Y\); validValues.add(\%A, %B %d, %Y\); validValues.add(\%A, %b %d, %Y\); validValues.add(\%d.%m.%y\); validValues.add(\%d %B %y\); validValues.add(\%d %b %y\); validValues.add(\%A %d %B %Y\); validValues.add(\%A %d %b %Y\); validValues.add(\%x\); validValues.add(\%H:%M:%S\); validValues.add(\%I:%M:%S %p\); validValues.add(\%H:%M\); validValues.add(\%I:%M %p\); validValues.add(\%X\); } That should probably be changed to SimpleDateFormat strings as NSTimestampFormatter understands those too and is deprecated. Sharpy On 16/11/2012, at 9:41 AM, Michael Sharp getsh...@gmail.com wrote: I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: binding name=dateformat defaults=Date Format Strings/ … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: binding name=dateformat defaults=Numbers Format Strings/ has the expected effect - number format completion choices. I guess these come from somewhere in WOLips, not sure if they're configurable. Will keep digging. Sharpy.. On 16/11/2012, at 8:14 AM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I would like to add code completion to a component the way in WOString it will give you a list of suggested number or date formats for the respective binding. How do you declare this in your component? Thanks in advance, Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com This email sent to getsh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com