cheatsheet ?
does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: cheatsheet ?
The JavaDoc have many of them, for example: http://jenkins.wocommunity.org/job/WonderIntegration/javadoc/er/directtoweb/components/ERD2WStatelessCustomComponentWithArgs.html I guess we would need to pull that out from the JavaDoc and make a list of all keys. does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? 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: 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
ERFreshBooks framework
I have to use FreshBooks (online accounting app) and so I did a simple framework to connect to their APIs (which is XML over POST requests, sadly it's not a real REST service…). https://github.com/pascalrobert/ERFreshBooks It's not complete, but if you need it, grab it and contribute. ___ 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: cheatsheet ?
Looks like part of the job was already done: http://jenkins.wocommunity.org/job/WonderIntegration/javadoc/d2wlist.html The JavaDoc have many of them, for example: http://jenkins.wocommunity.org/job/WonderIntegration/javadoc/er/directtoweb/components/ERD2WStatelessCustomComponentWithArgs.html I guess we would need to pull that out from the JavaDoc and make a list of all keys. does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? 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: 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/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: [OT] VAT number
Hi Pascal, Do you have to charge VAT on your export invoices made up to other companies (i.e. customers with European VAT number) ? If not, I don't think it matters if there is a VAT number on them or not. At least not for the company receiving the invoice. But it may be required for your store to account for not charging any VAT. Here in Europe, companies are no longer required to charge VAT if the services are consumed outside of the EU. http://ec.europa.eu/taxation_customs/taxation/vat/traders/e-commerce/index_en.htm It used to be different before, i.e. if the services were produced in the EU, then you did have to charge VAT. It depends on your Canadian legislation I guess ? Also, if you do have to charge VAT, not sure if a European company can claim that back. Good luck with the WOCommunity Store ! Regards, Philippe Pascal Robert wrote: Ok, this is a bit off-topic, but since we have many guys from France and Germany: if you buy something from Canada, do you need to put our VAT number on the invoice? This is for invoices that the WOCommunity Store will generate. ___ 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/phlpp.willems%40gmail.com This email sent to phlpp.will...@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: WOCommunity membership and goals
Hi all, I was reading through the comments others made. For me two things are important: 1. How to integrate WebObjects and iOS (mobile apps): client - server communication without the use of Javascript frameworks on the client 2. Easy setup and deployment like the good old Apple WebObjects Where do I fill in the survey? I missed that. Regards, Bart ___ 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: [OT] VAT number
Le 2013-02-11 à 08:38, Philippe Willems phlpp.will...@gmail.com a écrit : Hi Pascal, Do you have to charge VAT on your export invoices made up to other companies (i.e. customers with European VAT number) ? If not, I don't think it matters if there is a VAT number on them or not. At least not for the company receiving the invoice. But it may be required for your store to account for not charging any VAT. Here in Europe, companies are no longer required to charge VAT if the services are consumed outside of the EU. This is the same thing in Canada. So membership won't have any taxes on it if you are outside Canada, but WOWODC tickets will have them because it will be consumed in Canada. http://ec.europa.eu/taxation_customs/taxation/vat/traders/e-commerce/index_en.htm It used to be different before, i.e. if the services were produced in the EU, then you did have to charge VAT. It depends on your Canadian legislation I guess ? Also, if you do have to charge VAT, not sure if a European company can claim that back. Good luck with the WOCommunity Store ! Regards, Philippe Pascal Robert wrote: Ok, this is a bit off-topic, but since we have many guys from France and Germany: if you buy something from Canada, do you need to put our VAT number on the invoice? This is for invoices that the WOCommunity Store will generate. ___ 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/phlpp.willems%40gmail.com This email sent to phlpp.will...@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: WOCommunity membership and goals
Le 2013-02-11 à 08:43, jazz jazzsa...@me.com a écrit : Hi all, I was reading through the comments others made. For me two things are important: 1. How to integrate WebObjects and iOS (mobile apps): client - server communication without the use of Javascript frameworks on the client 2. Easy setup and deployment like the good old Apple WebObjects Where do I fill in the survey? I missed that. Organization Survey: https://www.survs.com/survey/8ZOU47TJC4 Individual Survey: https://www.survs.com/survey/FNKGDKF361 ___ 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: Wonder 6.0.1 release
Hi Pascal and many thanks for publishing these releases. We're interested in this 6.0.1, in particular this fix : https://github.com/projectwonder/wonder/commit/bed35de926d0fe53c207b2fea7f5e3d1922d0ddb Can Henrique make a maven release of this 6.0.1 and publish it on the community repo ? Thanks Alex 2013/1/29 Pascal Robert prob...@macti.ca Wonder 6.0.1 have been released in the master branch of Wonder. Since it's mostly JavaDoc and other small fixes, I merged all commits from integration up to this morning. Diff between Wonder 6.0.1 and 6.0.0: https://github.com/projectwonder/wonder/compare/wonder-6.0.0...wonder-6.0.1 ___ 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/alexis.tual%40gmail.com This email sent to alexis.t...@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: cheatsheet ?
On Feb 11, 2013, at 4:52 AM, Theodore Petrosky wrote: does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? Ted The second one :-) After you do it for a while, you begin to remember the ones you use frequently tho. Auto-complete in rule modeler helps too. Ramsey ___ 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: cheatsheet ?
Oh, while we're at this -- I don't have eclipse properly connecting to my Wonder source such that it finds things for me. Is there an easy fix for this? D2W would be much easier to debug with at least that. On Feb 11, 2013, at 11:22 AM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2013, at 4:52 AM, Theodore Petrosky wrote: does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? Ted The second one :-) After you do it for a while, you begin to remember the ones you use frequently tho. Auto-complete in rule modeler helps too. Ramsey ___ 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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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
consuming rest?
is there a good example of ERRest consuming web services? or does anyone have a slide of code to share on it? ___ 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: consuming rest?
http://wiki.wocommunity.org/display/documentation/Consuming+REST+services is there a good example of ERRest consuming web services? or does anyone have a slide of code to share on it? ___ 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: cheatsheet ?
Can you explain what do you mean with finds things for me? When should eclipse find what for you? Am 11.02.2013 17:38 schrieb Jesse Tayler jtay...@oeinc.com: Oh, while we're at this -- I don't have eclipse properly connecting to my Wonder source such that it finds things for me. Is there an easy fix for this? D2W would be much easier to debug with at least that. On Feb 11, 2013, at 11:22 AM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2013, at 4:52 AM, Theodore Petrosky wrote: does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? Ted The second one :-) After you do it for a while, you begin to remember the ones you use frequently tho. Auto-complete in rule modeler helps too. Ramsey ___ 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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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/bastian.triller%40gmail.com This email sent to bastian.tril...@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: cheatsheet ?
What I do is this: 1) Open Git Repository Exploring perspective in Eclipse. - Window - Open Perspective - Other * You'll need eGit installed to do this. 1a) If you don't have eGit - Help - Install New Software - In the Work with: box, type Juno if you're using 4.2. Type Indigo if you're using 3.7. Not sure for 3.8... maybe try typing Dead end road to nowhere edition ;-) - Select the site that comes up in the auto complete popup - in the 'type filter text' search box, type git. Install everything egit/jgit related. Ignore the Mylyn Versions Connector: Git thing if you see it. - install and restart eclipse 2) In the Git Repositories tab, clone wonder - Click the clone button at the top of the tab with the blue arrow on it and use the wizard * If you already have wonder checked out, you can add a local repo instead 3) In the wonder repository, import all Wonder frameworks - wonder - Working Directory - Frameworks - right click on Frameworks directory, select Import Projects - select the Import existing projects radio button, next - select all, add projects to Wonder Frameworks working set, finish 4) Switch back to WOLips perspective - cmd-shift-t and type the name of the component or class to go directly to the java file - cmd-shift-r and type the name of the component to go directly to the java/wod/html/api/woo files of a component - cmd-click on method names to go directly to that method declaration in the wonder source file - right-click and Open Call Hierarchy on a method name to see everywhere that method is called, in and out of wonder -right-click and Open Type Hierarchy to see every method available on that class and its superclasses. Also displays all known subclasses. You may also want to import all the wonder examples, applications, and tests into their own working sets too. I keep all of wonder in my workspace and only display what I need via working sets for projects I work on. You might think it would take a long time to build all this stuff, but the incremental builder makes this mostly painless. A full clean will take a couple of minutes tho. If these instructions suck, let me know. A screencast might be in order here. Ramsey On Feb 11, 2013, at 9:38 AM, Jesse Tayler wrote: Oh, while we're at this -- I don't have eclipse properly connecting to my Wonder source such that it finds things for me. Is there an easy fix for this? D2W would be much easier to debug with at least that. On Feb 11, 2013, at 11:22 AM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2013, at 4:52 AM, Theodore Petrosky wrote: does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? Ted The second one :-) After you do it for a while, you begin to remember the ones you use frequently tho. Auto-complete in rule modeler helps too. Ramsey ___ 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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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: cheatsheet ?
whoa! Ramsey! Can we get this process scripted somehow? I haven't yet tried the steps, which I'll do today but I can see this is hugely helpful! I should think that the setup of a new developer machine would ALWAYS benefit from having a standardized WOnder install. On Feb 11, 2013, at 12:23 PM, Ramsey Gurley rgur...@smarthealth.com wrote: What I do is this: 1) Open Git Repository Exploring perspective in Eclipse. - Window - Open Perspective - Other * You'll need eGit installed to do this. 1a) If you don't have eGit - Help - Install New Software - In the Work with: box, type Juno if you're using 4.2. Type Indigo if you're using 3.7. Not sure for 3.8... maybe try typing Dead end road to nowhere edition ;-) - Select the site that comes up in the auto complete popup - in the 'type filter text' search box, type git. Install everything egit/jgit related. Ignore the Mylyn Versions Connector: Git thing if you see it. - install and restart eclipse 2) In the Git Repositories tab, clone wonder - Click the clone button at the top of the tab with the blue arrow on it and use the wizard * If you already have wonder checked out, you can add a local repo instead 3) In the wonder repository, import all Wonder frameworks - wonder - Working Directory - Frameworks - right click on Frameworks directory, select Import Projects - select the Import existing projects radio button, next - select all, add projects to Wonder Frameworks working set, finish 4) Switch back to WOLips perspective - cmd-shift-t and type the name of the component or class to go directly to the java file - cmd-shift-r and type the name of the component to go directly to the java/wod/html/api/woo files of a component - cmd-click on method names to go directly to that method declaration in the wonder source file - right-click and Open Call Hierarchy on a method name to see everywhere that method is called, in and out of wonder -right-click and Open Type Hierarchy to see every method available on that class and its superclasses. Also displays all known subclasses. You may also want to import all the wonder examples, applications, and tests into their own working sets too. I keep all of wonder in my workspace and only display what I need via working sets for projects I work on. You might think it would take a long time to build all this stuff, but the incremental builder makes this mostly painless. A full clean will take a couple of minutes tho. If these instructions suck, let me know. A screencast might be in order here. Ramsey On Feb 11, 2013, at 9:38 AM, Jesse Tayler wrote: Oh, while we're at this -- I don't have eclipse properly connecting to my Wonder source such that it finds things for me. Is there an easy fix for this? D2W would be much easier to debug with at least that. On Feb 11, 2013, at 11:22 AM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2013, at 4:52 AM, Theodore Petrosky wrote: does anyone have a cheat sheet that lists all the possible bindings in D2W components. (if its on the wiki I'll just start screaming because I have been reading in there all weekend) Or do you just run to the source of each component and look to see what is there (including the inherited bindings)? Ted The second one :-) After you do it for a while, you begin to remember the ones you use frequently tho. Auto-complete in rule modeler helps too. Ramsey ___ 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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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
Validation
Since this project is new and I want to try to work with all the best practices, I now need to pay attention to validation. Is there a good wiki page I should read or a video I should watch? I am mixing D2W with Custom Components and I notice something like parent().validationFailedWithException(e,obj,key). How is that rolled into the actual parent page to show the exception? 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Validation .. I found a good page
Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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: Validation
On Feb 11, 2013, at 10:51 AM, James Cicenia wrote: Since this project is new and I want to try to work with all the best practices, I now need to pay attention to validation. Is there a good wiki page I should read or a video I should watch? I don't think there's any one stop that explains it all. Here's a brain dump: Adding validation to your EOs http://developer.apple.com/legacy/mac/library/documentation/WebObjects/Enterprise_Objects/BusinessLogic/BusinessLogic.html#//apple_ref/doc/uid/TP30001011-CH204-TPXREF141 The javadoc on NSValidation has additional info https://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/foundation/NSValidation.html Wonder extends this with ERXValidation stuff which provides localized validation error messages. This is why we have a ValidationTemplate.strings file. Wonder adds additional validation magic also in the ERXEntityClassDescription class. There's documentation on it in the javadoc. http://jenkins.wocommunity.org/job/Wonder/javadoc/er/extensions/eof/ERXEntityClassDescription.html Those javadocs mention the Validity framework. AFAIK, Validity still works, but nobody uses it. It requires you subclass a special implementation of EOGenericRecord in your EO templates. GSVGenericRecord is not actually a subclass of EOGenericRecord. Validity creates a sort of rule-based approach to validation and the rules were stored in the EOModel. I always liked the idea, but never found time to explore it and port its functionality into ERXGenericRecord. The wonder stuff is Good Enough™ for me. It's now relegated to the archives. There is some documentation in the Validity framework. Chuck Hill did an interesting presentation on validation years ago with a mind to improve validation further. The link on wocommunity points to http://wocommunity.org/podcasts/wowodc/west09/WOWODCW09-Validation.mov but that appears to be broken. Pascal can probably give you the correct link. I am mixing D2W with Custom Components and I notice something like parent().validationFailedWithException(e,obj,key). How is that rolled into the actual parent page to show the exception? In ERD2W, all validation exceptions are passed up to parent. The only class that actually implements validation in the ERD2WPage class. A d2w page may display the exceptions, or it may pass them further up the chain to the next D2W page in the case of embedded pages. Last year, I believe it was Fabian Peters who prodded me to fix a bug in the validationFailedWithException on ERD2WPage. I decided validationFailedWithException was simply too overloaded to fix without breaking someone's stuff. I added a validation delegate. Now you can add a custom delegate to handle validation any way you please in d2w. I've gone so far as add validation on a to-many relationship to allow multiple object editing and provide individual validation error messages on each object in the list. You can see that in the ERUsers framework when you are editing challenge questions in the user creation process. 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: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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: Validation
Le 2013-02-11 à 13:37, Ramsey Gurley rgur...@smarthealth.com a écrit : On Feb 11, 2013, at 10:51 AM, James Cicenia wrote: Since this project is new and I want to try to work with all the best practices, I now need to pay attention to validation. Is there a good wiki page I should read or a video I should watch? I don't think there's any one stop that explains it all. Here's a brain dump: Adding validation to your EOs http://developer.apple.com/legacy/mac/library/documentation/WebObjects/Enterprise_Objects/BusinessLogic/BusinessLogic.html#//apple_ref/doc/uid/TP30001011-CH204-TPXREF141 The javadoc on NSValidation has additional info https://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/foundation/NSValidation.html Wonder extends this with ERXValidation stuff which provides localized validation error messages. This is why we have a ValidationTemplate.strings file. Wonder adds additional validation magic also in the ERXEntityClassDescription class. There's documentation on it in the javadoc. http://jenkins.wocommunity.org/job/Wonder/javadoc/er/extensions/eof/ERXEntityClassDescription.html Those javadocs mention the Validity framework. AFAIK, Validity still works, but nobody uses it. It requires you subclass a special implementation of EOGenericRecord in your EO templates. GSVGenericRecord is not actually a subclass of EOGenericRecord. Validity creates a sort of rule-based approach to validation and the rules were stored in the EOModel. I always liked the idea, but never found time to explore it and port its functionality into ERXGenericRecord. The wonder stuff is Good Enough™ for me. It's now relegated to the archives. There is some documentation in the Validity framework. Chuck Hill did an interesting presentation on validation years ago with a mind to improve validation further. The link on wocommunity points to http://wocommunity.org/podcasts/wowodc/west09/WOWODCW09-Validation.mov but that appears to be broken. Pascal can probably give you the correct link. http://wocommunity.org/podcasts/wowodc/west09/WOWODC09W-Validation.mov (the W goes after 09) I am mixing D2W with Custom Components and I notice something like parent().validationFailedWithException(e,obj,key). How is that rolled into the actual parent page to show the exception? In ERD2W, all validation exceptions are passed up to parent. The only class that actually implements validation in the ERD2WPage class. A d2w page may display the exceptions, or it may pass them further up the chain to the next D2W page in the case of embedded pages. Last year, I believe it was Fabian Peters who prodded me to fix a bug in the validationFailedWithException on ERD2WPage. I decided validationFailedWithException was simply too overloaded to fix without breaking someone's stuff. I added a validation delegate. Now you can add a custom delegate to handle validation any way you please in d2w. I've gone so far as add validation on a to-many relationship to allow multiple object editing and provide individual validation error messages on each object in the list. You can see that in the ERUsers framework when you are editing challenge questions in the user creation process. 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: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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/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
problem with _private.ERXSwitchComponent
i don't know that's the problem, but that is the error. I added a popup to my query page with ERD2WQueryToOneRelationship component. here are my rules: 100 : (pageConfiguration = 'QueryAgenda' and propertyKey = 'client') = componentName = ERD2WQueryToOneRelationship [com.webobjects.directtoweb.Assignment] 50 : (pageConfiguration like '*KickOffBrief' or pageConfiguration like '*CallReport' or pageConfiguration like '*ContactReport' or pageConfiguration like '*ProjectWork*' or pageConfiguration like '*Agenda') = toOneUIStyle = popup [com.webobjects.directtoweb.Assignment] 100 : (propertyType = 'r' and relationship.destinationEntity.name = 'Client') = keyWhenRelationship = clientName [com.webobjects.directtoweb.Assignment] On my development machine, I run the app and at first I was getting: Application: briefs Error: java.lang.IllegalStateException: er.extensions.components._private.ERXSwitchComponent : componentName not specified or componentName association evaluated to null. Reason: er.extensions.components._private.ERXSwitchComponent : componentName not specified or componentName association evaluated to null. I mucked around and found a few errors that had nothing to do with the QueryPage but voila it started working. So I cleaned my app, deleted everything in my /Library/WebObjects/Applications folder, recompiled to depoly. moved everything into place and fixed permissions and if I go to the query page and select a clientName from the popup my app blows up with that java.lang.IllegalStateException. Now it is not working on my development environment either. Am I missing a binding? 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Validation .. I found a good page
Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WebObjects IDE
To All, What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? Thanks, Zach -- ___ 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: WebObjects IDE
http://wiki.wocommunity.org/display/documentation/Getting+Started I'll leave the objective-c to someone who knows the answer. Steve On Feb 11, 2013, at 3:33 PM, zacharyi...@gmail.com wrote: To All, What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? Thanks, Zach -- ___ 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/speery%40me.com This email sent to spe...@me.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: WebObjects IDE
Hi, You might start here: http://wiki.wocommunity.org/display/documentation/Getting+Started Cheers On 11 Feb 2013, at 21:33, zacharyi...@gmail.com wrote: To All, What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? Thanks, Zach -- ___ 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/bogdan.zlatanov%40gmail.com This email sent to bogdan.zlata...@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: WebObjects IDE
To call Objective-C classes you will need to use the Java native interface (JNI). In the ERAttachment framework there is an example of using JNI to resize images. Johnny On Feb 11, 2013, at 10:37 AM, Steve Peery spe...@me.com wrote: http://wiki.wocommunity.org/display/documentation/Getting+Started I'll leave the objective-c to someone who knows the answer. Steve On Feb 11, 2013, at 3:33 PM, zacharyi...@gmail.com wrote: To All, What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? Thanks, Zach -- ___ 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/speery%40me.com This email sent to spe...@me.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/jlmiller%40kahalawai.com This email sent to 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WebObjects IDE
Le 2013-02-11 à 15:33, zacharyi...@gmail.com a écrit : To All, What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. ___ 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: WebObjects IDE
What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. ms ___ 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: WebObjects IDE
Le 2013-02-11 à 15:45, Mike Schrag msch...@pobox.com a écrit : What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. I have to agree with this. And it would be crazy to host something on OS X Server unless you really need something on it (and even, iCal Server and Address Book Server are available as open source, you can use another wiki, you can use OpenLDAP instead of Open Directory). ___ 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: WebObjects IDE
On 2013-02-11, at 3:45 PM, Mike Schrag msch...@pobox.com wrote: What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. I would agree. We pulled what little native stuff we had out of our apps a while back freeing us up to deploy in the cloud. The flexibility that gained us has proven to be well worth the effort. D -- David LeBer Codeferous Software ___ 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: WebObjects IDE
Do you guys think it would make sense if you were looking for a solution like the one offered by Objective cloud? On Feb 11, 2013, at 10:47 AM, Pascal Robert prob...@macti.ca wrote: Le 2013-02-11 à 15:45, Mike Schrag msch...@pobox.com a écrit : What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. I have to agree with this. And it would be crazy to host something on OS X Server unless you really need something on it (and even, iCal Server and Address Book Server are available as open source, you can use another wiki, you can use OpenLDAP instead of Open Directory). ___ 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/jlmiller%40kahalawai.com This email sent to 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WebObjects IDE
Le 2013-02-11 à 15:56, Johnny Miller jlmil...@kahalawai.com a écrit : Do you guys think it would make sense if you were looking for a solution like the one offered by Objective cloud? Maybe, but you would be running on a Mac Mini. It wouldn't put something critical on this unless you do some redundancy, and the Mac Mini is not redundant by default (can only do RAID-1 by software, only one Ethernet port, etc.). On Feb 11, 2013, at 10:47 AM, Pascal Robert prob...@macti.ca wrote: Le 2013-02-11 à 15:45, Mike Schrag msch...@pobox.com a écrit : What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. I have to agree with this. And it would be crazy to host something on OS X Server unless you really need something on it (and even, iCal Server and Address Book Server are available as open source, you can use another wiki, you can use OpenLDAP instead of Open Directory). ___ 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/jlmiller%40kahalawai.com This email sent to 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: problem with _private.ERXSwitchComponent
I found my problem. I had a rule modeler group that I was using. when I double clicked a rule, it opened the correct file and I edited it and saved. I had to select the Resources folder in Eclipse and Refresh. I thought there was a preference so eclipse would auto refresh. maybe I'm wrong. Ted --- On Mon, 2/11/13, Theodore Petrosky tedp...@yahoo.com wrote: From: Theodore Petrosky tedp...@yahoo.com Subject: problem with _private.ERXSwitchComponent To: WebObjects Development webobjects-dev@lists.apple.com Date: Monday, February 11, 2013, 2:10 PM i don't know that's the problem, but that is the error. I added a popup to my query page with ERD2WQueryToOneRelationship component. here are my rules: 100 : (pageConfiguration = 'QueryAgenda' and propertyKey = 'client') = componentName = ERD2WQueryToOneRelationship [com.webobjects.directtoweb.Assignment] 50 : (pageConfiguration like '*KickOffBrief' or pageConfiguration like '*CallReport' or pageConfiguration like '*ContactReport' or pageConfiguration like '*ProjectWork*' or pageConfiguration like '*Agenda') = toOneUIStyle = popup [com.webobjects.directtoweb.Assignment] 100 : (propertyType = 'r' and relationship.destinationEntity.name = 'Client') = keyWhenRelationship = clientName [com.webobjects.directtoweb.Assignment] On my development machine, I run the app and at first I was getting: Application: briefs Error: java.lang.IllegalStateException: er.extensions.components._private.ERXSwitchComponent : componentName not specified or componentName association evaluated to null. Reason: er.extensions.components._private.ERXSwitchComponent : componentName not specified or componentName association evaluated to null. I mucked around and found a few errors that had nothing to do with the QueryPage but voila it started working. So I cleaned my app, deleted everything in my /Library/WebObjects/Applications folder, recompiled to depoly. moved everything into place and fixed permissions and if I go to the query page and select a clientName from the popup my app blows up with that java.lang.IllegalStateException. Now it is not working on my development environment either. Am I missing a binding? 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: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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: WebObjects IDE
(don't forget to reply to the list). I'm not sure, but I think you are confusing WebKit and WebObjects. WebObjects is an application server written in Java that Apple wrote. The code you are sending is from WebKit. Very different things. How do I import the objective c class into an eclipse project? Here is the class: /* Here is an example .h file, CircularList.h. All behavior is inherited from List, which defines a List of objects. Nowadays we can use NSArray which is more complex than List. * / #include objc/List.h /* Superclass interface */ @interface CircularList: List /* List is superclass */ { int currentLocation; } - (NSString *) next; /* Returns next object in List or nil if none. */ @end /* Here is the corresponding .m file: */ #include CircularList.h @implementation CircularList - (NSString *) next { int numObjects = [self count]; if (currentLocation = numObjects) currentLocation = 0; return [self objectAt:currentLocation++]; } + (NSString *) webScriptNameForSelector:(SEL)sel { if (sel == @selector(nameAtIndex:)) name = [self next]; return name; } + (BOOL)isSelectorExcludedFromWebScript:(S… { if (sel == @selector(nameAtIndex:)) return NO; return YES; } @end How do I connect the objective c with the javascript file or eclipse project? Where does the objective c class go (eg same folder as js)? What is the javascript to call my function 'next'? What does the following code do?: + (BOOL)isSelectorExcludedFromWebScript:(S… { if (sel == @selector(nameAtIndex:)) return NO; return YES; } Sent from my iPad 2 On 11 Feb 2013, at 20:47, Pascal Robert prob...@macti.ca wrote: Le 2013-02-11 à 15:45, Mike Schrag msch...@pobox.com a écrit : What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. I have to agree with this. And it would be crazy to host something on OS X Server unless you really need something on it (and even, iCal Server and Address Book Server are available as open source, you can use another wiki, you can use OpenLDAP instead of Open Directory). ___ 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: WebObjects IDE
(cc'ing the mailing list) It doesn't work that way. WebObjects is Java now. You would need to go through a much more complicated process to use Objective-C in your Java app. You need to read up on the JNA framework. Again, I highly recommend not starting out doing this. You will spin your wheels just fighting this. ms On Feb 11, 2013, at 4:09 PM, Zachary Igielman zacharyi...@gmail.com wrote: How do I import the objective c class into an eclipse project? Here is the class: /* Here is an example .h file, CircularList.h. All behavior is inherited from List, which defines a List of objects. Nowadays we can use NSArray which is more complex than List. * / #include objc/List.h /* Superclass interface */ @interface CircularList: List /* List is superclass */ { int currentLocation; } - (NSString *) next; /* Returns next object in List or nil if none. */ @end /* Here is the corresponding .m file: */ #include CircularList.h @implementation CircularList - (NSString *) next { int numObjects = [self count]; if (currentLocation = numObjects) currentLocation = 0; return [self objectAt:currentLocation++]; } + (NSString *) webScriptNameForSelector:(SEL)sel { if (sel == @selector(nameAtIndex:)) name = [self next]; return name; } + (BOOL)isSelectorExcludedFromWebScript:(S… { if (sel == @selector(nameAtIndex:)) return NO; return YES; } @end How do I connect the objective c with the javascript file or eclipse project? Where does the objective c class go (eg same folder as js)? What is the javascript to call my function 'next'? What does the following code do?: + (BOOL)isSelectorExcludedFromWebScript:(S… { if (sel == @selector(nameAtIndex:)) return NO; return YES; } Sent from my iPad 2 On 11 Feb 2013, at 20:45, Mike Schrag msch...@pobox.com wrote: What IDE can I use for WebObjects development? Can you send me installation instructions for mountain lion and a link to a hello world webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call objective-c classes and functions, if so, how? You will need to wrap it with a JNI. Check http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html for an example. I would use JNA over JNI these days. However, I would also say that you don't want to do it. It would have to be a very compelling reason to do it in my book. You make everything about your deployment significantly more complicated, and you become platform-bound as well. ms ___ 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
[no subject]
I have Eclipse 4.2, when adding a repository when adding the framework, what location URL would I put in? The URL on the website is for 3.7. Sent from my iPad 2 ___ 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:
I assume you mean the URL for the 4.2 install site for WOLips. That's at http://jenkins.wocommunity.org/job/WOLips42/lastSuccessfulBuild/artifact/temp/dist/ Ramsey On Feb 11, 2013, at 2:20 PM, Zachary Igielman wrote: I have Eclipse 4.2, when adding a repository when adding the framework, what location URL would I put in? The URL on the website is for 3.7. Sent from my iPad 2 ___ 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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: Validation .. I found a good page
That's a good question. Thinking out loud Maybe set the session.addError and pass it a keyPath and value and then in the appendToResponse do some magic? or brute force a bunch of class methods to check for the existence of the keypath? James On Feb 11, 2013, at 2:14 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/james%40jimijon.com This email sent to ja...@jimijon.com James Cicenia Founder / CEO Direct: (773) 398-4649 Mail: ja...@jimijon.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: Validation .. I found a good page
I wouldn't. Use the keypath that is. It might be used by more than one component on a page (e.g. in a repetition). If you can assign an HTML id to each, that is best. Otherwise, context().elementID will suffice. On 2013-02-11, at 12:14 PM, Johnny Miller wrote: Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/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: Validation .. I found a good page
Hi Chuck, I think I understand what you are saying. But just to be clear... when validationFailedWithException gets called if I could use context().elementID() to get the input that failed? If so I could then use JavaScript to find the the inputs whose name value is in the array I collect and a css class. Would you happen to have a better suggestion (for adding a class name to an input that failed validation)? Thanks again, Johnny On Feb 11, 2013, at 1:11 PM, Chuck Hill ch...@global-village.net wrote: I wouldn't. Use the keypath that is. It might be used by more than one component on a page (e.g. in a repetition). If you can assign an HTML id to each, that is best. Otherwise, context().elementID will suffice. On 2013-02-11, at 12:14 PM, Johnny Miller wrote: Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/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: Validation .. I found a good page
If I was doing this, I would want my own inputs that could record their validation errors, show their own validation messages, and set their own CSS styles as needed. My validation presentation at WOWODC 2009 and outlines this. And not, it is not done yet. :-) Chuck On 2013-02-11, at 3:27 PM, Johnny Miller wrote: Hi Chuck, I think I understand what you are saying. But just to be clear... when validationFailedWithException gets called if I could use context().elementID() to get the input that failed? If so I could then use JavaScript to find the the inputs whose name value is in the array I collect and a css class. Would you happen to have a better suggestion (for adding a class name to an input that failed validation)? Thanks again, Johnny On Feb 11, 2013, at 1:11 PM, Chuck Hill ch...@global-village.net wrote: I wouldn't. Use the keypath that is. It might be used by more than one component on a page (e.g. in a repetition). If you can assign an HTML id to each, that is best. Otherwise, context().elementID will suffice. On 2013-02-11, at 12:14 PM, Johnny Miller wrote: Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/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 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: Validation .. I found a good page
Got it. I'll re-watch the video. I'm thinking that it would be cool to use a data attribute. Then you could add more information about the error to the input i.e. if you want to add a hover field above the input that contained the error message. On Feb 11, 2013, at 2:18 PM, Chuck Hill ch...@global-village.net wrote: If I was doing this, I would want my own inputs that could record their validation errors, show their own validation messages, and set their own CSS styles as needed. My validation presentation at WOWODC 2009 and outlines this. And not, it is not done yet. :-) Chuck On 2013-02-11, at 3:27 PM, Johnny Miller wrote: Hi Chuck, I think I understand what you are saying. But just to be clear... when validationFailedWithException gets called if I could use context().elementID() to get the input that failed? If so I could then use JavaScript to find the the inputs whose name value is in the array I collect and a css class. Would you happen to have a better suggestion (for adding a class name to an input that failed validation)? Thanks again, Johnny On Feb 11, 2013, at 1:11 PM, Chuck Hill ch...@global-village.net wrote: I wouldn't. Use the keypath that is. It might be used by more than one component on a page (e.g. in a repetition). If you can assign an HTML id to each, that is best. Otherwise, context().elementID will suffice. On 2013-02-11, at 12:14 PM, Johnny Miller wrote: Hi, I was wondering if anyone has an example of how to do the following: Using this method... public void validationFailedWithException(Throwable exception, Object value, String keyPath) { super.validationFailedWithException(exception, value, keyPath); session().addError(exception.getMessage()); } I would like to put exception.getMessage in a mutable dictionary with keypath as the key. Easy enough. Then I'd like to print out the error messages on the page. Easy enough. Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)?? I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input? Thanks in advance, Johnny On Feb 11, 2013, at 8:21 AM, James Cicenia ja...@jimijon.com wrote: Should probably just be named Validation. All the EOF stuff threw me off for a while. http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Validation ___ 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/jlmiller%40kahalawai.com This email sent to 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/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 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
restrictedChoiceKey to return currentClients ??
I have a method in my Client object: public NSArrayClient currentClients() { NSLog.out.appendln( *currentClients ); return Client.fetchClients(editingContext(), Client.IS_ACTIVE.eq(true), Client.CLIENT_NAME.ascs()); } and of course there are attributes isActive, and clientName. I want my Client popup to show a list of active clients. So I have: 100 : (propertyType = 'r' and relationship.destinationEntity.name = 'Client') = keyWhenRelationship = clientName [com.webobjects.directtoweb.Assignment] 100 : ((pageConfiguration like 'Edit*' or pageConfiguration like 'Create*') and (propertyKey = 'client' or propertyKey = 'briefLogo')) = componentName = ERD2WEditToOneRelationship [com.webobjects.directtoweb.Assignment] so far so good, my popup displays the clientName of entity Client. 102 : propertyKey = 'clientName' = restrictedChoiceKey = object.currentClients [com.webobjects.directtoweb.Assignment] obviously there is something wrong with the LHS as currentClients() is never fired. What am I leaving out? 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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: restrictedChoiceKey to return currentClients ??
so I go to bed and of course can't sleep thinking of this crap and it dawns on me: object.client.clientName duh sorry for the answering my own question again. Ted --- On Mon, 2/11/13, Theodore Petrosky tedp...@yahoo.com wrote: From: Theodore Petrosky tedp...@yahoo.com Subject: restrictedChoiceKey to return currentClients ?? To: WebObjects Development webobjects-dev@lists.apple.com Date: Monday, February 11, 2013, 10:58 PM I have a method in my Client object: public NSArrayClient currentClients() { NSLog.out.appendln( *currentClients ); return Client.fetchClients(editingContext(), Client.IS_ACTIVE.eq(true), Client.CLIENT_NAME.ascs()); } and of course there are attributes isActive, and clientName. I want my Client popup to show a list of active clients. So I have: 100 : (propertyType = 'r' and relationship.destinationEntity.name = 'Client') = keyWhenRelationship = clientName [com.webobjects.directtoweb.Assignment] 100 : ((pageConfiguration like 'Edit*' or pageConfiguration like 'Create*') and (propertyKey = 'client' or propertyKey = 'briefLogo')) = componentName = ERD2WEditToOneRelationship [com.webobjects.directtoweb.Assignment] so far so good, my popup displays the clientName of entity Client. 102 : propertyKey = 'clientName' = restrictedChoiceKey = object.currentClients [com.webobjects.directtoweb.Assignment] obviously there is something wrong with the LHS as currentClients() is never fired. What am I leaving out? 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: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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
D2W Question: ERXD2WList, how to retain sort order key
Hi again, I have a ERXD2WList [B] in a page/component [A] and have propertyIsSortable = true on all properties. The sorting is all ajax-y and works, but when the user clicks a row to view a single item on a new page, then clicks a back link to go back to the list page, the sort is lost. How can I retain the sort last selected by the user? I am about to go crazy on this and replace all the header components with my my own header component hack that calls ognl like ~parent.parent.parent.sortBy( propetyName ) something-or-other if I can't get a clean way to have the list save off the sort key or the sort orderings off, either back to the parent component or the session. Would that even work? I have no idea how that ajax stuff works, if [B] still can traverse up the component tree to [A] and set something, and then get fed the new sorted list of stuff as the source of the refreshed table. Am I talking crazy? = Robert = ___ 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: D2W Question: ERXD2WList, how to retain sort order key
ERCoreBusinessLogic can save user preferences for sort order. Would something in there help you? Sent from my iPad On 2013-02-11, at 9:03 PM, Robert Hanviriyapunt roberth...@mac.com wrote: Hi again, I have a ERXD2WList [B] in a page/component [A] and have propertyIsSortable = true on all properties. The sorting is all ajax-y and works, but when the user clicks a row to view a single item on a new page, then clicks a back link to go back to the list page, the sort is lost. How can I retain the sort last selected by the user? I am about to go crazy on this and replace all the header components with my my own header component hack that calls ognl like ~parent.parent.parent.sortBy( propetyName ) something-or-other if I can't get a clean way to have the list save off the sort key or the sort orderings off, either back to the parent component or the session. Would that even work? I have no idea how that ajax stuff works, if [B] still can traverse up the component tree to [A] and set something, and then get fed the new sorted list of stuff as the source of the refreshed table. Am I talking crazy? = Robert = ___ 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/programmingosx%40mac.com This email sent to programming...@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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com