Re: JSConfirmPanel vs file download?
Hi, Use ERXJSConfirmPanel. JSConfirmPanel uses a broken invokeAction implementation. Sharpy. > On 31 Aug 2022, at 11:34 pm, ocs--- via Webobjects-dev > wrote: > > Hi there, > > bumped into a weird problem. I allow users to download a file, pretty > standard code > > === > WOActionResults downloadListing() { > WOResponse wor=new WOResponse() > wor.setHeader("application/pdf; > name=\"Listing\"","content-type") > wor.setHeader("attachment; > filename=\"Lisitng.pdf\"","content-disposition") > wor.setContent(... my data ...) > return wor > } > === > Get listing > === > > This works like a charm. Nevertheless, the client wants to guard the download > by a JS alert; and if I change the template to > > === >confirmMessage="Really?">Get listing > === > > I get this exception: > > === > java.lang.ClassCastException: com.webobjects.appserver.WOResponse cannot be > cast to com.webobjects.appserver.WOComponent > [2022-8-31 15:32:28 CEST] java.lang.ClassCastException: > com.webobjects.appserver.WOResponse cannot be cast to > com.webobjects.appserver.WOComponent > at > com.webobjects.woextensions.JSComponent.invokeAction(JSComponent.java:87) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > com.webobjects.woextensions.KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:32) > at > com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134) > at > com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324) > at > com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736) > at > com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447) > at > com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212) > at > com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804) > at > com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50) > at > com.webobjects.appserver._private.WOGenericElement.invokeAction(WOGenericElement.java:121) > at > com.webobjects.appserver._private.WOGenericContainer.invokeAction(WOGenericContainer.java:27) > at > com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) > at > com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) > at > com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) > ... ... ... > === > > How to fix the problem? Thanks! > OC > ___ > 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: is there a trick to know that a property of EO did change?
ERXGenericRecord.changesFromCommittedSnapshot if (changesFromCommittedSnapshot().containsKey(MY_KEY)) { propertyDidChange(MY_KEY); } As mentioned by Aaron this could be wedged into overridden setters, validate methods or even worked into your eogen template if you wanted this behaviour model wide. It might also be worth looking at the audit trail implementation in ERCoreBusinessLogic for ideas on a configurable observer/notifier. Sharpy. > On 25 May 2020, at 10:40 am, ocs--- via Webobjects-dev > wrote: > > Hi there, > > I'd need to get a notification whenever a property of my EO changes, be it > directly through a setter, or through an inverse-relationship being > maintained, or through an object of an M:N deleted, whatever way. Something > like > > class MyEO extends ERXGenericRecord { > void propertyDidChange(String key) { >... to be called just after any property of mine changes, with its key ... > } > } > > Does EOF or WOnder provide something like that? Whatever I try, I can't find > it. I could easily observe willChanges of course, but that's something rather > different... > > Thanks, > OC > > ___ > 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: Maven builds and Generate Bundles
Thanks Hugi. I can live with workspace wide "generate bundles". Sharpy. > On 6 Mar 2019, at 6:55 pm, Hugi Thordarson wrote: > > I'm not aware of a way to have Maven builds function without generating > bundles :-/. > > I thought this would be a drag on performance (since I remembered bundle-less > being a huge performance boost) but it hasn't been, really (although my > projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent > of SSDs has made bundle generation less of a drag? > > - hugi > > >> On 6 Mar 2019, at 04:59, Michael Sharp > <mailto:getsh...@gmail.com>> wrote: >> >> Hi All, >> >> As I continue my Maven journey I now find myself with a workspace consisting >> of both Maven and Ant WO projects. All my legacy builds are bundle-less >> while my Maven projects require the Generate Bundles WOLips preference >> checked. I see the same behaviour in both new and migrated Maven projects. >> >> Is it possible to run Maven WO apps without Generate Bundles checked? >> Ideally I’d like to leave my debug/run launch configs for my legacy >> applications unchanged. >> >> Thanks >> >> Sharpy. >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com >> <mailto:Webobjects-dev@lists.apple.com>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is >> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is> >> >> This email sent to h...@karlmenn.is > ___ 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
Maven builds and Generate Bundles
Hi All, As I continue my Maven journey I now find myself with a workspace consisting of both Maven and Ant WO projects. All my legacy builds are bundle-less while my Maven projects require the Generate Bundles WOLips preference checked. I see the same behaviour in both new and migrated Maven projects. Is it possible to run Maven WO apps without Generate Bundles checked? Ideally I’d like to leave my debug/run launch configs for my legacy applications unchanged. Thanks Sharpy. ___ 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: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap
A wiki update would be good. I’ve updated README.md in the 4.10 repo to reference the appropriate version of Eclipse and WOLips update site URL. - Sharpy. > On 20 Feb 2019, at 7:03 pm, Theodore Petrosky wrote: > > ??? > > should the wiki be updated to reflect this URL? > > I hate the idea of having to examine the mail archives to find this. > > Ted > >> On Feb 18, 2019, at 7:38 PM, Henrique Prange > <mailto:hpra...@gmail.com>> wrote: >> >> Hey guys, >> >> Just to let you know that I've merged Michael's pull request into the >> eclipse_4_10 branch. Maik did set up a new Jenkins job to build from changes >> on that branch. You can test it by pointing your WOLips update site to: >> >> https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist/ >> >> <https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist/> >> >> It looks good on my machine. >> >> Cheers, >> >> HP >> >>> On Feb 17, 2019, at 7:52 PM, Michael Sharp >> <mailto:getsh...@gmail.com>> wrote: >>> >>> Hi Henrique, >>> >>> Thank you, PR here https://github.com/wocommunity/wolips/pull/139 >>> <https://github.com/wocommunity/wolips/pull/139> >>> >>> Cheers, >>> >>> - Sharpy. >>> >>> >>>> On 18 Feb 2019, at 3:11 am, Henrique Prange >>> <mailto:hpra...@gmail.com>> wrote: >>>> >>>> Hi Michael, >>>> >>>> I've pushed a new branch eclipse_4_10 to track changes and fixes for >>>> Eclipse 2018-12 momentarily. Would you mind to create a pull request? >>>> >>>> Cheers, >>>> >>>> HP >>>> >>>>> On Feb 14, 2019, at 10:00 PM, Michael Sharp >>>> <mailto:getsh...@gmail.com>> wrote: >>>>> >>>>> Hi Samuel, >>>>> >>>>> I’m happy to create a pull request but I’m not sure there’s an >>>>> appropriate destination branch at wocommunity/wolips yet. >>>>> >>>>> I’d like to see jenkins.wocommunity building this too. I have jenkins >>>>> building it here with both rebel and jprofiler support, although I’m >>>>> unable to test those particular features. >>>>> >>>>> - Sharpy >>>>> >>>>> ps: my last message was sent from an email address that is not registered >>>>> for the list, this one should make it. It’s been a while.. >>>>> >>>>>> On 15 Feb 2019, at 1:50 am, Samuel Pelletier >>>>> <mailto:sam...@samkar.com>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I managed to build your branch with the readme content (There are too >>>>>> many build instruction out there...) and after fixing the wo.root in the >>>>>> wobuild.property file that was not up to date. I built without jprofiler >>>>>> and without jrebel. >>>>>> >>>>>> AddKey works again. >>>>>> >>>>>> It would be a good thing to create the official repo with these and >>>>>> start the automatic builds. What is the next step to put that in place ? >>>>>> >>>>>> Regards, >>>>>> >>>>>> Samuel >>>>>> >>>>>>> Le 13 févr. 2019 à 18:29, Michael Sharp >>>>>> <mailto:mich...@getsharp.org>> a écrit : >>>>>>> >>>>>>> I’m building a WOLips4.10 variation locally from my branch at >>>>>>> https://github.com/getsharp/wolips/tree/eclipse_4_10 >>>>>>> <https://github.com/getsharp/wolips/tree/eclipse_4_10> >>>>>>> >>>>>>> The changes to their internal JDT APIs (such as StubUtility) was a >>>>>>> pretty good incentive to leave them alone all together. >>>>>>> >>>>>>> Add Key and a few other broken features are fixed for me with this >>>>>>> build. >>>>>>> >>>>>>> Sharpy. >>>>>>> >>>>>>> >>>>>>>> On 14 Feb 2019, at 7:37 am, Samuel Pelletier >>>>>>> <mailto:sam...@samkar.com>> wrote: >>>>>>>>
Re: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap
Hi Henrique, Thank you, PR here https://github.com/wocommunity/wolips/pull/139 <https://github.com/wocommunity/wolips/pull/139> Cheers, - Sharpy. > On 18 Feb 2019, at 3:11 am, Henrique Prange wrote: > > Hi Michael, > > I've pushed a new branch eclipse_4_10 to track changes and fixes for Eclipse > 2018-12 momentarily. Would you mind to create a pull request? > > Cheers, > > HP > >> On Feb 14, 2019, at 10:00 PM, Michael Sharp > <mailto:getsh...@gmail.com>> wrote: >> >> Hi Samuel, >> >> I’m happy to create a pull request but I’m not sure there’s an appropriate >> destination branch at wocommunity/wolips yet. >> >> I’d like to see jenkins.wocommunity building this too. I have jenkins >> building it here with both rebel and jprofiler support, although I’m unable >> to test those particular features. >> >> - Sharpy >> >> ps: my last message was sent from an email address that is not registered >> for the list, this one should make it. It’s been a while.. >> >>> On 15 Feb 2019, at 1:50 am, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote: >>> >>> Hi, >>> >>> I managed to build your branch with the readme content (There are too many >>> build instruction out there...) and after fixing the wo.root in the >>> wobuild.property file that was not up to date. I built without jprofiler >>> and without jrebel. >>> >>> AddKey works again. >>> >>> It would be a good thing to create the official repo with these and start >>> the automatic builds. What is the next step to put that in place ? >>> >>> Regards, >>> >>> Samuel >>> >>>> Le 13 févr. 2019 à 18:29, Michael Sharp >>> <mailto:mich...@getsharp.org>> a écrit : >>>> >>>> I’m building a WOLips4.10 variation locally from my branch at >>>> https://github.com/getsharp/wolips/tree/eclipse_4_10 >>>> <https://github.com/getsharp/wolips/tree/eclipse_4_10> >>>> >>>> The changes to their internal JDT APIs (such as StubUtility) was a pretty >>>> good incentive to leave them alone all together. >>>> >>>> Add Key and a few other broken features are fixed for me with this build. >>>> >>>> Sharpy. >>>> >>>> >>>>> On 14 Feb 2019, at 7:37 am, Samuel Pelletier >>>> <mailto:sam...@samkar.com>> wrote: >>>>> >>>>> Hi all, >>>>> >>>>> I experience Eclipse 2018-12 with WOLips and DCEVM and the latest WOLips >>>>> and it works quite well to date. >>>>> >>>>> I use the openjdk11 with DCEVM and Hotswap integrated found at this >>>>> location, it is important to use the latest (+8 at this time) version if >>>>> you use Groovy. >>>>>https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases >>>>> <https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases> >>>>> >>>>> This download contains the entire JVM directory, to install it : >>>>> cd /Library/Java/JavaVirtualMachines/ >>>>> sudo tar zxf /Users/yourDownloadLocation/java11-openjdk-dcevm-osx.tar.gz >>>>> Then go to Eclipse preferences to add the new JVM. >>>>> >>>>> This JVM is for dev only, it always starts with DCEVM and Hotswap. DCEVM >>>>> is a free hot code replacement like JRebel and HotSwap contains plugins >>>>> to help the engine. >>>>> >>>>> Apps compile and run faster (real or placebo effet) than my previous >>>>> setup. >>>>> >>>>> The only downside to date is the addKey in the WO editor that no longer >>>>> works. >>>>> >>>>> It fail with java.lang.NoClassDefFoundError: >>>>> org/eclipse/jdt/internal/corext/codemanipulation/StubUtility. I found the >>>>> addKey problem in WOLips, the team moved an internal classe used by this >>>>> function in the AddKeyInfo class. Here is the import that need to change >>>>> in this file. >>>>> >>>>> -import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility; >>>>> +import org.eclipse.jdt.internal.core.manipulation.StubUtility; >>>>> >>>>> My problem now is I do not have a working WOLips build environment to >&
Re: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap
Hi Samuel, I’m happy to create a pull request but I’m not sure there’s an appropriate destination branch at wocommunity/wolips yet. I’d like to see jenkins.wocommunity building this too. I have jenkins building it here with both rebel and jprofiler support, although I’m unable to test those particular features. - Sharpy ps: my last message was sent from an email address that is not registered for the list, this one should make it. It’s been a while.. > On 15 Feb 2019, at 1:50 am, Samuel Pelletier wrote: > > Hi, > > I managed to build your branch with the readme content (There are too many > build instruction out there...) and after fixing the wo.root in the > wobuild.property file that was not up to date. I built without jprofiler and > without jrebel. > > AddKey works again. > > It would be a good thing to create the official repo with these and start the > automatic builds. What is the next step to put that in place ? > > Regards, > > Samuel > >> Le 13 févr. 2019 à 18:29, Michael Sharp > <mailto:mich...@getsharp.org>> a écrit : >> >> I’m building a WOLips4.10 variation locally from my branch at >> https://github.com/getsharp/wolips/tree/eclipse_4_10 >> <https://github.com/getsharp/wolips/tree/eclipse_4_10> >> >> The changes to their internal JDT APIs (such as StubUtility) was a pretty >> good incentive to leave them alone all together. >> >> Add Key and a few other broken features are fixed for me with this build. >> >> Sharpy. >> >> >>> On 14 Feb 2019, at 7:37 am, Samuel Pelletier >> <mailto:sam...@samkar.com>> wrote: >>> >>> Hi all, >>> >>> I experience Eclipse 2018-12 with WOLips and DCEVM and the latest WOLips >>> and it works quite well to date. >>> >>> I use the openjdk11 with DCEVM and Hotswap integrated found at this >>> location, it is important to use the latest (+8 at this time) version if >>> you use Groovy. >>> https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases >>> <https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases> >>> >>> This download contains the entire JVM directory, to install it : >>> cd /Library/Java/JavaVirtualMachines/ >>> sudo tar zxf /Users/yourDownloadLocation/java11-openjdk-dcevm-osx.tar.gz >>> Then go to Eclipse preferences to add the new JVM. >>> >>> This JVM is for dev only, it always starts with DCEVM and Hotswap. DCEVM is >>> a free hot code replacement like JRebel and HotSwap contains plugins to >>> help the engine. >>> >>> Apps compile and run faster (real or placebo effet) than my previous setup. >>> >>> The only downside to date is the addKey in the WO editor that no longer >>> works. >>> >>> It fail with java.lang.NoClassDefFoundError: >>> org/eclipse/jdt/internal/corext/codemanipulation/StubUtility. I found the >>> addKey problem in WOLips, the team moved an internal classe used by this >>> function in the AddKeyInfo class. Here is the import that need to change in >>> this file. >>> >>> -import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility; >>> +import org.eclipse.jdt.internal.core.manipulation.StubUtility; >>> >>> My problem now is I do not have a working WOLips build environment to test >>> this. I tried to follow the Wiki instruction but I only get fail build du >>> to missing something. >>> >>> If someone has a working WOLips development setup, please update it with >>> Eclipse 2018-12 and apply my patch to build a new WOLips. This will require >>> a new WOLips version for Eclipse 4.10+ since this code will no longer works >>> with the previous version. >>> >>> Samuel >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com >>> <mailto:Webobjects-dev@lists.apple.com>) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com >>> <https://lists.apple.com/mailman/options/webobjects-dev/getsharp%40gmail.com> >>> >>> This email sent to getsh...@gmail.com <mailto: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/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: The WOCommunity slack channel
Yes please! I’ve been using Slack for Uni, the native Mac app is pretty good. Sharpy.. On 6/09/2016, 10:01 PM, "Hugi Thordarson"wrote: Hi all, just wanted to remind you that Samuel Pelletier created a slack channel for the WOCommunity. It’s a lovely little place for chatting about WO. Just let us know if you’d like an invite so you can join. Cheers, - hugi // Hugi Thordarson // http://www.loftfar.is/ // s. 895-6688 ___ 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
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
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: Creating an AjaxModalDialog wizard
On 11/08/2012, at 7:16 AM, Roger Perryman wrote: What is the correct way to create a wizard using AjaxModalDialog? I have a page that pops up a dialog using AMD. Inside this dialog, I would like to transition between pages, for example next/previous page. I've tried using AjaxSubmitButtons and using the action binding but that did not work. I'm thinking I could have an AjaxUpdateContainer around the contents of the entire dialog component and then do a SwitchComponent upon refreshing but that seems quite clunky. I was thinking that the component returned from the action binding would replace the current contents. AMD is an updatable container itself, without wrapping its contents in an AUC. AjaxModalDialog.update(WOContext, String) So setting some state in the action methods bound to AjaxSubmitButtons and calling update would allow you to make some determination on what to render within the AMD. As for whether there's something that makes in nicer in Wonder, I'm not sure. The answer is usually yes though! Sharpy.. I saw a brief discussion on this between Chuck, Mike and Clark Mueller back in 2008. Did anything like this make it into wonder? I'm still on Wonder 5.4. ___ 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: Fluffy Bunny question
I use folders for nesting models eogen files within the Resources directory. I have some frameworks with enough models to make expanding the Resources folder in WO Explorer visually disturbing, so recently tried the nesting approach and haven't had any problems. Running only ERXApplications on: Eclipse 3.7.2 WOLips 3.7.20120329.160038 Sharpy... On 19/07/2012, at 7:22 AM, arosenzw...@clinworx.com wrote: Hi WOrriors, Sorry for the cross post but it seems these days most questions get asked on the Apple lists regardless if they are pure Apple related or WOLips / Eclipse / WOnder related. Anyone have some advice for me? I'd like to put my EOModel files into Resources/model but fluffy bunny isn't happy. Do I have any recourse or must I obey the bunny? Many thanks, -- Aaron - Forwarded by Aaron Rosenzweig/hq/hjf on 07/18/2012 05:20 PM - From:Aaron Rosenzweig/hq/hjf To:Wonder Project wonder-d...@lists.sourceforge.net Date:07/16/2012 03:40 PM Subject:Fluffy Bunny question Hi WOrriors, I have an app and a separate WO framework. All my EO model files are in the Resources directory of the framework. In Eclipse, when I run the app, everything is fine. When I make a Resources/model folder in the framework and then move the EO model files into it, I can no longer run my app within Eclipse. The various EO model files cannot be found. Ok, so this is not-so-fluffy bunny but what if I really want to put everything in Resources/model at least during development? Where do I go to make this happen? Is it in WOlips itself or some XML file? Many thanks for any tips or pointers, -- Aaron ___ 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: Problem wo loop WOHyperlink
Hi Hugo, You could use a Component Action rather than a Direct Action in your WOHyperlink. .wod DeleteLink : WOHyperlink { action = deleteRecord; } The deleteRecord() method in your component class would need to: * call delete on your entryItem enterprise object * call saveChanges on your editingContext * return a WOComponent or WOActionResults implementation, eg context().page() Sharpy.. On 14/07/2012, at 7:52 AM, Hugo Cambero wrote: Hi Everybody I'm Hugo, I've been developing using WebObjects and Wonder Frameworks, I'm newbie in this topic. I have a problem and I hope you can help me. I'm developing a test application, I want to display a list of ERXGenericRecord, but, in the last column, I want to display a picture that can delete the selected row. Example: ID NAMELASTNAME USERNAME ACTIONS 120 Hugo Perezsun13 delete 160 Aaron Anthonyaaron12 delete If the user clicks the delete picture of the first row, the application deletes the record 120. I'm trying to do it using the next code: table tr tdID/TD tdName/td tdLastname/td tdUsername/td tdActions/td /tr wo:loop list=$allUsers item=$entryItem tr td wo:str value=$entryItem.primaryKey / /td td wo:str value=$entryItem.name / /td td wo:str value=$entryItem.lastname / /td td wo:str value=$entryItem.username / /td td webobject name = DeleteLink webobject name = DeleteImage/ /webobject /td /tr /wo:loop /table --- DeleteLink : WOHyperlink { directActionName=deleteRecord; } DeleteImage : WOImage { filename = css/img/boton/delete.png; mimeType=image/gif; } -- package your.app.components; import your.app.model.User; import com.webobjects.appserver.WOContext; import com.webobjects.foundation.NSArray; import er.extensions.components.ERXComponent; import er.extensions.eof.ERXEC; public class AdminPage extends ERXComponent { private User entryItem; public AdminPage(WOContext context) { super(context); } public User entryItem() { return entryItem; } public void setEntryItem(User entryItem) { this.entryItem = entryItem; } public NSArrayUser allUsers() { return User.fetchAllUsers( ERXEC.newEditingContext() ); } } I think, I can solve this problem, adding a key or data in GET method in the 'Delete Link', but, I don't know. What do you recommend me? What is the best way to do this exercise? Thanks! ___ 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
Getting your git chops on
After reading the Most Requested thread I thought I'd relay my experiences, not about WOnder but about SCM in general. This all occurred within a team environment but I'll refrain from using the term we as it's more about my perspective. For my projects, I used svn. Not really used, just sort of got by with it. I was cycling through the 2 svn/eclipse integration tools that I was aware of when one pissed me off more than the other, or with every eclipse upgrade. I was rarely using any svn features beyond commit/update after being repeatedly touched by getting into all sorts of trouble with branching and merging. I was profane x100 anytime I had to do any sort of moving, deleting or refactoring with folders/directories. It was a sheltered and sad SCM existence, but I was a bit daunted and overwhelmed with the git thing. I was putting up with the devil I knew.. We moved to git. The birds chirped and the sun shone! Well not quite, but the I think the key message is that we were using git. Mileage is invaluable. I had no choice but to manage my local and remote repos. I employed a standalone tool, SourceTree (maybe if I did this for svn I would have advanced with it too). Along with egit and cli I had an arsenal to work out any issues. I made mistakes and still do, but I don't find myself painted into a corner like a was so many times fighting with Subversion or Subclipse. For a project like WOnder I'd look at maintaining a private remote repo (bitbucket's good with unlimited private repos, or if you're so inclined, pay for github) to start with. Maintain the changes from the upstream master, make the mistakes munging/rebasing/merging/breaking your changes in with the upstream. Making these sort of messes on a public GitHub repo was/is definitely off putting for me.. For my projects I now I find myself creating feature branches for the most trivial of changes, because I can, confidently. I'm rebasing this, stashing that, pushing etc etc and generally using an SCM system as it was intended - I think :-/ Summary: if you want to use git, you have to use git.. Sharpy.. ___ 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: Fetch and sort based on a given list
ERXS maybe.. Eo.fetchEos(ec, Eo.KEY.in(keys), ERXS.ascs(keys)); Sharpy.. On 12/03/2012, at 9:50 AM, Ted Archibald wrote: The best I have so far is to loop through the array, but it's not the most elegant solution in the world... @SuppressWarnings({ rawtypes, unchecked }) public static T extends EOEnterpriseObject NSArrayT sortedArraySortedWithKeys(NSArray? extends EOEnterpriseObject array, ERXKeyString key, NSArrayString keys) { NSArray sortedArray = new NSArray(); for (int i = 0; i keys.count(); i++) { sortedArray = sortedArray.arrayByAddingObjectsFromArray(ATLArrayUtilities.filteredArrayWithQualifierEvaluation(array, key.eq(keys.objectAtIndex(i; } return sortedArray; } On Sun, Mar 11, 2012 at 5:26 PM, Ted Archibald ted.archib...@gmail.com wrote: Is there an easy way to fetch and sort an EO given an array of keys. The qualifier is obvious, but I don't see anything obvious on how to order the fetch based on the given list. NSArrayString keys = ATLArrayUtilities.toNSArray((String)context().request().formValueForKey(keys), ,); NSArrayEO eos = Eo.fetchEos(ec, Eo.KEY.in(keys), null); ___ 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: Weird Crash
What versions of Eclipse/WOLips? There was a hang on save bug affecting the component editor in previous WOLips versions that is resolved in 3.7.x Sharpy.. On 17/02/2012, at 4:00 AM, Jaime Magiera wrote: Hello folks, I've got weird problem that arose after setting up Eclipse + WO on OSX 10.7.2. I've imported projects from a previous Eclipse + WO install. The editing of components, etc. works fine. However, when I go to save, about 50% of the time, Eclipse will just freeze and go into SPOD. I've not been able to determine any specific set of actions that causes this to happen. I've tried opening/closing components, changing focus before saving, etc. Nothing seems to stand out as a cause. Any thoughts on how I could troubleshoot this? Jaime Magiera Sensory Research, Inc. http://www.sensoryresearch.net ___ 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: How to open a URL in WO
On 14/07/2011, at 11:17 AM, Pascal Robert wrote: Le 2011-07-13 à 15:23, Calven Eggert a écrit : Just checked out that link. this looks pretty cool. Anyone else in the WO community use it? If so, what are your impressions? http://hc.apache.org/httpcomponents-client-ga/ I'm using HTTP Client 3.1 and it's great! Sadly, I can't say about 4.x, they changed a lot of things, so I need to change some code. I went down this path a couple of weeks ago with the attitude of - hey it's just some minor API tweaks, and I don't use it in that many places. Half a day in saw me realise I use it everywhere and the differences are far from minor API tweaks. It was worth it though, particularly for flexibility wrt auth schemes. Sharpy.. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WORepetition validation error
WOLips binding validation seems to be a temperamental and mysterious beast. Last week for me it was WOImage with validation telling me I must have a filename value when framework was also bound, which of course was already the case. So that gave me errors in all my projects! A combination of closing/opening projects, relaunching eclipse, refreshing, cleaning, standing on one leg and finally apathy eventually saw validation doing the right thing again. It's frustrating but I'm learning to live with it. Sharpy. On 15/06/2011, at 7:42 AM, Neil MacLennan wrote: All of a sudden all my projects in Eclipse have started displaying validation errors on WORepetitions. The error is 'Item' must be bound if 'list' is bound. Now these are projects that (a) I've been using for ages and (b) have both 'list' and 'item' bound. I created a brand new [wonder] project and the error still shows. The error shows with both inline and WOD type binding styles. I've not done anything with Eclipse. Not upgraded or updated recently. I can't think what I've done obviously on a global Eclipse scale that might have precipitated this? Does anyone have any thoughts? WebObjects: 5.4.3 Eclipse: 3.6.2 WOLips: 3.6.70242 Wonder: from a few months ago [is there a Wonder version number?] JDK: 1.6 Thanks, .neilmac ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: update a WOComponentContent from my code?
Hi Ted, I'm not sure that what you're describing as happening is actually the case. AjaxUtils.redirectTo isn't updating an area of your page surrounded by an AjaxUpdateContainer, it's redirecting your browser to a full page component. It sounds like you're interested in updating parts of your already rendered page using Ajax, yes? You can call AjaxUpdateContainer.updateContainerWithID in code, or use the updateContainerID binding on AjaxObserveField to nominate the AUC to be updated after the observed field(s) submit their contents. Sharpy.. On 06/06/2011, at 12:28 PM, Theodore Petrosky wrote: I have an update Container: wo:AjaxUpdateContainer id = MainTableUC div id = contentArea webobject name = MainTableComponentContent / /div /wo:AjaxUpdateContainer WOD MainTableComponentContent : WOComponentContent {} I have a popup and depending on its selection, I fire: MainTable nextPage = pageWithName(MainTable.class); nextPage.setShowAllIOs(((Session)session()).showAllIOs()); nextPage.setSearchQualifier(((Session)session()).searchQualifier()); AjaxUtils.redirectTo(nextPage); and beautifully AjaxUtils inserts the WOComponentContent. How can I fire this from my code? My Main page opens with nothing present. I must select something from the popup. I can not figure out how to present a default selection. I am sure it is simple, but my pea brain just doesn't understand. Ted ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: action binding of an AjaxObserveField to return a WOComponent?
Have a look at AjaxUtils.redirectTo(WOComponent) For the jump menu type of thing I use that within the method bound to action of the AjaxObserveField that's observing the WOPopup. Sharpy. On 01/06/2011, at 1:06 AM, Theodore Petrosky wrote: I have only used hyperlinks to insert a new WOComponent into my page like this: webobject name = UserManagementEmployee Management/webobject in the wod: UserManagement : WOHyperlink { pageName = TWTUserManagement; class=subfirst; title=Employees; } of course I have a WOComponentContent in the page: webobject name = Contents / Contents : WOComponentContent { } I am also using the action binding of the WOHyperlink and returning a WOComponent. This works just fine allowing me to pass data to the WOComponent before I display it. I am playing around with a different interface and I want to use a popup to choose which component to bring in. I have tried to use the action binding of an AjaxObserveField that is watching my popup but it doesn't work as I think. Am I barking up the wrong tree? Maybe I am just not setting it up correctly? Basically I have a popup in the header. I want to display a WOComponent in: webobject name = Contents / Contents : WOComponentContent { } but I need to pass data to the component before display it. public WOActionResults returnComponent() { MainTableComponent nextPage = pageWithName(MainTableComponent.class); nextPage.setSomeStuff; return nextPage; } Help, please. Ted ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ajaxtabbedpanel ??
I think you're going to have to have a form per tab. With a form wrapping the entire ATP, when tabs are selected form values are sent for the rendered form fields only and not the hidden/not in the DOM fields. The app seems to interpret this as nulls being provided for the missing fields, or in this case a default value of false. If you override validateTakeValueForKeyPath you should see keypaths for non rendered fields showing up with null/false values when you select tabs.. Sharpy. On 14/01/2011, at 9:56 PM, Theodore Petrosky wrote: --- On Fri, 1/14/11, Michael Sharp getsh...@gmail.com wrote: I do use TabbedPanel in an AMD so I'll try. Any errors in eclipse console or javascript errors in the browser? No errors WOD and java for AMD EditUserModalDialog : AjaxModalDialog { id = editUserDialog; showOpener = false; locked = true; slideDownDuration = 0.2; slideUpDuration = 0.2; action = editUserMeta; onClose = refreshUserList; closeUpdateContainerID =tableBody; transitions=true; } AMD is called from an opener: EditUserOpener: AjaxModalDialogOpener { label = current.fullNameString; dialogId = editUserDialog; action = selectUserToEdit; title = EditUserMDTitle; } public WOActionResults editUserMeta() { TWTUser_EditMetaComponent nextPage = (TWTUser_EditMetaComponent)pageWithName(TWTUser_EditMetaComponent.class.getName()); nextPage.setTheUser(aUserToEdit); return nextPage; } Is it a problem with Tab2 or with any tab after the initial tab is displayed. If you give Tab2 the binding of isSelected = true; does it display the correct behaviour? the tabpanel is on an AjaxModalDialog, when I create the modal dialog, I pass in a user object. user has a to one relationship with securitySettings. So when you say pass in an object, you mean supplied as a binding to the component where the AMD is declared? I can't reproduce the problem, maybe the contents of your .wod for TabbedPanel, Tab1 Tab2 might help.. Here is all the code: style .ajaxTabbedPanel { width: auto; border-bottom: 1px solid #c0c0c0; padding: 10px 0 0 20px; } .ajaxTabbedPanelTab-selected { display: inline; padding: 3px 7px 1px 7px; background: #ff; border: 1px solid #c0c0c0; border-bottom: 0; } .ajaxTabbedPanelTab-unselected { display: inline; padding: 2px 7px 0 7px; background: #f0f0f0; border: 1px solid #c0c0c0; border-bottom: 0; color: #c0c0c0; } .ajaxTabbedPanelTab-selected a { font-weight: bold; font-size: 12pt; color: #0066CC; padding: 6px; } .ajaxTabbedPanelTab-unselected a { font-size: 10pt; padding: 6px; color: #a0a0a0; } .ajaxTabbedPanelPanes { width:97%; padding-left: 0px; margin: 2%; min-height: 300px; overflow: auto; } .ajaxTabbedPanelPane-selected { list-style-type: none; display: block; padding: 10px; } .ajaxTabbedPanelPane-unselected { list-style-type: none; display: none; } .tabBox { border: 1px solid #c0c0c0; height: 400px; width: 620px; overflow: auto; } tr.meta1 { height:30px } /style wo:WOForm multipleSubmit = true div class = tabBox webObject name = TabbedPanel webObject name = Tab1 table class = tableDefs width = 550 tr class = meta1 td width = 110First Name/td tdwo:WOTextField value = $theUser.firstName size = 65 //td /tr tr class = meta1 td width=35%Last Name/td tdwo:WOTextField value = $theUser.lastName size = 65 //td /tr tr class = meta1 tdTitle/td tdwebobject name = EmployeeTitlePopUp //td /tr /table /webObject webObject name = Tab2 table width = 250 tr td divSees Employee Management: wo:WOCheckBox checked = $theSecuritySettings.seesUserManagement / br / br / Sees Client Management: wo:WOCheckBox checked = $theSecuritySettings.seesClientManagement / br / br / Sees Settings Management: wo:WOCheckBox checked = $theUser.securitySettings.seesSettingsManagement / br / br / Sees Work Management: wo:WOCheckBox checked = $theUser.securitySettings.seesWorkManagement / br / br / Sees Billing Management: wo:WOCheckBox checked = $theUser.securitySettings.seesBillingManagement / br / br / Sees Time Management: wo:WOCheckBox disabled = application.noTimeTracking checked
Re: ajaxtabbedpanel ??
I do use TabbedPanel in an AMD so I'll try. Any errors in eclipse console or javascript errors in the browser? Is it a problem with Tab2 or with any tab after the initial tab is displayed. If you give Tab2 the binding of isSelected = true; does it display the correct behaviour? the tabpanel is on an AjaxModalDialog, when I create the modal dialog, I pass in a user object. user has a to one relationship with securitySettings. So when you say pass in an object, you mean supplied as a binding to the component where the AMD is declared? I can't reproduce the problem, maybe the contents of your .wod for TabbedPanel, Tab1 Tab2 might help.. Sharpy.. on panel one, I am displaying and editing user metadata. on panel two, I want to edit some security settings. if i put on tab one: see user area wo:WOCheckBox checked = $theUser.securitySettings.seesUserManagement / I get the checkbox with this user seesUserManagement setting. However, if this same code is on tab two, there is no connection to the object. wo:WOForm multipleSubmit = true; div class = tabBox webObject name = TabbedPanel webObject name = Tab1 table class = tableDefs width = 550 tr class = meta1 td width = 110First Name/td tdwo:WOTextField value = $theUser.firstName size = 65 //td /tr /table br/br/ see user area wo:WOCheckBox checked = $theUser.securitySettings.seesUserManagement / /webObject name = Tab1 webObject name = Tab2 wo:WOCheckBox checked = $theUser.securitySettings.seesUserManagement / /webObject name = Tab2 /webObject name = TabbedPanel /div wo:AjaxSubmitButton action = $cancelEdits value = Cancel /wo:AjaxSubmitButton action = $save value = Save / /wo:WOForm why doesn't tab2 connect to $theUser.securitySettings.seesUserManagement on tab1 the checkbox is checked (correct) however on tab2 no check. I don't even know if I am explaining this clearly enough. Help, please. Ted ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Search Suggestion Box
Wonder's AjaxAutoComplete is worth a look.. sharpy. On 08/12/2010, at 10:59 AM, vaibhav srivastava wrote: Hi All, Is there a way to implement search suggestion box through webobjects. Thanks for help in advance. Regards vaibhav ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: EOModel and derived column.
Yep, still need to override the derived attribute's getter and mimic/duplicate the concatenation (in this case) to ensure it reflects the uncommitted changes, very noticeable when you have a new object that hasn't been saved to the backing store! The big gains from this type of attribute become apparent when building qualifiers.. Sharpy. On 24/11/2010, at 10:20 PM, John Larson wrote: A note about those columns, they are only evaluated during fetch since their content is generated in the SQL. So if your user updates their last name, the full name won't update until the changes are committed and then fetched again. Just a head's up. John Sent from my iPhone On Nov 24, 2010, at 1:37 AM, Theodore Petrosky tedp...@yahoo.com wrote: I am reading the Red Webobject 5.0 book and I think I finally understand the small section on creating an attribute the is derived. (I am using postgresql as the backend) so my User entity has a firstName and a lastName. I created an attribute called 'theFullName' as derived firstName || ' ' || lastName, in the advanced tab, I choose Read Only. i assumed that would be enough, however I needed to also select 'allows null' in the basic tab. if I didn't, User.createUser(yada, yada); required a 'theFullName' attribute. My assumption was that as the column is derived and read only, I thought the column was special and shouldn't need the 'allows null' selection. so, did I do it correctly? as the column is a derived column and read only, why do I need to add 'allows null'? I have been creating all these derivatives in java in my User.java file, but I thought I would expand my understanding and play with some features. now on to stored proceedures. Ted ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com This email sent to the_lars...@mac.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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Expand and collapse a row
Tables and individual rows are always tricky as the AUC's div can't be in rendering no mans land, ie outside tr tags but inside the table. If you need to hide/show rows that preserve column structure of the enclosing table you might need to have the entire table in an AUC and determine which rows are rendered with WOConditional. Sharpy.. On 10/11/2010, at 11:29 AM, Mike Schrag wrote: AjaxExpansion in Ajax.framework ... See AjaxExample2's Toggle Details example: http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample2.woa/wa/PageAction/ToggleDetails On Nov 9, 2010, at 8:27 PM, vaibhav srivastava wrote: Hi All, I wan to implement a expand and collapse functionality . so, I have number of rows displaying data and row are created using and i want to have a link for each row which can expand and collapse the data . can anybody help me out with this. Regards Vaibhav ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERPPieChart pie piece color
The colours come from JFreeChart's DefaultDrawingSupplier. There's nothing you can supply in the objects that go into the items array that will affect rendering. The items, nameKey and valueKey bindings are all about building the dataset for your chart. If you really wanted to go down the path of having ERPlot build the chart for you with the colours of your choice you'll probably need your own DrawingSupplier implementation which would allow you provide an array of colours for rendering, then use the configurations binding the set your DrawingSupplier for some keypath similar to plot.drawingSupplier. I think you should take the responsibility away from ERPlot for building the chart. If you build it yourself you gain control over changing the rendering values for individual sections/items etc, something you can't achieve with the configurations binding and kvc.. Sharpy.. On 18/09/2010, at 6:44 AM, Baiss Eric Magnusson wrote: I thought if I supplied to the item binding of ERPPieChart the totals NSMutableArray below: public class TotalOfMonth {// inner class public BigDecimal _total; public String _name; public Color_color; public String _legend; TotalOfMonth( BigDecimal total, String name, Color color ) { _total = total; _name = name; _color = color; mTotalsGraph += total.doubleValue(); } } NSMutableArrayTotalOfMonth totals = new NSMutableArrayTotalOfMonth(5); Color fixedExpColor = new Color( 0xff, 0x66, 0x00 ); totals.addObject( new TotalOfMonth( thisMonth.fixedMonthlyExpense(), Fixed Expense , fixedExpColor )); ... That the Fixed Expense piece of the pie chart would be set to the color fixedExpColor, but the color seems to come from ??? Baiss Eric Magnusson CascadeWebDesign.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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: insertion on AjaxExpansion
As per http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/ajax/AjaxExpansion.html Mike's example in AjaxExample2 uses the bindings: insertion=Effect.blind; insertionDuration=0.1; http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample2.woa/wa/PageAction/ToggleDetails sharpy.. On 27/08/2010, at 4:07 AM, Frank Stock wrote: Hi All, I've been working for implementing the AccordionEffect for a few days now, without a decent result. So now I work with AjaxExpansion, but I want to add an effect but I can't find a working example. How do you specify the 'insertion'? Can someone give me a hint? Thanks, Frank Stock ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Fwd: more datepicker questions
Whoops, forgot the list.. Begin forwarded message: From: Michael Sharp getsh...@gmail.com Date: 20 August 2010 7:18:30 AM AEST To: Theodore Petrosky tedp...@yahoo.com Subject: Re: more datepicker questions What revision of calendar.js are you running? There have been some recent changes that I thought fixed this http://wonder.svn.sourceforge.net/viewvc/wonder/trunk/Wonder/Frameworks/Ajax/Ajax/WebServerResources/calendar.js?view=log sharpy On 20/08/2010, at 5:34 AM, Theodore Petrosky wrote: Please someone explain this one to me. I have a datepicker on an AMD. except that the ADP doesn't seem to be attached to the textarea of the AMD. It act likes it is attached to the underlaying window. so that if the underlaying window has an up and down scroll bar, this scroll bar controls the placement of the datepicker. I wasn't expecting this. Maybe i am using the datepicker 'wrong'. or I need to do something more in the set up. I can send an example if required.. My content of my AMD comes from its own WOComponent that I call with the action binding. EditJobMetaMDO : AjaxModalDialogOpener { dialogId = editJobMetaModalDialog; label = currentJob.composedJobNumber; action = setTheCurrentJob; } EditJobMetaMD : AjaxModalDialog { id = editJobMetaModalDialog; action = showJobMeta; height = 360; locked = true; title=Edit Job Meta; } and from my java: public WOActionResults showJobMeta() { TWTWorkListEditJobComponent nextPage = (TWTWorkListEditJobComponent)pageWithName(TWTWorkListEditJobComponent.class.getName()); nextPage.setTheEditJobMeta(aJobToEdit); return nextPage; } The AjaxDatePicker lives on TWTWorkListEditJobComponent. Ted ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: max value using wonder??
Have a look at ERXEOControlUtilities.aggregateFunctionWithQualifier On 29/05/2010, at 10:22 AM, Theodore Petrosky wrote: if I were writing my own sql, I would: SELECT MAX(c_item_index) FROM t_version WHERE c_job_id = 12; is there a way to do this without resorting to raw sql? I have so far not had to use any raw sql and was hoping there was a Wonder way to do this. Ted ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JRebel
I'm fond of JRebel too, although if it threw a tantrum at the supermarket I'd probably leave it there ;) I've had memory issues at launch time with some projects that have multiple custom framework dependencies and I can't seem to provide the right JVM args to please it. But as Q keeps telling me, it's up to me to file a bug report and get it sorted. For the projects I use it in it's definitely a huge time saver, especially with support for model changes. Congrats Hugi! Sharpy... On 13/03/2010, at 7:05 PM, Hugi Thordarson wrote: If you're not using it, start using it. Now! It's one of the greatest productivity enhancers I've encountered in years. Honestly. I'm torn about which was a happier event - the birth of my child, or me discovering JRebel. - hugi ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Full URL on dev
Hi James, I'm able to build complete URLs in both dev (directconnect webserverconnect) and deployment environments using the request header value for one of the keys like server_name or host, or on an ERXRequest using the remoteHostName() method. This gives me the appropriate host:port value and the rest can be gleaned from the uri() method on WORequest. That's what works in my setup anyway, a dig around your request headers would be a good start.. Sharpy.. On 24/02/2010, at 9:09 AM, James Cicenia wrote: Hello - How do I get the full absolute url in my dev environment... I need to get something like: http://10.0.1.200:64420/cgi-bin/WebObjects/ . Especially the dynamic port number Thanks James ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: from JFreeChart (BufferedImage_) to NSData_
JFreeChart lineChart = createChart( dataSet ); ByteArrayOutputStream stream = new ByteArrayOutputStream(); ChartUtilities.writeChartAsPNG(stream, lineChart, 500, 300); return new NSData(stream.toByteArray()); Alternatively you can use writeChartAsJPEG. Or let ERPlot deal with it by using the chart binding: MyChart : ERPCategoryChart { chart = lineChart; width = 500; height = 300; } Sharpy.. On 07/01/2010, at 9:54 AM, Baiss Eric Magnusson wrote: In the below method how do I get the return stuff from JFreeChart to be put into a NSData which is bound to the data binding of a WOImage, which is the way I've see to use for the Line Chart I'm creating. It seems that JFreeChart uses .png by default, which is good n'est-ce pas? public NSData lineChartJFree() { XYSeriesCollection dataSet = createDataset(); JFreeChart lineChart = createChart( dataSet ); BufferedImage bufFromJFree = lineChart.createBufferedImage( 800, 500 ); Raster rast = bufFromJFree.getData(); return new NSData( rast.??? ); } Baiss - I looked at this package and, frankly, it does not make that much sense to me either. But then I find that when Anjo puts things in, be can often be ... concise, shall we say ... in how he documents things. I could probably buy and read through the doc for JFreeChart, but I have not done that yet. I put a new Example project in Wonder. It is Examples/Misc/ERComponentTour. There is, after all, nothing analogous to the D2WComponentTour example and there are lots of non-D2W components in Wonder. The first (and presently only) page in that app is for ERPCategoryChart ERPPieChart. And there is no ERPPieChart yet. And the examples there are probably not the smartest. It certainly seems that for the AreaChart and WaterfallChart, this dataset does not make sense. But this is the first version, so it is obviously better than what was there before. And anyone who wants to show better examples of these components is certainly welcome to do so. This example does show a minimal usage of the ERPCategoryChart. Let me know if this helps at all. Or, if it does not, what would be needed to make it make more sense? Let me know what you end up figuring out and I can probably use that to improve the example. cheers - ray Baiss Eric Magnusson http://www.CascadeWebDesign.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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JFreeChart/Wonder liftoff success
On 18/12/2009, at 11:14 AM, Baiss Eric Magnusson wrote: How does the BigDecimal get absorbed by the attribute items=generateGraphPie of ERPPieChart? ERPlot will accumulate Number values for matching name keys by adding their doubleValue()'s I haven't utilized color yet, default was pink! Pink pie, sounds like trivial pursuit! Cheers, Sharpy -- Michael Sharp ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JFreeChart/Wonder liftoff
Hi Baiss, All you should have to do is just add a ERPPieChart component to your WOComponent, eg MyChart : ERPPieChart { name = Monthly Totals; items = myArray; nameKey = name; valueKey = amount; chartType = PieChart; } You can gain a fair bit of flexibility with the configuration binding, and also you can use the chart binding on it's own if you already have a JFreeChart and just want a nice way to include it in your component. Cheers, Sharpy -- Michael Sharp On 16/12/2009, at 10:52 AM, Baiss Eric Magnusson wrote: I was wondering if anyone can help with the use of ERPPieChart from ERPlot as I replace the various plots in the WO project I'm converting, it's also an introduction to Wonder for me. I have a NSMutableArray of references to instances of an inner class TotalOfMonth which has the values: (amount, name, color); Starting, I see I do: ERPPieChart erPieChart = new ERPPieChart( this.context() ); // how can I best pass the values in the NSMutableArray to the dataset inside erPieChart? // I have ERPlot Framework in /Library/Frameworks on MacOSX but I can't seem to step into ERPPieChart JFreeChart jfc = erPieChart(); Previously I had done arcFillCenter, drawRect, etc. for the constructing of the chart with a long-deprecated java plot package, this seems antiquated. At what point do I stop looking at the routines in ERPieChart and look at the routines in JFreeChart, I have its 950 page reference document plus some source code. Baiss Eric Magnusson http://www.CascadeWebDesign.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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC 2010 : official date and venue
Most definitely in! Sharpy -- Michael Sharp Burleigh Heads Gold Coast, Australia ;) On 20/11/2009, at 10:18 AM, David Avendasora wrote: On Nov 19, 2009, at 3:17 PM, Pascal Robert wrote: it would be great for future WOWODC to move it around to see different cities. I'm seriously planning on a Gold Coast, Australia WOWODC. Who's in? Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ 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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: valueForBinding and indirectly referenced types
OK it was just the act of casting Object (from valueForBinding) to my subclass which required access to my class hierarchy and non-exported jars. It's all trivial anyway as everything's exported as it should be.. On 04/10/2009, at 10:41 AM, Michael Sharp wrote: Thanks Mike, that was it. I'm curious as to why I don't get any build or runtime errors with synchronising components when these jars aren't exported, but once valueForBinding is introduced to the component it explodes. Is it possible there was always a potential for runtime issues but I hadn't come across it yet? Sharpy.. On 04/10/2009, at 12:03 AM, msch...@mdimension.com wrote: This error means the class you are referencing refers to some other class in one of its method signatures (or inheritance tree) that your calling class can't find. This usually means you didn't export a jar file from the framework the referenced class is in. Go to the framework that contains the referenced class, open the build path prefernce panel on the project, go to Order and Export tab and make sure all the framework's jars are checked to be exported. Sent from my iPhone On Oct 3, 2009, at 5:28 AM, Michael Sharpgetsh...@gmail.com wrote: I'm trying to change an existing component to be non-synchronising. The component imports classes from my framework that extend classes from jar files that are included in my frameworks class path. My component only accesses methods from these subclasses. When I cast the result of valueForBinding to one of these types eclipse gives me a build error about the build path not being complete - The type 'some.class.from.jar' cannot be resolved. It is indirectly referenced from required .class files Eclipse 3.5.1 WOLips 3.5.5990 Wonder App Framework (recent WOnder build) Any thoughts? Thanks, Sharpy.. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
valueForBinding and indirectly referenced types
I'm trying to change an existing component to be non-synchronising. The component imports classes from my framework that extend classes from jar files that are included in my frameworks class path. My component only accesses methods from these subclasses. When I cast the result of valueForBinding to one of these types eclipse gives me a build error about the build path not being complete - The type 'some.class.from.jar' cannot be resolved. It is indirectly referenced from required .class files Eclipse 3.5.1 WOLips 3.5.5990 Wonder App Framework (recent WOnder build) Any thoughts? Thanks, Sharpy.. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: valueForBinding and indirectly referenced types
Thanks Mike, that was it. I'm curious as to why I don't get any build or runtime errors with synchronising components when these jars aren't exported, but once valueForBinding is introduced to the component it explodes. Is it possible there was always a potential for runtime issues but I hadn't come across it yet? Sharpy.. On 04/10/2009, at 12:03 AM, msch...@mdimension.com wrote: This error means the class you are referencing refers to some other class in one of its method signatures (or inheritance tree) that your calling class can't find. This usually means you didn't export a jar file from the framework the referenced class is in. Go to the framework that contains the referenced class, open the build path prefernce panel on the project, go to Order and Export tab and make sure all the framework's jars are checked to be exported. Sent from my iPhone On Oct 3, 2009, at 5:28 AM, Michael Sharpgetsh...@gmail.com wrote: I'm trying to change an existing component to be non-synchronising. The component imports classes from my framework that extend classes from jar files that are included in my frameworks class path. My component only accesses methods from these subclasses. When I cast the result of valueForBinding to one of these types eclipse gives me a build error about the build path not being complete - The type 'some.class.from.jar' cannot be resolved. It is indirectly referenced from required .class files Eclipse 3.5.1 WOLips 3.5.5990 Wonder App Framework (recent WOnder build) Any thoughts? Thanks, Sharpy.. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com