Re: EnterpriseObjects in a regular Java application
Sorry if I'm late (and the answer already given)The simplest way to create a command line app is to overload application.run() like this:In file Application.java write the following methodpublic void run() { // when the framework finally calls this method everything is properly set up // just never call super.run() to not start the R-R-loop // do whatever you want in here}Hope this helps---markus---On 27.01.2006, at 21:35, John Huss wrote:Is it possible to use my EnterpriseObjects classes and EOModel in a regular Java application without any web interface?How do I get a connection to the database and get an editing context?My ultimate goal is to write a little command-line program that will import text files into a database at scheduled times. If this is a bad approach I'm open to other ideas.Thanks,John ___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/markus%40ruggiero.chThis email sent to [EMAIL PROTECTED] Markus Ruggierorucotec consulting and technologies email mailto:[EMAIL PROTECTED]rucotec GmbH web http://www.rucotec.chSteinentorstrasse 8 4051 Basel Mobile +41 (0)79 508 4701Switzerland Phone/Fax +41 (0)61 271 4990 ___ 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 archive@mail-archive.com
Re: EO/Java class default Values
On 27.09.2006, at 06:40, Tarun Reddy wrote:Sorry if this is dirt simply but I seem to be missing something that every google search, as well as page 170 in Joshua Marker's book suggest should work.I have a small app where there is an WOHyperlink called "Submit new idea" that calls a method that creates a new "Idea" object and the returns a new "EditIdea" page. public EditIdea submitIdeaAction() { EditIdea nextPage = (EditIdea) pageWithName("EditIdea"); // Initialize your component here EOEditingContext ec = session().defaultEditingContext(); ec.revert();Idea aNewIdea = (Idea) EOUtilities.createAndInsertInstance(ec, "Idea");nextPage.editIdea = aNewIdea;return nextPage; }In the Idea class (which is an EOGenerator class) has a constructor method that by sets the status of the class to "PROPOSED". private static final String PROPOSED = "P"; public Idea() { super(); setProposedStatus(); } public void setProposedStatus() { setStatus(PROPOSED); }However, by the time I get to the EditIdea page, the Idea's status is null. Huh? I know the constructor above is getting called, but I don't know why it gets reset on the EditIdea page.I can only think that the creation and insertion of the EO into the editing context does this. However I would not use the constructor to init any default value but implement the dedicated method awakeFromInsertion() for this purpose. The constructor is also executed when you read the object data from the database and the framework re-constructs your EO. This is probably not what you want. Don't miss my latest project at http://blindpromo.comMarkus Ruggierorucotec consulting and technologies email mailto:[EMAIL PROTECTED]rucotec GmbH web http://www.rucotec.chSteinentorstrasse 8 4051 Basel Mobile +41 (0)79 508 4701Switzerland Phone/Fax +41 (0)61 271 4990 ___ 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 archive@mail-archive.com
[OT] The omnigroup does not like me anymore
Sorry for the OT posting. I am subscribed to various WO/EOF/Apple related mailing list from the omni group. For the last couple of days I have not received one mail from them. What I have done so far: Used the web interface to the listmanager to try and check my subscription. However as I could not remember my password I opted for them to mail it to me. While waiting for that mail my memory came back and I could log in. All my subscriptions are enabled and all look fine. Only after some hours I realised that the password reminder had not yet come. This made me really suspicious. So I put my mail server (Mac OS X Tiger with postfix) into postfix debug level log and waited what was going to show in the logs. Well, everything but nothing from the omni group listserver, Last desperate test this morning: while running tail -f /var/log/mail.log (still debug level) I again requested a password reminder. The web page tells me that the mail had been sent, but my log shows nothing. However all the spam as well as any other mail e.g. from lists.apple.com and everything else comes in nicely and shows in the log. Just nothing from the omni group (not even a connect attempt and a reject). I have sent a mail to the listmanager but have yet to receive an answer (and yes, I gave them an alternate reply to in case their mail server really hates me) So is anyone aware of any problem? Thanks a alot and again sorry for the OT ---markus--- ___ 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 archive@mail-archive.com
Re: Perform Parent Action from within a WORepetition in the subcomponent
Wouldn't it be better design-wise to factor out this functionality into some helper object? Then in the child you could bind to a getter that relies upon this helper - and the parent does the same. Just thinking loud ---markus--- On 18.01.2007, at 17:55, Robert Walker wrote: Seabix, Wouldn't using performParentAction() from a subcomponent invoke an action and subsequently create a new request-response loop? I don't really think that's what you're after. It seems to me that you really want an instance variable in the parent that you would access from the subcomponent through key value coding. Put your calculation in the getter method so KVC will access its return value through your bound key. Maybe the ^value1ModifiedByParent binding syntax would work for your. Otherwise you could also use a backing instance variable inside your subcomponent that binds directly to the instance variable in the parent component. This is just off the top of my head, but seems like a more logical solution. On Jan 17, 2007, at 4:43 PM, Seabix GmbH - Th. Kramis wrote: Is it possible to do the following? How? ParentComponent - Parent.wo ChildComponent - Child.wo There is a WORepetiotion in Child.woa with a bunch of String values. So the WORepetition is bound to the NSArray listValues and to the String value. No i wan't to give the value of each iteration up to the parent where an action (public String modifyChildValue()) is performed and the return value will show up next to the original value in the WORepetition (in Child.wo). The Result would be something like this: Value1 - Value1ModifiedByParent Value2 - Value2ModifiedByParent Value3 - Value3ModifiedByParent Can anyone help me on this? 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: http://lists.apple.com/mailman/options/webobjects-dev/ robertwalker1%40mac.com This email sent to [EMAIL PROTECTED] -- Robert Walker [EMAIL PROTECTED] ___ 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/markus% 40ruggiero.ch This email sent to [EMAIL PROTECTED] Don't miss my latest project at http://blindpromo.com Markus Ruggiero rucotec consulting and technologiesemail mailto:[EMAIL PROTECTED] rucotec GmbH web http://www.rucotec.ch Steinentorstrasse 8 4051 Basel Mobile+41 (0)79 508 4701 SwitzerlandPhone/Fax +41 (0)61 271 4990 ___ 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 archive@mail-archive.com
Old D2W Project Builder projects to new world?
Hi, after some 3 years of absence from WO I have a customer asking me to teach an old D2W application some new things and port it to the new world. The app is currently maintained on WindowsXP with WO 5.2 and the old Project Builder and tools. Some time ago I have done Eclipse/WOlips things on my Mac, but no D2W. What are the currently recommended versions of Eclipse and WOlips? What is the best and easiest strategy to port such an old D2W to Eclipse/WOlips? I am primarily looking for strategic advice. One important thing is that the new app must be deployed into the existing environment (I have no influence there and cannot change anything). Thus there will still be WO 5.2 runtime installed and deployment is through JavaWOMonitor. I cannot request installation of new frameworks (e.g. Wonder). Any such addition must be self-contained inside the .woa Any good advice? Some (simple) steps I can follow? Step by step outline of the procedures? My WO has become a bit rusty and my D2W knowledge is like oh, some sentences in the docs seem to be kind of familiar. Thanks a lot and happy New WOYear ---markus--- ___ 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
Inserting quote char into generated output
Hi wo-gurus, I have the following problem: I want to generate XML and need to put literal and char into the output. The wo parser however fails and I do not know how to effectively solve this. Let me give an example: Desired output: value name=ABCD/value ABCD comes from the database. However value name=webobject name=myName/value with binding myName : WOString { value=myEO.name;} does not work as the literal quotes confuse the parser. Tried to put quot; there but the resulting XML file is not what I need. Next try: value name=webobject name=quote /ABCDwebobject name=quote //value with binding quote : WOString { value=;} also does not work (triple chars). Replacing by ' adds to the confusion of the parser at runtime. So I would have to get the binding from the java code. Is this really the only way to do it? Makes the component html pretty unreadable. I have a similar problem in cases where I want to generate the above value tag itself. There the parser is confused by the multiple chars. webobject name=valueTag / Thank you all for your help have a nice wo-day ---markus--- ___ 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
Problem with unicode support
Hi, I am currently fighting with a ERD2W application and unicode character support. Some chars simply do not make it into the browser display. One example is → (right arrow). DB is Oracle 9 running on WinNT, development on Snow Leo I can copy/paste that particular char from an Excel table into the database using SQLDeveloper. The arrow gets there and stays there. However when I access the DB with my D2W app the char shows up as ?. As far as I could see from the debugger the correct symbol makes it into java vars, but then it gets lost somewhere. Connection string for Oracle ends with the parameter ?charSet=utf-8 (interesting side note: EOModeler inside WOLips cannot generate SQL when this parameter is there (SID not known), app however seems to run fine with it - is this a bug?). I thought that PageWrapper.wo is the one being used - and there I have meta http-equiv=Content-Type content=text/html; charset=utf-8 / declaration but obviously this page wrapper is not being used as none of my headers lines show up. And nowhere in the rules file can I find any rule for a different page wrapper. The page in the browser does not have my header lines and thus lacks the charset declaration. How do I get the correct right arrow symbol to show up from the database in the browser - and how do I make sure that when the user edits some fields and puts such a char in that the right thing goes to the database. I must be missing some simple things... Thanks for help ---markus--- ___ 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
D2W Question
Hi WO Developers, I need help with D2W, I want to provide a Download as Excel link on each list page. What is the best way to accomplish this? I know I can freeze a list page and modify it but this decouples me from the rule system. This is a plain out-of-the-box WonderD2W app. Thanks a lot ---markus--- PS: I am still very confused by the lack of documentation (or my not being able to find it). I do have the source to the Wonder Frameworks but even with that finding what I want to know is more or less like shooting with a shotgun into a large forest and hoping to hit something edible... ___ 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: D2W Question
Paul, Thanks, I already know how to create the Excel file. The problem I face is that I have several D2W list pages (user going from query to list for any entity) and I want to add a Download as Excel link/button/action/whatever to each one of them. The list pages are dynamically generated. How do I add my own display item to such a page? Of course I can freeze the page and then add the link manually but this de-couples me from the rule system as I cannot use Rule Modeler to further change the page(s) anymore. Any ideas? Thanks ---markus--- On 02.03.2011, at 13:57, Paul D Yu wrote: Markus Dave Leber provided a very simple way to generating Excel files. See his blog here. http://davidleber.net/?p=369 Paul On Mar 2, 2011, at 6:53 AM, Markus Ruggiero wrote: Hi WO Developers, I need help with D2W, I want to provide a Download as Excel link on each list page. What is the best way to accomplish this? I know I can freeze a list page and modify it but this decouples me from the rule system. This is a plain out-of-the-box WonderD2W app. Thanks a lot ---markus--- PS: I am still very confused by the lack of documentation (or my not being able to find it). I do have the source to the Wonder Frameworks but even with that finding what I want to know is more or less like shooting with a shotgun into a large forest and hoping to hit something edible... ___ 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/pyu%40mac.com This email sent to p...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Question
Jesse, I am not sure if I understand you. How can I add a dummy property to the list *Page*? I can add a property to the records in the list (via displayPropertyKeys) resulting in an additional column but the requirement is that underneath the list above the [Return] button is an action element that takes the datasource for the list and creates an Excel file from it. Can I really add a property to the *page*? How would I do that, what would the rules look like? Thanks for any clarification. Have fun (as I currently have *grin*) ---markus--- On 02.03.2011, at 15:55, Jesse Tayler wrote: typically, you can add a property to the list page, then assign a component to that property and make your component understand how to download your file based on the context. so, you're creating a custom component, and rules to add it onto the list and assign the component to a property in your list just so it has a column etc. On Mar 2, 2011, at 9:34 AM, Markus Ruggiero wrote: Paul, Thanks, I already know how to create the Excel file. The problem I face is that I have several D2W list pages (user going from query to list for any entity) and I want to add a Download as Excel link/button/action/whatever to each one of them. The list pages are dynamically generated. How do I add my own display item to such a page? Of course I can freeze the page and then add the link manually but this de-couples me from the rule system as I cannot use Rule Modeler to further change the page(s) anymore. Any ideas? Thanks ---markus--- On 02.03.2011, at 13:57, Paul D Yu wrote: Markus Dave Leber provided a very simple way to generating Excel files. See his blog here. http://davidleber.net/?p=369 Paul On Mar 2, 2011, at 6:53 AM, Markus Ruggiero wrote: Hi WO Developers, I need help with D2W, I want to provide a Download as Excel link on each list page. What is the best way to accomplish this? I know I can freeze a list page and modify it but this decouples me from the rule system. This is a plain out-of-the-box WonderD2W app. Thanks a lot ---markus--- PS: I am still very confused by the lack of documentation (or my not being able to find it). I do have the source to the Wonder Frameworks but even with that finding what I want to know is more or less like shooting with a shotgun into a large forest and hoping to hit something edible... ___ 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/pyu%40mac.com This email sent to p...@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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Question
Thanks all, some very interesting tips. I was away from work for the last two days so I can only catch up today. I'll start reading the mentioned docs and shall try out the tips Have fun ---markus--- On 02.03.2011, at 21:23, David Holt wrote: Hi Markus, On 2011-03-02, at 3:53 AM, Markus Ruggiero wrote: Hi WO Developers, I need help with D2W, I want to provide a Download as Excel link on each list page. What is the best way to accomplish this? I know I can freeze a list page and modify it but this decouples me from the rule system. This is a plain out-of-the-box WonderD2W app. Thanks a lot ---markus--- PS: I am still very confused by the lack of documentation (or my not being able to find it). I do have the source to the Wonder Frameworks but even with that finding what I want to know is more or less like shooting with a shotgun into a large forest and hoping to hit something edible... I just wanted to follow up on your documentation comment. Have you read the stuff linked to from the wiki? http://wiki.objectstyle.org/confluence/display/WO/Direct+To+Web+%28D2W+and+ERD2W%29 There are some good resources there. How can they be improved? What is missing? Conceptual topics? How-tos? d ___ 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/programmingosx%40mac.com This email sent to programming...@mac.com Markus Ruggiero Gartenstrasse 71jmailto:mar...@ruggiero.ch CH-4132 Muttenz http://www.ruggiero.ch Switzerland mobile/GSM+41 (0)79 508 47 01 ___ 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: D2W Question
' = displayPropertyKeys = (firstAttribute,anotherAttribute, yetAnotherAttribute,etc,etc,etc) [com.webobjects.directtoweb.Assignment] You will see that the call to pageForConfigurationNamed method in the Controller method above is the same as the pageConfiguration in this rule, i.e. ListExcelCCCommunicationIdentity. I believe that's it. Basically here's the flow: 1) The first rule tells the listing page for my Entity to show the page-level controller button 2) The second rule associates my controller class with the listing page. D2W automatically populates the controllerAction popup button (via Java reflection) with all the public methods in the Controller class that return a WOActionResults object. 3) The exportToExcel method in the controller tells D2W to create a new listing page for the Entity that is, in fact, an Excel file (instead of an HTML file). 4) The last rule tells D2W what columns to include in the Excel file. With WebObjects, there are usually 4 or 5 ways to skin a cat. This is just one. Dave Holt has another way and I'm guessing Dave LeBer has yet another, and that probably still wouldn't be all the ways to do what you are asking. This method gets you a pop-up with the actions that can be taken by the controller. If you want actual individual buttons, then I believe the ERDActionBar is what you're going to want instead.\ Dave On Mar 4, 2011, at 7:50 AM, Markus Ruggiero wrote: Hi David, After going through the mentioned wiki pages I am kind of more confused than before :-( If you could share the necessary rules and code pieces that would be really great for a start. I have been doing D2W quite a bit some years ago, before the Project Wonder days. The current project I am working on is a legacy thing that I have taken over to expand. The folks that have initially implemented the code did know a lot about java but had basically no clue about WO and D2W. So I have to find my way not only through ERD2W... but I also have to figure what and why something has been done the way it is. The programmers have already implemented the required functionality in some list pages by freezing an entity specific list page component and manually adding a hyperlink [download excel] between the list and the return-button. On 02.03.2011, at 16:39, David Avendasora wrote: Hi Markus, I've actually implemented exactly what you are asking for and it works great and is fully controlled by the rules engine. I've not looked into David(H)'s recommendation of ERDActionBar, but I've used the ERDBranchDelegate and ERDControllerButton solution outlined on the Wiki here: http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+Control. I get one drop-down on the page from which I can select Export To Excel to export the entire result set (not just the currently visible batch) into an excel file. The columns, column names, etc. included in the Excel file are completely independent of what is shown on the page and are controlled by a D2W rules just like the page is. Dave On Mar 2, 2011, at 10:12 AM, David Holt wrote: Hi Markus, You need to use the ERDActionBar. Jesse's method is a possibility but it will put the link in every row in the list. The ActionBar will allow you to put it in the topActions or bottomActions block. There is a wiki page that talks about PageFlow in D2W. You should find everything you need there. ModernLook definitely supports this, and I assume that NeutralLook does as well. I'll be at work shortly if you need more assistance with getting it going. David On 2011-03-02, at 3:53 AM, Markus Ruggiero wrote: Hi WO Developers, I need help with D2W, I want to provide a Download as Excel link on each list page. What is the best way to accomplish this? I know I can freeze a list page and modify it but this decouples me from the rule system. This is a plain out-of-the-box WonderD2W app. Thanks a lot ---markus--- PS: I am still very confused by the lack of documentation (or my not being able to find it). I do have the source to the Wonder Frameworks but even with that finding what I want to know is more or less like shooting with a shotgun into a large forest and hoping to hit something edible... ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/webobjects
Re: D2W Question
Anjo, That's what I already tried but it does not work :-( I found that the app always fires the rule: 100: (pageConfiguration = 'ListExcelTextblock') = excelFileName = Textblock.xls [com.webobjects.directtoweb.Assignment] when it is there. When I remove this rule I always get the default excel file name results.xls. It looks as if the binding in EGWrapper always goes to the rule system and when there is no rule it uses the default. Rule tracing show this clearly. ERExcelListPage.wo uses EGWrapper as its page wrapper and passes the following binding to it fileName = d2wContext.excelFileName; Even doing copy/paste to make sure there is no typo in the word excelFileName does obviously not properly set that particular key in d2wContext. Could it be that the d2wContext is not the same when I set the key? Confused ---markus On 07.03.2011, at 19:50, Anjo Krank wrote: This works and is almost generic (ExcelDownload component is). However for being truly generic it would be great if I could specify excelFileName and displayNameForSectionKey dynamically with the entity name instead of hard coding those into the rules as above. So what I want is a rule like Add: d2wContext.takeValueForKey(d2wContext.valueForKey(entity.name) + .xls, excelFileName); in your link method. Cheers, Anjo ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Intercept submitAction in generated D2W Edit Page
I have a nicely generated ERD2WInspectPage for an entity (task = edit). Now I need to take special action after this entity has been successfully saved. I must automatically generate a PDF from the saved data and put it into some predefined location in the file system. How can I do this? I know how to generate the PDF but I need to know how to trigger my generatePDF code? Is there an elegant D2W way of doing this? WO is so much fun and D2W is like fun on steroid and sometimes it's just plain frustrating... and it is now late into the night and I don't see the forest for the trees anymore. Thanks for help ---markus--- ___ 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
Example needed for ERD2WEditToOneRelationshipWithFilter
Could someone please give me a short example for the use of ERD2WEditToOneRelationshipWithFilter? The minimalist documentation is (to me) of not much help. Lets say I need to create a toOneRelationship to entity TechnicalDoc where the attribute isReady is true. Relationship to technical docs that are not ready should not be allowed. What would the rules be? I am particularly interested in the ERD2WDelayedBooleanAssignment rule. Thanks a lot ---markus--- ___ 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: Example needed for ERD2WEditToOneRelationshipWithFilter
On 09.03.2011, at 12:00, Markus Ruggiero wrote: Could someone please give me a short example for the use of ERD2WEditToOneRelationshipWithFilter? The minimalist documentation is (to me) of not much help. Lets say I need to create a toOneRelationship to entity TechnicalDoc where the attribute isReady is true. Relationship to technical docs that are not ready should not be allowed. What would the rules be? I am particularly interested in the ERD2WDelayedBooleanAssignment rule. Thanks a lot ---markus--- Any takers? My problem is not so much how to use ERD2WEditToOneRelationshipWithFilter but how to specify the necessary rule(s) with the ERD2WDelayedBooleanAssignment. The doc for the editToOne... only says Adds a filter for the select list. How to use: Set a delayed boolean assignment on restrictedChoiceKey or restrictedFetchSpecification based on the condition key defined by filterKey For me this is not enough. What is restrictedChoiceKey? What is and how do I specify condition key and filterKey? I found an example rule in one of the ERFramework's rule file but I cannot translate the pattern of that rule into my problem space. Thanks ---markus--- ___ 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: [Q] D2W sorting lists with property level custom component
On 14.03.2011, at 19:24, Markus Ruggiero wrote: More D2W problems here: I have a simple D2W list page with a couple of attributes. All the columns have the sort icon and sorting works. One of the attributes is a very large string. So I created a CollapsibleLargeString property level component. This component is basically a WOCollapsibleComponentContent that shows the full string in opened state and shows a truncated version of the string as the collapsed label. When I use this component sorting does not work any more. All the records can be sorted by clicking the sort icon above the columns but the column for that large string does not sort with the rest of the list. Thus the displayed values stay at their place and the rest of the table sorts around them. Why? What does a custom component for display have to do with the sort order? Why is the whole table sorted but this particular column stays as it was? Sortkey is properly set. Replacing the custom component by e.g. D2WDisplayString fixes the issue. Weird, but the problem has gone somehow / fixed itself :-) Love that kind of solution Cheers ---markus--- ___ 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
Modelling boolean in D2W compliant way
I have a (Oracle) table where boolean attributes are defined as char(1) with possible values Y, N, or NULL (is equivalent to N). Due to 3rd party apps I cannot change the database to char(5) and use the standard modelling technique of toString() and valueOf() with Strings true and false in the DB. How can I model such an attribute in a D2W compliant way? I have tried the following: rename the attribute in EOModel to publishedYN but leave the column name published and added published() and setPublished() to the business logic. This works and I can e.g. use ERD2WCustomeQueryBoolean in my query page configuration. However when I click query I get the following exception: java.lang.IllegalStateException: sqlStringForKeyValueQualifier: attempt to generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (publish = (java.lang.Boolean)'false') failed because attribute identified by key 'publish' was not reachable from from entity 'TechdocType' Yes, there is no such attribute and thus the crash makes sense. How can I fix this? Any ideas? Unfortunately it is not possible to extend java.lang.Boolean Help and lots of thanks ---markus--- ___ 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: Modelling boolean in D2W compliant way
On 16.03.2011, at 14:53, Markus Ruggiero wrote: I have a (Oracle) table where boolean attributes are defined as char(1) with possible values Y, N, or NULL (is equivalent to N). Due to 3rd party apps I cannot change the database to char(5) and use the standard modelling technique of toString() and valueOf() with Strings true and false in the DB. How can I model such an attribute in a D2W compliant way? I have tried the following: rename the attribute in EOModel to publishedYN but leave the column name published and added published() and setPublished() to the business logic. This works and I can e.g. use ERD2WCustomeQueryBoolean in my query page configuration. However when I click query I get the following exception: java.lang.IllegalStateException: sqlStringForKeyValueQualifier: attempt to generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (publish = (java.lang.Boolean)'false') failed because attribute identified by key 'publish' was not reachable from from entity 'TechdocType' Yes, there is no such attribute and thus the crash makes sense. How can I fix this? Any ideas? Unfortunately it is not possible to extend java.lang.Boolean Nobody? Really? Someone must have had the same or a similar issue! How did you solve this? Oh well, I seem to have found the ultimate not-yet-solved-issue(TM) Fun to you and have a great weekend ---markus--- ___ 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
URGENT problem with D2W and PageWrapper.wo
I have an urgent and rather weird problem in a D2W application. I can put anything into PageWrapper.wo and it works - unless I put things into the head-section above body. There is a webobjects D2WHead wrapping some style defs and a couple of meta infos. These do not make it into the generated page. So something is swallowing everything between head and /head (tried with and without D2WHead). Everything gets replaced by meta name=Author content=Direct to Web/ meta name=GENERATOR content=WebObjects/ title ec_admin: QueryAll /title (ec_admin being the app name). Where is my stuff? What am I missing? Thanks ---markus--- ___ 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: URGENT problem with D2W and PageWrapper.wo
On 23.03.2011, at 16:46, Anjo Krank wrote: I so love verbose bug descriptions... can't you simply post the relevant parts of your components, so as to not force everyone to make wild guesses? Cheers, Ajo Sorry, thought that was enough. It was for Ramsey Gurley. Thank you, you made my day! ---markus--- Am 23.03.2011 um 16:40 schrieb Markus Ruggiero: I have an urgent and rather weird problem in a D2W application. I can put anything into PageWrapper.wo and it works - unless I put things into the head-section above body. There is a webobjects D2WHead wrapping some style defs and a couple of meta infos. These do not make it into the generated page. So something is swallowing everything between head and /head (tried with and without D2WHead). Everything gets replaced by meta name=Author content=Direct to Web/ meta name=GENERATOR content=WebObjects/ title ec_admin: QueryAll /title (ec_admin being the app name). Where is my stuff? What am I missing? Thanks ---markus--- ___ 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/anjo%40krank.net This email sent to a...@krank.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: http://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: Modelling boolean in D2W compliant way
Just to let you know what I ended up with: I created my own EditYNBoolean and QueryYNBoolean property level component. Using a custom read/write format on the attribute worked almost... The format is also being used in the where-clause against the database when the use for locking flag is set in the EOModel on that particular attribute. And in that case Oracle throws up. Oh well. Anyway my problem is solved and I am busy finding more things to do that I am going to ask here :-))) Have a nice day ---markus--- On 19.03.2011, at 15:23, Ramsey Gurley wrote: I think either you could use an attribute read/write format http://developer.apple.com/legacy/mac/library/#documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/WorkingWithAttributes.html%23//apple_ref/doc/uid/TP30001018-CH204-BABCHIIF Or you could model a custom boolean prototype using ERAttributeExtension. Ramsey On Mar 19, 2011, at 5:44 AM, Markus Ruggiero wrote: On 16.03.2011, at 14:53, Markus Ruggiero wrote: I have a (Oracle) table where boolean attributes are defined as char(1) with possible values Y, N, or NULL (is equivalent to N). Due to 3rd party apps I cannot change the database to char(5) and use the standard modelling technique of toString() and valueOf() with Strings true and false in the DB. How can I model such an attribute in a D2W compliant way? I have tried the following: rename the attribute in EOModel to publishedYN but leave the column name published and added published() and setPublished() to the business logic. This works and I can e.g. use ERD2WCustomeQueryBoolean in my query page configuration. However when I click query I get the following exception: java.lang.IllegalStateException: sqlStringForKeyValueQualifier: attempt to generate SQL for com.webobjects.eocontrol.EOKeyValueQualifier (publish = (java.lang.Boolean)'false') failed because attribute identified by key 'publish' was not reachable from from entity 'TechdocType' Yes, there is no such attribute and thus the crash makes sense. How can I fix this? Any ideas? Unfortunately it is not possible to extend java.lang.Boolean Nobody? Really? Someone must have had the same or a similar issue! How did you solve this? Oh well, I seem to have found the ultimate not-yet-solved-issue(TM) Fun to you and have a great weekend ---markus--- ___ 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/ramseygurley%40gmail.com This email sent to ramseygur...@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
Weird NullPointerException
I have an EO that has business logic for creating an PDF file. There is a WOComponent that generates an XML which is then fed to ApacheFOP. Following code is in the EO: GeneratedDocument.java public void generatePDF(WOComponent sender) { if (sender == null) { return; } String generatorName = xmlGeneratorClassName(); if (generatorName != null) { XmlGeneratorComponent xmlGenerator = (XmlGeneratorComponent)sender.pageWithName(generatorName); PDFGenerator pdfGenerator = PDFGenerator.sharedInstance(); pdfGenerator.generatePdfFile( this, xmlGenerator ); } else { log.error( *** No xmlGeneratorClassName available ); } } Depending on the context I call this I get a NullPointerException or not. This is the NPE, context info follows below: Mar 25 11:13:49 ec_admin[13000] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: java.lang.NullPointerException [2011-3-25 11:13:49 CET] WorkerThread14 java.lang.NullPointerException at com.webobjects.appserver._private.WOComponentReference._popComponentFromContext(WOComponentReference.java:108) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:128) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:113) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:104) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38) 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) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) 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) at er.directtoweb.pages.ERD2WPage.invokeAction(ERD2WPage.java:619) at er.directtoweb.pages.ERD2WListPage.invokeAction(ERD2WListPage.java:479) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745) at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:93) at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1863) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at
Re: Weird NullPointerException
Thanks Chuck, you made my day. Cheers ---markus--- On 25.03.2011, at 18:47, Chuck Hill wrote: Hi Markus, On Mar 25, 2011, at 3:41 AM, Markus Ruggiero wrote: I have an EO that has business logic for creating an PDF file. There is a WOComponent that generates an XML which is then fed to ApacheFOP. Following code is in the EO: GeneratedDocument.java public void generatePDF(WOComponent sender) { if (sender == null) { return; } String generatorName = xmlGeneratorClassName(); if (generatorName != null) { XmlGeneratorComponent xmlGenerator = (XmlGeneratorComponent)sender.pageWithName(generatorName); That might be a problem there. Try this instead: XmlGeneratorComponent xmlGenerator = (XmlGeneratorComponent)WOApplication.application().pageWithName(generatorName, new WOContent(sender.context().request())); It is usually safer to create a new context for things like this. Chuck PDFGenerator pdfGenerator = PDFGenerator.sharedInstance(); pdfGenerator.generatePdfFile( this, xmlGenerator ); } else { log.error( *** No xmlGeneratorClassName available ); } } Depending on the context I call this I get a NullPointerException or not. This is the NPE, context info follows below: Mar 25 11:13:49 ec_admin[13000] WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: java.lang.NullPointerException [2011-3-25 11:13:49 CET] WorkerThread14 java.lang.NullPointerException at com.webobjects.appserver._private.WOComponentReference._popComponentFromContext(WOComponentReference.java:108) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:128) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:113) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at er.extensions.components.conditionals.ERXWOConditional.invokeAction(ERXWOConditional.java:104) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38) 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) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:117) 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) at er.directtoweb.pages.ERD2WPage.invokeAction(ERD2WPage.java:619) at er.directtoweb.pages.ERD2WListPage.invokeAction(ERD2WListPage.java:479) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745) at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:93) at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1863) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication
Excel download question
Just a quick question regarding ERExcelListPage: How can I add a line break inside one Excel cell? I have a toMany relationship where the customer wants the values of a destination key put into one Excel cell as a single multi line value. How can I do this? I already have a simple custom component that puts the values in one cell but I can only add a printable separator (eg | or , or - or similar) but not a line break. Thanks for any help ---markus--- ___ 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
D2W master-detail handling question
I have a one-2-many relationship from master to detail. The user selects a detail from a ListDetail page configuration, then clicks edit on a given detail. In page configuration EditDetail I have a ERD2WEditToOneRelationship as a popup for the toMaster relationship. Now the user thinks/wants to select a different master from this popup and switch to that master. Of course this makes no sense. And it also makes no sense business wise to re-assign that particular detail to a different master. However on new detail the user must be able to select the master. How can I easily distinguish between the cases where the detail is not yet saved (in case of new) and where a saved detail is edited so that the relationship toMaster can be made edit/non-edit accordingly? Thanks ---markus--- ___ 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: D2W master-detail handling question
Thanks, only after posting my question I realised that D2W distinguishes between EditDetail and CreateDetail page configs. You just confirmed my findings. This list (and all the folks that answer to postings) is just great. Eventually I'll be able to give answers myself. Have fun ---markus--- On 06.04.2011, at 19:01, David Holt wrote: Hi Markus, On 2011-04-05, at 11:14 PM, Markus Ruggiero wrote: I have a one-2-many relationship from master to detail. The user selects a detail from a ListDetail page configuration, then clicks edit on a given detail. In page configuration EditDetail I have a ERD2WEditToOneRelationship as a popup for the toMaster relationship. Now the user thinks/wants to select a different master from this popup and switch to that master. Of course this makes no sense. And it also makes no sense business wise to re-assign that particular detail to a different master. However on new detail the user must be able to select the master. Change your PropertyLevel component to an uneditable string for that relationship in the edit page configuration. In the create page configuration leave it as is. David How can I easily distinguish between the cases where the detail is not yet saved (in case of new) and where a saved detail is edited so that the relationship toMaster can be made edit/non-edit accordingly? Use 2 different page configurations? Thanks ---markus--- ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Confused with delete rules in EntityModeler
Hi, I have a fairly complex structure of several entities (actually this is not so complex after all). Eventually when I try to delete an ElectronicDocument (this is a pure ERD2W app, no custom delete() stuff) my application throws up with java.lang.IllegalStateException: A valid global ID could not be obtained for entity named TextblockReference, relationship named textblocks, primary key dictionary {electronicDocumentID = 14; textblockID = 65; }. I do not really understand what the problem is here but I think it might have something to do with delete rule specification in the model or the flattened relationship. What confuses me is that there are delete rules for both directions of a relationship which makes no sense to me. And what should those be for the flattened relationship? Here is the model: ElectronicDocument --TextblockReference--Textblock. TextblockReference is more than a simple m:n join table. However I have a flattened m:n relationship between ElectronicDocument (called textblocks) and Textblock (called documents) across TextblockReference. There are other entities hanging off TextblockReference: TextblockReferemce--Params--Data. When I delete an ElectronicDocument I want all associated TextblocReferences and everything hanging off it be gone, however Textblock should stay around but not have that particular ElectronicDocument object in its flattened relationship anymore. What would be the proper delete rules and why would I have to specify a delete rule for both directions (this is a general question)? It does not make sense to have a rule from the many to the one entity. Oh, and the DB is Oracle 9 and there are cascading FKs defined. I need those because there are some 3rd party apps messing with the data as well. Yes, ugly, but that's what the customer wants... Thanks for any help ---markus--- ___ 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: Confused with delete rules in EntityModeler
Here is the model: ElectronicDocument --TextblockReference--Textblock. TextblockReference is more than a simple m:n join table. However I have a flattened m:n relationship between ElectronicDocument (called textblocks) and Textblock (called documents) across TextblockReference. There are other entities hanging off TextblockReference: TextblockReferemce--Params--Data. On 26.04.2011, at 16:17, David Avendasora wrote: And what should those be for the flattened relationship? I'm guessing that they should be nullify or do nothing Yes, only one delete rule should affect a given relationship. In fact, I always shy away from (nay, avoid completely) flattened relationships that hide objects I am actually interested in. In general, 'one path to the object' is the rule I try to follow. Absolutely! +1,000,000. EOF gets horribly confused if you have multiple paths. Never, never, never have more than one relationship in an Entity share a FK, or have a FK be a class attribute because you can set one without setting the other, or set them independently to different values, try to delete one relationship and the other still sees it as being valid but the object is long gone. Hmmm. That last one sounds familiar... :-) That makes sense and is what caused the problems in the end. I removed the flattened relationship between ElectronicDocument and Textblock from the model and replaced it by a simple cover method in ElectronicDocument.java -- all problems gone. Thanks to The Davids :-) ---markus--- ___ 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: D2W editRelationship displays PageWrapper???
Weird, this message seems to come from outer space. Is the list server acting up? The issue is long since resolved (thanks Ramsey, your answer was exactly what I needed). Actually I have no idea why the list server reposted my question. Software has a life of its own. Point proven again :-) Have a nice day, all you WO'ers out there. ---markus--- On 22.06.2011, at 22:42, David Avendasora wrote: Hi Markus, Did you miss Ramsey's response back in March? Dave Begin forwarded message: From: Ramsey Gurley ramseygur...@gmail.com Date: March 19, 2011 10:26:22 AM EDT To: Markus Ruggiero mailingli...@kataputt.com Cc: webobjects-dev@lists.apple.com Dev Apple webobjects-dev@lists.apple.com Subject: Re: D2W editRelationship displays PageWrapper??? On Mar 19, 2011, at 5:39 AM, Markus Ruggiero wrote: Hi, I must be overlooking something... When D2W performs EditRelationship it shows a completely wrapped page inside a page. Something with my rules must be wrong but I cannot see which one is wrong or perhaps missing. Any ideas what could cause such a display? 2.jpeg Thanks a lot ---markus--- You probably did 100: *true* = pageWrapperName = SomeWrapper [Assignment] Where you need to do 100: frame != '1' = pageWrapperName = SomeWrapper [Assignment] or 100: not(pageConfiguration like '*Embedded*') = pageWrapperName = SomeWrapper [Assignment] 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: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.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
Excel Generation in D2W
Hi list, Some months ago I have asked for help with generation of Excel from inside a D2W app. This has worked perfectly. But now the customer wants more - and I have no idea how to solve this. I have a model that goes like this (simplified): Document -- Textblock (simple one to many). Each doc and each textblock has a short identifying code (this is not the primary key). For the customer seeing the code is all he needs. I can create an Excel from a ListDocument-PageConfig and I can create Excel from ListTextblock-PageConfig. What the customer now wants is an Excel that looks like this: 1 , doc_a , text_1 , text_2 , text_3 , 2 , doc_b , text_1 , text_3 , text_15 , text_16 3 , doc_k , text_3 , text_4 , , etc So the customer wants to see a document and all its text blocks. Ideally the text block would be listed in sequence each in a column but it would also be ok if we had only one column containing all text blocks. Each document can reference the same or different text blocks and not every document has the same number of text blocks. As the number of text blocks is variable I cannot simply create a database view and model this as a read-only entity in EOModel. Any idea how this could be solved Thanks a lot ---markus--- ___ 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
Trapping SQLException in D2W
Folks, I have the following requirement: I need a unique constraint on the combination of 2 attributes. As I have learned from some postings about a year back the distinct index in EOModeler does not work (and it surely does not for me). Or should it? This is Oracle 9 and WO54, Eclipse Ganymed and suitable WOLips. So to at least to ensure the integrity of the data I have defined a unique constraint via SQL. But now I get a very ugli looking SQLException. This is functionally ok but for the user not acceptable (understandable). How can I trap such an Exception during SAVE in a (ER)D2W app and present a nice looking error message (similar to what is shown when some validations fail)? Thanks a lot and have a nice day ---markus--- ___ 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
D2W many-to-many and ExcelExport help needed
I have a product entity and an industry entity. These are joined by a m:n table (which is more than a simple join table, there is a comments field that is important) product--prodindustry--industry Having an EditProduct pageConfiguration I can with a custom property level component display the to-many industries and the related comment field from the join table. The customer needs an Excel sheet that contains one line per join for a given product. Thus when a product is connected to 3 industries the Excel sheet should then have 3 complete lines for that product, one line per industry (of course with most of the product data redundantly repeated). This is needed so that the customer can easily sort and group the Excel data. Any idea how I can accomplish this with as little effort as possible (I want the 'puter to work for me, not the other way round). This is important to the customer as due to internal restrictions not everyone has access to the application and in this way information is passed around in a restricted fashion. Oh my, this is politics and thus beyond my horizon... Thanks and have a good day ---markus--- ___ 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
Prevent NEW in D2W?
Quick D2W question: isEntityEditable, isEntityDeletable, isEntityInspectable are all fine, but is there something like isEntityNewable? In other words: I have an entity with exactly one record that contains some global parameters to my app. The user must be able to update that one record but he must not be able to add a new record, there must be exactly one record with the same primary key at all times. How would I do this? Thanks ---markus--- ___ 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
Need conceptual help with weird data model
Hi, I am working with a legacy database that I am not allowed to change because other apps access the db and they cannot be changed. Fortunately those apps access the DB in a read-only way, so I can add tables and attributes to existing tables. There is one area that the developers in the past have implemented in a weird way. I am trying to extend the existing structure in a way that allows my D2W app to function properly. We have one table called STATEMENT. A statement can be used as title (boolean flag yes/no), has a unique code (not an id but a user visible string), a description and a label. The external app reads a product table and these statements and via a join table generates a PDF file for the product. The join table entries tell the program, which statement(s) must be included in the PDF report. The label attribute for the statement is what is printed in the PDF. Each statement has a sequence number and each statement has a boolean flag that denotes it as being title or not. Title title statements have sequence numbers like 1000, 2000 etc and non-title statements have respective sequences 1001, 1002, 2001, 2002, etc. So the grouping of statement under its title is given by the range of sequence numbers. In addition a statement can have several variants. These variants all have their own code. However the label field is identical. So to collect all variants for a given statement the app today has to look for statements in the same sequence region with the same label text. We therefore have a 3-level hierarchy where the hierarchy is completely done in code based on assigned number ranges and user editable text (the label attribute). I need help in designing a clean model that works in D2W and then somehow tie it to the existing STATEMENT. I can even go so far as to replace STATEMENT by a view (3rd party app is read-only on the db). Thinking along these lines: - add a foreign key to STATEMENT to get statement belonging to title, and variant belonging to statement. But not every statement has variants. Would I need a qualifying intermediate table? - create a separate hierarchical table to build title-statement-variant and have an attribute on all levels pointing to the record in STATEMENT - create 3 separate tables for the 3 levels? And then? Have these point to the statements or have the statements point to the hierarchy structures? - I am confused :-( Any ideas? What would you recommend? Sorry for bothering but the list is currently my only available sparring partner :-) Thanks a lot ---markus--- ___ 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: Prevent NEW in D2W?
Thanks Ramsey, This is a completely standalone table with no relationships that contains one record with a couple attributes that define the configuration of the app. I was so deep into doing everything without programming that I missed the obvious. Your answer triggered the following solution: Having a simple page with a message and only a CANCEL button for the Create* pageConfiguration should solve my problem. Thanks Ramsey, it is not the first time that your input has helped me further. ---markus--- On 29.08.2011, at 17:18, Ramsey Gurley wrote: On Aug 29, 2011, at 6:32 AM, Markus Ruggiero wrote: Quick D2W question: isEntityEditable, isEntityDeletable, isEntityInspectable are all fine, but is there something like isEntityNewable? In other words: I have an entity with exactly one record that contains some global parameters to my app. The user must be able to update that one record but he must not be able to add a new record, there must be exactly one record with the same primary key at all times. How would I do this? Thanks ---markus--- This sounds like a model problem, not a view or controller problem. If this is a one to one relationship, then model it that way. If the relationship is required, you can simply model it as a mandatory one-to-one joined on PKs and propagate the primary key. EOF will automatically create the related object for you when your eo is created. If it is an optional one-to-one, then model it as two to-one relationships with an FK on each table. Then in your entity class, override the inverseKeyForRelationship method to return the proper inverse relationship for each. If you have no control over the database schema and you need to do optional one-to-one with PKs then you're out of luck. From your description, it sounds like doing it in the app is the wrong way to do it. To do it the wrong way, you'll need to provide your page level actions using a branch delegate and something like ERDControllerButton instead of using isEntity* since there is no key like isEntityNewable. Either that, or you can build your own d2w page template and include an isEntityNewable conditional. 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOCollapsibleComponentContent broken?
I have a weird thing going on here. Custom property level component in an out-of-the-box ERD2W NEUtral app (page config is CreateMyEntity or EditMyEntity). This custom component has a WOCollapsibleComponentContent that hides/reveals additional optional fields. no binding for submitActionName: I get a hyperlink for opening/closing. The hyperlink works but does not submit already entered form values. That I understand! submitActionName = I get a nice active image for form submission. However clicking it crashes with ...has no get() or _get() ... accessor (notice the missing part after the word get I can understand this, however the doc implies different things submitActionName = reload binding to public WOComponent reload() {return null} Displayed collapser reverts to *hyperlink*!!! This I do not understand! And according to WO5.4 doc this should be a submit button. Here is the relevant section from the Apple doc submitActionName The name of an action that is called upon collapse. This attribute functions only when the WOCollapsibleComponentContent component is embedded within a WOForm. If submitActionName is not defined or is set to null, the HTML element that expands the content is a hyperlink. Otherwise the it is a submit button. If you want to expand the content with a submit button, but don’t want it to invoke an action, set this attribute to the empty string (). Anyone knows/has any idea what is going on here? Thanks ---markus--- ___ 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: WOCollapsibleComponentContent broken?
Blush, red faced ... Many moons ago I learned to read and now I seem to have forgotten everything. The name of the binding is submitActionName and not submitAction (note the missing Name part). Replacing submitActionName=reload by submitActionName=anything (note the quotes around anything) WOCollapsibleComponentContent works as it is supposed to. Well, it was a long day and hot one, too. Sorry for bothering and wasting bandwidth. Long live WO/D2W ---markus--- PS Customer is incredibly happy because I am able to fix issues right in the meeting while still discussing the point at hand! My MacBook Pro sits there and I can just edit a rule or two and when the customer is done explaining what he needs Ok, it's already done. Is this what you want? :-))) On 31.08.2011, at 13:31, Markus Ruggiero wrote: I have a weird thing going on here. Custom property level component in an out-of-the-box ERD2W NEUtral app (page config is CreateMyEntity or EditMyEntity). This custom component has a WOCollapsibleComponentContent that hides/reveals additional optional fields. no binding for submitActionName: I get a hyperlink for opening/closing. The hyperlink works but does not submit already entered form values. That I understand! submitActionName = I get a nice active image for form submission. However clicking it crashes with ...has no get() or _get() ... accessor (notice the missing part after the word get I can understand this, however the doc implies different things submitActionName = reload binding to public WOComponent reload() {return null} Displayed collapser reverts to *hyperlink*!!! This I do not understand! And according to WO5.4 doc this should be a submit button. Here is the relevant section from the Apple doc submitActionName The name of an action that is called upon collapse. This attribute functions only when the WOCollapsibleComponentContent component is embedded within a WOForm. If submitActionName is not defined or is set to null, the HTML element that expands the content is a hyperlink. Otherwise the it is a submit button. If you want to expand the content with a submit button, but don’t want it to invoke an action, set this attribute to the empty string (). Anyone knows/has any idea what is going on here? Thanks ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Beware of long Strings
Folks, I had a very troubling experience. Just wanted to know if I am seeing ghosts. Very simple standard to-one relationship. Many entity is Product, one entity is Status. Relationship is modeled via numeric attribute statusId. The one-entity has a plain attribute with following settings: Name: statusText External Type: varchar2 (this is Oracle) External Width: 1000 Class: java.lang.String Data Type: String String s I know this is a large String but none of the entries currently has more than about 100 chars. Using this in ERD2W Application: pageConfiguration=EditProduct and propertyKey=status = componentName=ERD2WEditToOneRelationship pageConfiguration=EditProduct and propertyKey=status = keyWhenRelationship=statusText When the app runs there is a nice popup with a list of all available status texts. Selecting one and pressing [SAVE] generates update SQL statement that sets the statusId on the product to NULL! What? NULL? Why? Editing a product that has a value set for statusId properly displays the related status text in the EditToOne popup. Doing nothing but pressing [SAVE] updates the product and sets statusId to NULL!!! Comparing this toOne relationship with others in the same product entity reveals nothing. Pulling my hair, letting it lie there for a couple of days, deleting the relationship completely, rebuilding the project, re-establishing the relationship, renaming the relationship - nothing helps. Displayed OK but upon save set to NULL. Reconnecting manually by direct SQL manipulation results in proper display again - and reset to NULL upon save. UNTIL... I erroneously remove the second rule from the rule file (the one with keyWhenRelationship). All of a sudden everything works as expected, it is just that the displayed string in the popup looks ugly (which is normal). Could it be...? Ok, defined public String userPresentableDescription() in Status entity returning the statusText() and no more hair pulling. It works and I know why, but I do not know why it did not work before. Any ideas? Have fun (yes, it was some sort of fun, anyway, as I have both sadistic and masochistic traits in my character [no, not 1000 of them], can someone call the guy with the big syringe, please?) ---markus--- ___ 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
D2W and rule controlled visibleEntityNames
I am trying to control the list of visible entities through a rule file. That works as expected. However the same app is deployed in several regions. Each region has its own requirements for the visibleEntityNames. So I create a key region in the D2WContext and use this in various places throughout the app to show/hide (non-)relevant fields. I inject the region-key into the D2WContext in the pageWrapper awake() (probably overkill) public void awake() { super.awake(); D2WContext ctx = d2wContext(); if (ctx != null) { Application application = (Application)Application.application(); String region = UNKNOWN; if (application.isEurope()) { region = europe; } else if (application.isPefa()) { region = pefa; } else if (application.isNorthAmerica()) { region = na; } ctx.takeValueForKey( region, region ); } } It works everywhere except for visibleEntityNames. Obviously this list is built before the first pageWrapper is instantiated. At that moment region is not yet set. The resulting list of entities is never rebuilt later, so my rule region=europe = visibleEntityNames= never fires. How can I solve this? When is the list of entity names built? Where would I have to inject the region key into the D2WContext for the proper rule to fire? Thanks ---markus--- ___ 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: D2W and rule controlled visibleEntityNames
On 08.11.2011, at 17:33, Ramsey Gurley wrote: If it is a per application setting, then it should be on your application class. You could set this value through your properties file, so you could supply a different value per deployment. You're right, it doesn't belong in the page wrapper. On the app, you could reach it in a rule using session.context.page.application.region. There may be a shorter way to get to that, but I've never needed an application value in my rules before. Ramsey Thanks Ramsey, but I don't understand your suggestion. Please bear with me. I have a property that passes the region code to the app (currently done via a properties file, could be done via command line). The problem is that the rule to find visibleEntityNames fires twice (which I understand). The first time it fires right after clicking login on Main (which is session less). At that moment I have not yet pushed the region code into D2WContext. This rule firing is used to populate the entities popup in MenuHeader. This list is then cached. The second time the rule fires is when the default QueryAllPage is generated. At that moment the region code has been set (as per my code in awake of PageWrapper) and the correct list of visibleEntityNames is retrieved. So my question is: how can I set the region code early enough? What is the first moment I have access to D2WContext so that I can push a value for region into it. An how do I access D2WContext. Thanks ---markus--- On Nov 8, 2011, at 3:22 AM, Markus Ruggiero wrote: I am trying to control the list of visible entities through a rule file. That works as expected. However the same app is deployed in several regions. Each region has its own requirements for the visibleEntityNames. So I create a key region in the D2WContext and use this in various places throughout the app to show/hide (non-)relevant fields. I inject the region-key into the D2WContext in the pageWrapper awake() (probably overkill) public void awake() { super.awake(); D2WContext ctx = d2wContext(); if (ctx != null) { Application application = (Application)Application.application(); String region = UNKNOWN; if (application.isEurope()) { region = europe; } else if (application.isPefa()) { region = pefa; } else if (application.isNorthAmerica()) { region = na; } ctx.takeValueForKey( region, region ); } } It works everywhere except for visibleEntityNames. Obviously this list is built before the first pageWrapper is instantiated. At that moment region is not yet set. The resulting list of entities is never rebuilt later, so my rule region=europe = visibleEntityNames= never fires. How can I solve this? When is the list of entity names built? Where would I have to inject the region key into the D2WContext for the proper rule to fire? Thanks ---markus--- ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
D2W Finding duplicate rules
Hi all, after a long (weeks!) on and off debugging session between my development environment and the customer's deployment I finally found the issue. This might interest others here and then I have a related question. D2W application with one rule file with some 600+ rules, development on Lion with Eclipse/WOlips 3.4, deployment on Solaris Problem: Customer complained that some things did not work correctly that are supposed to be set from the rules. It worked in my environment but not at the customer's. Cross checked all rules, compared rule file, cleaned and regenerated app - it worked. Great, must have been some stuff hanging around that got cleaned. Continued working, giving next revision to customer - sometimes similar problems. Some rules obviously just not firing. Solution: --- Eventually I found one or two rules that were identical on the LHS (including priority) but RHS was different. Thus it was clear that depending on outside temperature and constellation of the stars sometime one or the other rule fired. As the rule file was constantly updated and rewritten the situation changed every time. After finding the duplicate and removing it everything was stable. QUESTION: --- Is there a tool that helps finding such duplicate contradicting rules? There might be more lurking in the rule file and eventually causing headache. How are you dealing with such a case? Duplicate rules can probably not really be avoided as one is trying things out during development. Displaying the rules in RuleModeler sorted LHS and checking visually for duplicates is not feasible because some rules are very long and a 50 screen would be needed (sorry, haven't one) Thanks for help/ideas ---markus--- ___ 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
D2W Can I access Object property values from the rule system?
I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---markus--- ___ 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: D2W Can I access Object property values from the rule system?
On 28.11.2011, at 18:05, David Holt wrote: You should be able to put it in your session (ERXThreadStorage for example) and access it from there: pageConfiguration='EditMyEntity' and session.selectedEntity.kind = 'blah' = displayPropertyKeys = Great - and then the silly question: How do I put it there? Please some hand holding :-( ---markus--- On 2011-11-28, at 8:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---markus--- ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Can I access Object property values from the rule system?
On 28.11.2011, at 19:52, David Holt wrote: Then when you want to select the Entity you would do something like this (here I have a custom select component in a ListProject configuration) and I return a page with the list of activities that are associated with the selected project. You'll have to figure out where it makes sense for your entity to be selected in your app. public WOComponent view() { Project selectedProject = (Project) object(); ((Session)session()).setSelectedProject(selectedProject); return (WOComponent) ((Session)session()).navController().listActivities(); } David, Thanks a lot for your input. However my problem lies exactly here (your view() action). I have a plain auto generated ListPage and the user clicks on the edit-icon on one of the rows. Would I need a custom property level component for the edit icon so that I could put some code like yours into or is there an other (plain D2W) way to accomplish this? How do I intercept the action before the EditPage is created but after the user has clicked the selected row? Probably not seeing the forest for the trees anymore. When I am tired I tend to confuse simple things. ---markus--- ___ 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: D2W Can I access Object property values from the rule system?
Ramsey hits again! Thanks a lot. The most obvious is it. Whenever I teach programming (and WO) I tell my students when it starts to get complicated it most probably is wrong. Sometimes I do not follow my own advice. Thanks again ---markus--- On 28.11.2011, at 18:27, Ramsey Gurley wrote: On Nov 28, 2011, at 9:24 AM, Markus Ruggiero wrote: I need a rule like the following (pseudo code): pageConfiguration='EditMyEntity' and {the MyEntityObject has a value of 'SOMETHING' in its KIND-attribute} = displayPropertyKeys = Background: I have dozens of ElectronicDocuments. Each has a to-one reference to a DocumentType (there are many many such types). All documents behave the same, and the user is free to change the document type. However for one type of document I need to have different displayPropertyKeys. Thanks a lot ---markus--- You should be able to do something like object.documentType.typeString == 'SOMETHING' Just make sure to terminate your object and session keypaths on an attribute and not an eo. I'm not aware of any special caching done for EOs in the rule system, so that would likely result in a big pile of wasted memory. 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOLips on Windows
Folks, I am trying to install WO/WOLips on an Win7 system. WOInstaller.jar worked fine and created the C:\Apple directory structure. But as golipse.app is a Mac application, I tried to install WOLips manually. Downloaded Eclipse Indigo (3.7) and copied the update site http://webobject.mdimension.com/wolips/stable URL from Eclipse in my Mac into Eclipse in Win7. However the URL seems to be invalid. Is there a problem with the update site of WOLips? Do I miss something other? Is there a WIndows variant of golipse? The Wiki chapter about installing WO/WOLips in Windows is still referencing Eclipse 3.2! Need this for teaching WO (yeah!). Many folks come with their Macs but not everyone does. Some students have only Win notebooks. So I must be able to have development on Windows as well. Thanks for any help ---markus--- ___ 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: Probably a silly question
On 19.12.2011, at 11:51, Gino Pacitti wrote: Hi... In the Wonder examples there are variables with underscore... public NSData _data; public AjaxUploadProgress _uploadProgress; public AjaxProgress _progress; Any significance??? Hi Gino, as far as I know from the old days of WebObjects/Objective-C variables with _ were meant to be private vars (there was no public/private then). Many folks coming from those days still use this naming convention. It is a visual clue to the human developer and has no technical significance. I haven't looked at those examples but I guess that is it. Weird anyway that the vars are public and visually marked private. ---markus--- ___ 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: WOLips on Windows
Thanks, I found it in the mean time. ---markus--- On 19.12.2011, at 12:10, Pascal Robert wrote: Hi Markus, Try this instead for the update site: http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/ Folks, I am trying to install WO/WOLips on an Win7 system. WOInstaller.jar worked fine and created the C:\Apple directory structure. But as golipse.app is a Mac application, I tried to install WOLips manually. Downloaded Eclipse Indigo (3.7) and copied the update site http://webobject.mdimension.com/wolips/stable URL from Eclipse in my Mac into Eclipse in Win7. However the URL seems to be invalid. Is there a problem with the update site of WOLips? Do I miss something other? Is there a WIndows variant of golipse? The Wiki chapter about installing WO/WOLips in Windows is still referencing Eclipse 3.2! Need this for teaching WO (yeah!). Many folks come with their Macs but not everyone does. Some students have only Win notebooks. So I must be able to have development on Windows as well. ___ 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
Move of Wiki and state of documentation
Pascal Roberts just sent the following message to the list: Good morning everyone, We are moving the wiki to the wocommunity.org server very soon (this Friday morning!) and we will close Jira at the same time. If you still have non-resolved issues on Jira, please recreate them on GitHub. If the issue can be closed, send me an email to say which issues can be closed. Thanks for your help. and I had a problem installing WO/WOlips on Windows. The issue was that I found installation instructions that were outdated and simply wrong. However in the mean time I also found instructions that were correct. Proposal: When moving the Wiki to wocommunity.org would it make sense to at fist put everything under the heading needs review. Then recreate the Wiki structure and only then review and move each and every article to its place. I am perfectly aware that this is quite some work and I am willing to help. This would allow anyone to still find everything but a beginner will be able to find his way around. He/she will also clearly know what is up to date and what might be valuable info however may not be accurate. It's just an idea. ---markus--- PS I am now installing WO/WOLips on Win7. From a newly set up system to the first really built and running WOApplication, everything is going to be documented with screenshots. I'll put this in the Wiki during the holidays. ___ 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
Why I teach WebObjects
This is in response to an other thread (WOLips on Windows). I think it deserves its own one. List mom, please let me know if this is inappropriate. On 19.12.2011, at 17:27, Kevin Spake wrote: If I may ask, what sort of WO training do you provide? You can contact me off list if you prefer. Thanks. Hi Kevin, On list is ok for me (hope the listers do not mind) I work as part time teacher at a private school here in Switzerland. We provide formal education as Application Developer for folks that have already had formal training for a profession but due to various reasons (often medical) must be re-trained to a new profession. The whole thing is 1 year full time school then 1 year full time work. They finish with an official Swiss Federal Diploma. During the first year the students have to take ~33 modules, most of them 40 lessons, some 80 lessons. Each such module covers one topic (DB design, structured programming, OO programming, HTML/CSS, and many many others) and each ends with an exam. I have been doing this for the last 10 years on and off and I also have written several course books. These have been officially published and are available in book stores. Recently I have co-authored a book about OO Development covering the whole lifecycle from Analysis to Deployment. In there I have covered the development part with WebObjects. One of the modules im currently teaching is Implementing an OO multi-user DB app. The general topics of each such module is given by federal regulations but it is up to the school/teacher how these are presented. I am teaching this module using WebObjects. The first part (40 lessons) will follow loosely the old Programming WebObjects 1 (Apple Stuff from 2001, adapted to the new tools etc), whereas the second part (again 40 lessons) will then focus on individual small projects and the methodology and concepts of OOA/OOD. Why do I do this (using that dead thing called WebObjects) in teaching? Pretty simple: it is there, it works perfectly, it is a great thing to work with, it is also a counter weight to J2EE, and I want to promote WO. Bring WO to schools and when the students later on get their jobs they might eventually mention what they have learned - spread the word! Many many moons ago (December 2001) I attended an official Apple Train the Trainer for PWO1 and have been teaching that course several times in the past. Long since no WO teaching but have been working with WO on many projects during the last 10 years. I am currently quite involved with a large customer where I maintain several (rather old) WO-Apps and am currently massively extending an existing D2W app. Big fun and a lot to discover every day. ---markus--- On Dec 19, 2011, at 3:02 AM, Markus Ruggiero wrote: Need this for teaching WO (yeah!). Many folks come with their Macs but not everyone does. Some students have only Win notebooks. So I must be able to have development on Windows as well. Thanks for any help ---markus--- ___ 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/sparky005s%40yahoo.com This email sent to sparky0...@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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERD2W qualifying restrictingFetchSpecification
Can I qualify dynamically a restrictingFetchSpecification? I have the following model: Category one-2-many Group one-2-many Statement For pageConfiguration EditStatement I have displayPropertyKeys = (group.category.name, group.name, and others) group.category.name is displayString, group.name is ERD2WEditToOneRelationship popup I need the subset of all possible Groups within the Category for the popup. So I thought I could use a restrictingFetchSpecification but this thing needs to be qualified by the Category. Can this be done, and what would I write for the fetch spec in my EOModel? Thanks a lot ---markus--- ___ 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
ERD2W ListExcel* with child records question
Question about Excel Listings and how to get the data into them Model: StatementGroup -one-2-many- Statements Customer wants on pageConfiguration = ListStatementGroup an Excel link to download a group listing. That is easy, I have this kind of thing working all over my app. But now the customer wants the Statements listed under the StatementGroup. So what the customer actually wants is not ListExcelStatementGroup but ListExcelStatement for all the selected groups. Any good ideas? I currently use the following code for all my Excel download links (bound to a belowDisplayPropertyKey on several of the List* pageConfigurations) public WOActionResults downloadExcel() { ERD2WListPage parentListPage = parentListPage(); if (parentListPage != null) { EODataSource dataSource = parentListPage.displayGroup().dataSource(); D2WContext d2wContext = parentListPage.d2wContext(); String entityName = (String)d2wContext.valueForKeyPath( entity.name ); d2wContext.takeValueForKey(d2wContext.valueForKey(entity.name) + .xls, excelFileName); ListPageInterface lpi = (ListPageInterface)D2W.factory().pageForConfigurationNamed( ListExcel + entityName, session() ); lpi.setDataSource( dataSource ); lpi.setNextPage( this.context().page() ); return (WOActionResults)lpi; } return null; } I think I need to create a new dataSource for the Statements and qualify it with the dataSource from the parentListPage. How would I do this? Do I have to do this manually or is there some simple way calling the right methods? Or is there an altogether different and better way? Thanks for any help ---markus--- ___ 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, EditingContext, WORequest
Help, this is urgent, please could someone have a look. I am at a loss here. Probably my concept is wrong but I do not see how to fix it. A nudge into the right direction (or a kick into the bu**) might be all I need. Thank you very much ---markus--- On 27.01.2012, at 15:35, mailinglists wrote: Help! My ERD2W application needs to generate PDF-files for EOs. The EO has a method that calls a XML-Generator that generates the XML-input for Apache-FOP. For this I use the following code in the Document-EO (just a fragment) I_XMLGeneratorInterface xmlGenerator = (I_XMLGeneratorInterface)WOApplication.application().pageWithName(generatorName, new WOContext(session.context().request())); The problem is that pageWithName needs a WOContext and this needs a WORequest. The WORequest comes from the session. BUT EOs are not supposed to know about sessions. So I pass the session into that method when I call the document to generate the PDF data. Fine, works. But now I want to automate the generation of PDFs when any relevant object is saved. I have thus created my own EOEditingContext descendant where I override saveChanges(). Whenever I save a relevant object I check after success if that object has related documents and then call those to generate the PDF, passing in the session. My EditingContext has a session variable and in the session-constructor I manually create my editing context, stuff the session into it and install it as defaultEditingContext. But D2W creates editingContexts and knows nothing about feeding with session information. When my code runs session variable is null and no PDFs are created. Any idea how to tackle this problem? HELP! Is my strategy ok? Can I fix the missing session somehow? Or would you recommend a different way to go? Thanks a lot, this is an urgent one ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: D2W, EditingContext, WORequest
Yes, Paul, I know this - and I do not want to mix. BUT: the required functionality is so, that when a textblock is edited and then stored to the database, all electronic documents that include this particular textblock must be recreated automatically. To be able to do this I must be able to find the updated textblock. This is something that the editing context can tell me. To generate the electronic document (resulting PDF) I use a standard WOComponent to generate the XML as input to Apache FOP. And here is my problem: When the user presses Save in the D2W page this can result in some modifications to textblocks. Textblock is not necessarily the top entity in the D2W edit page. First I had my code in the nextPageDelegate for the editing page. But this is only called after the save has taken place and I the editing context cannot tell me what has been saved and needs regeneration of the relevant PDF. Can I trap saveChanges() in a D2WEditPage without having to freeze the component? Or is there a way for the editing context to access the request/context (which should probably not be)? Or am I completely off track? I hope I could make clear where my problem is. Thanks for input/help/whatever ---markus--- On 30.01.2012, at 14:06, Paul D Yu wrote: Component generation, XML generation are UI view things, they should NOT be down in your EOs!!! Have you looked at the PDF generation example in Wonder? Basically, you should create a component like any other, except the wrapper is what FOP wants. Paul Sent from my iPad On Jan 30, 2012, at 4:58 AM, Markus Ruggiero mailingli...@kataputt.com wrote: Help, this is urgent, please could someone have a look. I am at a loss here. Probably my concept is wrong but I do not see how to fix it. A nudge into the right direction (or a kick into the bu**) might be all I need. Thank you very much ---markus--- On 27.01.2012, at 15:35, mailinglists wrote: Help! My ERD2W application needs to generate PDF-files for EOs. The EO has a method that calls a XML-Generator that generates the XML-input for Apache-FOP. For this I use the following code in the Document-EO (just a fragment) I_XMLGeneratorInterface xmlGenerator = (I_XMLGeneratorInterface)WOApplication.application().pageWithName(generatorName, new WOContext(session.context().request())); The problem is that pageWithName needs a WOContext and this needs a WORequest. The WORequest comes from the session. BUT EOs are not supposed to know about sessions. So I pass the session into that method when I call the document to generate the PDF data. Fine, works. But now I want to automate the generation of PDFs when any relevant object is saved. I have thus created my own EOEditingContext descendant where I override saveChanges(). Whenever I save a relevant object I check after success if that object has related documents and then call those to generate the PDF, passing in the session. My EditingContext has a session variable and in the session-constructor I manually create my editing context, stuff the session into it and install it as defaultEditingContext. But D2W creates editingContexts and knows nothing about feeding with session information. When my code runs session variable is null and no PDFs are created. Any idea how to tackle this problem? HELP! Is my strategy ok? Can I fix the missing session somehow? Or would you recommend a different way to go? Thanks a lot, this is an urgent one ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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/pyu%40mac.com This email sent to p...@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
Re: D2W, EditingContext, WORequest
Thanks Mark for your example. It is (almost) exactly what I have done. However now there is a twist - and that is the actual problem. Maybe I was not really clear in what I need to do. This is a simplified model: TextblockGroup -one2many- Textblock -one2many- TextblockParam. Suppose it makes no sense for the user to work in a pageConfiguration EditTextblockParam because a textblock param only makes sense in the context of a textblock. Likewise editing a textblock only makes sense in the context of a textblock group. The only thing the user ever sees is EditTextblockGroup-pageConfiguration. The list of textblocks and their parameters is handled with a custom property level component. Now when the user edits a textblock param only that textblock param will be changed and stored to the database. Your (and mine) nextPageDelegate cannot figure this out because the top level object TextblockGroup has not been changed and thus not been saved. However the textblock param might have been referenced in some PDFs thus this/these particular PDFs have to be recreated. If I recreate all the PDF that *might* hang off the top level object I may as well recreate thousands of PDFs. And this is certainly not what I want. And all the PDFs are tracked with a revision which would create a new revision of all the unchanged PDFs. So while your idea is great unless I miss something I think it does not help in this particular case. What else can I do? ---markus--- On 30.01.2012, at 17:13, Mark Wardle wrote: You can set-up workflow using D2W. For instance, this is a sample D2W workflow that takes an appointment (one of my EOs), sends the user to an edit page. When that is saved, it runs the delegate below. /** * Edits (usually a newly created) encounter showing a D2W edit page to complete the core details * and then a more complex custom edit page allowing full editing. * * @param e * @param returnPage * @return */ public static WOActionResults editEncounterInTwoSteps(Appointment a, WOComponent returnPage) { EditPageInterface nextPage = (EditPageInterface) D2W.factory().pageForConfigurationNamed(EditAppointment, returnPage.session()); nextPage.setObject(a); nextPage.setNextPageDelegate(new SaveOrCancelDelegate(returnPage)); return (WOActionResults) nextPage; } /** * A simple NextPageDelegate that understands whether an object was saved or not and * chooses the appropriate next page (ie to a next page or to a cancel page) * @author mark * */ public static class SaveOrCancelDelegate implements NextPageDelegate { private WOComponent _cancelPage; public SaveOrCancelDelegate(WOComponent cancelPage) { _cancelPage = cancelPage; } public WOComponent nextPage(WOComponent sender) { ERDObjectSaverInterface epi = (ERDObjectSaverInterface) sender; if (epi.objectWasSaved() == true) { Appointment a = (Appointment) ((ERDEditPageInterface) sender).object(); if (a.isInFuture() == false) { EditEncounter editPage = ERXApplication.erxApplication().pageWithName(EditEncounter.class); Encounter e = a.createEncounterForAppointment(((User)ERCoreBusinessLogic.actor()).localInstanceIn(a.editingContext())); a.setOutcome(Appointment.Outcome.COMPLETED); e.editingContext().saveChanges(); editPage.setEncounter(e); editPage.setNextPage(_cancelPage); return editPage; } } return _cancelPage; } } You can see that, if the appointment is not in the future, then an encounter EO is also created and then the editing context saved again. Good luck, Best wishes, Mark On 30 January 2012 14:59, Markus Ruggiero mailingli...@kataputt.com wrote: Yes, Paul, I know this - and I do not want to mix. BUT: the required functionality is so, that when a textblock is edited and then stored to the database, all electronic documents that include this particular textblock must be recreated automatically. To be able to do this I must be able to find the updated textblock. This is something that the editing context can tell me. To generate the electronic document (resulting PDF) I use a standard WOComponent to generate the XML as input to Apache FOP. And here is my problem: When the user presses Save in the D2W page this can result in some modifications
Re: D2W, EditingContext, WORequest
Thanks, that was it, works perfectly. Never had to use notifications so far and so they were just not present on my horizon. I knew I needed just the right nudge ---markus--- On 30.01.2012, at 17:13, David LeBer wrote: Just thinking off the top of my head: Maybe post an NSNotification in the EO's willUpdate (assuming you are using subclasses of ERXGenericRecord) method if the textblock is changing. The notification should contain the EOGlobalID of the changed object. Register to receive that kind of notification in your Session object, or somewhere else that it is appropriate to handle it. If the pdf generation takes time, consider trying something like ERXAsyncQueue to handle in the background. D -- David LeBer Codeferous Software On 2012-01-30, at 9:59 AM, Markus Ruggiero wrote: Yes, Paul, I know this - and I do not want to mix. BUT: the required functionality is so, that when a textblock is edited and then stored to the database, all electronic documents that include this particular textblock must be recreated automatically. To be able to do this I must be able to find the updated textblock. This is something that the editing context can tell me. To generate the electronic document (resulting PDF) I use a standard WOComponent to generate the XML as input to Apache FOP. And here is my problem: When the user presses Save in the D2W page this can result in some modifications to textblocks. Textblock is not necessarily the top entity in the D2W edit page. First I had my code in the nextPageDelegate for the editing page. But this is only called after the save has taken place and I the editing context cannot tell me what has been saved and needs regeneration of the relevant PDF. Can I trap saveChanges() in a D2WEditPage without having to freeze the component? Or is there a way for the editing context to access the request/context (which should probably not be)? Or am I completely off track? I hope I could make clear where my problem is. Thanks for input/help/whatever ---markus--- On 30.01.2012, at 14:06, Paul D Yu wrote: Component generation, XML generation are UI view things, they should NOT be down in your EOs!!! Have you looked at the PDF generation example in Wonder? Basically, you should create a component like any other, except the wrapper is what FOP wants. Paul Sent from my iPad On Jan 30, 2012, at 4:58 AM, Markus Ruggiero mailingli...@kataputt.com wrote: Help, this is urgent, please could someone have a look. I am at a loss here. Probably my concept is wrong but I do not see how to fix it. A nudge into the right direction (or a kick into the bu**) might be all I need. Thank you very much ---markus--- On 27.01.2012, at 15:35, mailinglists wrote: Help! My ERD2W application needs to generate PDF-files for EOs. The EO has a method that calls a XML-Generator that generates the XML-input for Apache-FOP. For this I use the following code in the Document-EO (just a fragment) I_XMLGeneratorInterface xmlGenerator = (I_XMLGeneratorInterface)WOApplication.application().pageWithName(generatorName, new WOContext(session.context().request())); The problem is that pageWithName needs a WOContext and this needs a WORequest. The WORequest comes from the session. BUT EOs are not supposed to know about sessions. So I pass the session into that method when I call the document to generate the PDF data. Fine, works. But now I want to automate the generation of PDFs when any relevant object is saved. I have thus created my own EOEditingContext descendant where I override saveChanges(). Whenever I save a relevant object I check after success if that object has related documents and then call those to generate the PDF, passing in the session. My EditingContext has a session variable and in the session-constructor I manually create my editing context, stuff the session into it and install it as defaultEditingContext. But D2W creates editingContexts and knows nothing about feeding with session information. When my code runs session variable is null and no PDFs are created. Any idea how to tackle this problem? HELP! Is my strategy ok? Can I fix the missing session somehow? Or would you recommend a different way to go? Thanks a lot, this is an urgent one ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Need help with complex D2W query
At the moment I probably do not see the forest for the trees anymore. I have the following model: edoc -- ref -- param params is a fixed pool of given objects A, B, C, etc out of which an edoc can reference any number of them. When such a reference is established the user must add some comment text to the ref. My query problem: The user sits on the edoc query page in a D2W app and wants to find all edocs that match some attribute on a ref, possibly in conjunction with other selection criteria based on edoc attributes. The user interface is as such that there is a list of all possible param assignments with a text field each. The user may now want to find all edocs that have a particular assignment to one or more params and the comment field on the ref-object contains xyz. I have to build a query that may look something like select from all edoc where edoc has a ref to a given param and the ref has a comment field that contains xyz. Actually it could be even more complex: the user might specify several comment values resulting a query like where the edoc has a ref to param A with comment value xyz or the edoc has a ref to param B with comment value PQR or the edoc has a ref to param E with comment value STU Oh, and the user might want to specify other qualifying values for the edocs he/she is looking for. Any idea how to construct a proper query to qualify the display group for such a QueryEDoc pageConfiguration? I guess I would need to have a custom property level query component with key and displayGroup bindings. But then...? Thanks a lot ---markus--- ___ 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
Need help with ERD2WWizardCreationPage
This is my first try with ERD2WWizardCreationPage. I can show a wizard with 3 tabs and the correct propertyKeys. However I have the requirement that the value of a field from step 1 is a limiting qualifier for a ERD2WEditToOneRelationship (shown as a popup) in a later step. How can I achieve this? I know about the restrictingFetchSpecification key but I do not see how to qualify this FS dynamically with a value the user entered in a previous step of the wizard. Thanks for any help ---markus--- ___ 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: Need help with ERD2WWizardCreationPage
Thanks Ramsey (again!), Works now as expected. ---markus--- On 02.04.2012, at 21:09, Ramsey Gurley wrote: I believe the restricting fetch spec just uses a named fetch spec in your model. You can use the restrictedChoiceKey instead and resolve the array in a method on your object if the restrictingFetchSpecification key is to ... restricting :-) Ramsey On Apr 2, 2012, at 11:52 AM, Markus Ruggiero wrote: This is my first try with ERD2WWizardCreationPage. I can show a wizard with 3 tabs and the correct propertyKeys. However I have the requirement that the value of a field from step 1 is a limiting qualifier for a ERD2WEditToOneRelationship (shown as a popup) in a later step. How can I achieve this? I know about the restrictingFetchSpecification key but I do not see how to qualify this FS dynamically with a value the user entered in a previous step of the wizard. Thanks for any help ---markus--- ___ 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
Quick Question about ListExcel*
Hi, I have Excel listings working in my D2W app. How can I specify the default column width? I have not found anything helpful yet. Could this be done in ExcelStyles.plist? How? Thanks for your help ---markus--- ___ 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
I am going to write a WO book
Folks, after a lot of thinking back and forth I finally decided that the world needs another book about WebObjects. And for this I need your input/feedback. But first let me give some background on why I would do this I am a part time teacher and author of course books besides doing project work for customers. Just recently I have finished a course book about SSAD (yes, that old stuff that still has some importance) and am currently redoing a course book Intro to OO Programming with Java. The courses I teach are part of the formal training to become an application developer with an official diploma. This apprenticeship lasts two resp. four years and consists of 30+ modules plus an internship. I teach many of those modules and I can offer sometimes (as time permits) one of my student in internship in my company. Last year I had the opportunity to do a module OO-Multiuser Application with Relational Database. The topics are given by Swiss Federal regulations but the teacher/school is free to use whatever tools and environments they want. I decided to use WebObjects and particularly EOF (object relational mapping is a big part of this module). Somewhere in the basement I found a set of the old Programming WebObjects 1 course book by Apple from around 2001. The students liked what they learned (albeit some had problems with course material in English) and I started to think that we ought to have something like that old PWO stuff but based on the modern tools. That same course will be run again beginning of next year and I hope I will be assigned that course again (there is quite a chance to that). But we would have to have a proper course book in German. I intend to formalise this course and write the course book introducing WO. The book will be in a style that encourages reading (readable almost like a novel). It can be used as a course book in formal training but it will be written in such a way that it is suitable (and preferable) for self-teaching. Of course the book has to be done in German but I think I can do an English version in parallel. There are some specific requirements for the topics covered in that particular module. These could be left out in the English version but I think the two versions will share more than 80 percent of the content. Planned time frame is Q4/2012. The book will probably be available as an e-book. Maybe a print version is doable. The German version will be in print (but that will be the school's thing do do). I intend to follow loosely along the lines of the original Apple PWO 1 course. Here I have some requests to you folks out there: It is clear that all the tool specific things must be redone. What else would you consider to be important? WOnder? Probably, but how far should I go there? The book is clearly for the beginner, so I do not want to go into too much detail (hey there was a PWO 2 course once, there could be a followup book eventually...). E.g. as great as (ER)D2W is this should not be part of that book, neither should be REST, Ajax etc. I really want to stick to the original topics and adapt those to the modern world. I will include a chapter about setting up the development environment for both Mac OS X and Windows (I know the license states that one must not develop on non-Apple HW but the license does not state that one must learn on Apple HW only!) and a bit about deployment. Please let your suggestions and ideas come up. Either post here as replies or mail them directly to me. Thanks for your help, see you (at least some of you) in Montréal ---markus--- ___ 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 am going to write a WO book
Thanks to all who responded here and by private mail. You all have provided interesting input on all aspects of such a task. Please forgive me that I have not yet responded to each of you personally. I am sure there will be interesting discussions @WOWDC about the future of WO and how we can promote WO. I am looking forward do meeting you in person and talk things through. See you there, in the meantime have fun ---markus--- On 08.06.2012, at 14:48, Markus Ruggiero wrote: Folks, after a lot of thinking back and forth I finally decided that the world needs another book about WebObjects. And for this I need your input/feedback. But first let me give some background on why I would do this I am a part time teacher and author of course books besides doing project work for customers. Just recently I have finished a course book about SSAD (yes, that old stuff that still has some importance) and am currently redoing a course book Intro to OO Programming with Java. The courses I teach are part of the formal training to become an application developer with an official diploma. This apprenticeship lasts two resp. four years and consists of 30+ modules plus an internship. I teach many of those modules and I can offer sometimes (as time permits) one of my student in internship in my company. Last year I had the opportunity to do a module OO-Multiuser Application with Relational Database. The topics are given by Swiss Federal regulations but the teacher/school is free to use whatever tools and environments they want. I decided to use WebObjects and particularly EOF (object relational mapping is a big part of this module). Somewhere in the basement I found a set of the old Programming WebObjects 1 course book by Apple from around 2001. The students liked what they learned (albeit some had problems with course material in English) and I started to think that we ought to have something like that old PWO stuff but based on the modern tools. That same course will be run again beginning of next year and I hope I will be assigned that course again (there is quite a chance to that). But we would have to have a proper course book in German. I intend to formalise this course and write the course book introducing WO. The book will be in a style that encourages reading (readable almost like a novel). It can be used as a course book in formal training but it will be written in such a way that it is suitable (and preferable) for self-teaching. Of course the book has to be done in German but I think I can do an English version in parallel. There are some specific requirements for the topics covered in that particular module. These could be left out in the English version but I think the two versions will share more than 80 percent of the content. Planned time frame is Q4/2012. The book will probably be available as an e-book. Maybe a print version is doable. The German version will be in print (but that will be the school's thing do do). I intend to follow loosely along the lines of the original Apple PWO 1 course. Here I have some requests to you folks out there: It is clear that all the tool specific things must be redone. What else would you consider to be important? WOnder? Probably, but how far should I go there? The book is clearly for the beginner, so I do not want to go into too much detail (hey there was a PWO 2 course once, there could be a followup book eventually...). E.g. as great as (ER)D2W is this should not be part of that book, neither should be REST, Ajax etc. I really want to stick to the original topics and adapt those to the modern world. I will include a chapter about setting up the development environment for both Mac OS X and Windows (I know the license states that one must not develop on non-Apple HW but the license does not state that one must learn on Apple HW only!) and a bit about deployment. Please let your suggestions and ideas come up. Either post here as replies or mail them directly to me. Thanks for your help, see you (at least some of you) in Montréal ---markus--- ___ 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
Installing Tools and Framework is a mess
Contents: - Hot tip - Rant - Suggestions for a Solution Yesterday a new intern started and we set out to set up a WO development system. This was a virgin Lion 10.7.3. Fortunately I know what to do but my intern would have given up half way through, even with the latest docs from the wiki. Oh, and this morning we are still not really up to speed. I wouldn't dare to think what a newbie experiences trying to get started. I am really angry and couldn't sleep tonight. Lots of thoughts were spiraling through my dreams. I will try to note those here but first a HOT TIP: * A virgin Lion system does not have the git command line command. Probably nobody really realised this because most of you (certainly I) had installed the Apple Developer Tools before Xcode-as-a-selfcontained-app. Such an installation would have put all the command line tools like git into some unix paths. Now with Xcode as a self-contained app the command line tools are still there - inside the app bundle Xcode.app/Contents/Developer/Tools... and .../usr subdirs. Just add that to your $PATH. What newbie would have guessed while following the instructions to install WonderSource?? MADNESS REIGNS ** Now here is what makes me really mad (and drives any newbie as fast and far away from WOnder as imaginable): - Installation instructions are scattered around in various places in the wiki - nowhere are instruction in what order the installation has to be done - git? What git? My system responds with unknown command - golipse is an app - oh, and why do I know that I should look for something called golipse? - woinstaller.jar is a command line program, why not an app too? - there are lots of references to places in the file system that are not transparent to many users - instructions to build the WOnder frameworks are confusing, referencing a file called build.properties and something called wolips.properties and building with eclipse and building with ant and what is relevant in which case? And there are at least 3 different pages in the wiki about installing the frameworks that contradict each other... - and a virgin Lion does not have Java installed and makes golipse having hickup: running golipse starts to download Eclipse and it then tries to do something with Java. Lion prompts the user to download Java, works ok, but in the meantime golipse is finished with whatever it was doing. At the end we have a working Eclipse without WOLips plugins (newbies do not realise this). Next instruction says start eclipse, switch to WOlips perspective (what? where do I find that? there is nothing like WOlips) and create a (dummy) project just to generate the default wolips.properties. And at this point we have probably lost everyone trying to follow the instructions. Good Night folks! Anyway this morning we tried further and installed WOlips manually via Eclipse update manager. We were even able to download WonderSource after having put Xcode.app onto the machine. I told my intern to follow the wiki about working with WonderSource inside Eclipse and eventually he gets the following when trying to WOlips-AntTools-Install Buildfile: /Users/gabor/Desktop/Development/WonderSource/Frameworks/Ajax/Ajax/build.xml install: Ajax.all: global.environment: global.properties: global.framework.install: BUILD FAILED /Users/gabor/Desktop/Development/WonderSource/Frameworks/Ajax/Ajax/build.xml:17: The following error occurred while executing this line: /Users/gabor/Desktop/Development/WonderSource/Build/build/build.xml:778: The following error occurred while executing this line: /Users/gabor/Desktop/Development/WonderSource/Build/build/generic.xml:526: /Users/gabor/Roots/Ajax.framework does not exist. This is after about 8 hours work in front of the screen. WE NEED A WORKING TURNKEY SOLUTION - ASAP! And I need a new intern as the other one just jumped out the window :-((( POSSIBLE SOLUTION * Here are my ideas from a sleepless night. I see a fully self-contained downloadable package similar to what Apple does with Xcode that contains a fully loaded and configured Eclipse with all the WOlips plugins installed. Create a directory inside Eclipse (maybe packaged as a plugin?) that encapsulates the WonderSource and precompiled binaries (the WOnder Frameworks). Let WOlips's default wolips.properties point to these framework directories. Create a mechanism that upon each start of this Eclipse executable it checks if the WebObjects frameworks are installed (I know we cannot deliver those directly inside the Eclipse package but must load them from an Apple server). The startup task could download WebObjects mimicking the woinstaller.jar functionality. This functionality could also be made available in the WOlips project properties and/or in the WOlips context menu for a manual download (might not be needed). The download URL must point to a fixed location on wocommunity or
Startup in deployment hangs
Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.directtoweb.ERDirectToWeb Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.ajax.Ajax Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - WebObjects version = 5.4.3 Aug 03 12:40:20 ImmoData[N/A] DEBUG NSLog - Created adaptor of class WODefaultAdaptor on port 2001 and address public2.local/192.168.56.110 with WOWorkerThread minimum of 16 and maximum of 256 Aug 03 12:40:21 ImmoData[2001] DEBUG NSLog - Creating LifebeatThread now with: ImmoData 2001 public2.local/192.168.56.110 1085 3 here it just sits and waits, nothing happens anymore. Any idea why? Any tips how to find out what it is waiting for and how to fix things? Thanks a lot ---markus--- ___ 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: Startup in deployment hangs
More weirdness: Problem is clearly related to specifying WOHost: Adding string-WOHost/string stringlocalhost/string to WOTaskd and WOMonitor startup plist makes them hang, no matter what hostname I use (localhost, 127.0.0.1, FQDN. Bonjour Name). They do not respond to any connect request. They startup without a hick when I remove those params. Ok, I run without them. Next: The following is the command line WOMonitor uses to start the app (no WOHost now! that was a problem in my first posting): -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ImmoData-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName ImmoData -WOMonitorEnabled YES -WONoPause YES -Xmx256M -Duser.name=production Monitor is not able to bring up the app, starts reporting deaths. Using the very same command line from a terminal session starts the app and it works. And Monitor suddenly reports that the app is running (big power switch turns green). So monitor is not controlling the app but clearly sees it. For now (testing purposes) I can run the app manually from terminal. But need more ideas from the deployment gurus out there (and what's wrong with -WOHost) ? Thanks for any tips ---markus--- On 03.08.2012, at 12:55, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.directtoweb.ERDirectToWeb Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.ajax.Ajax Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - WebObjects version = 5.4.3 Aug 03 12:40:20 ImmoData[N/A] DEBUG NSLog - Created adaptor of class WODefaultAdaptor on port 2001 and address public2.local/192.168.56.110 with WOWorkerThread minimum of 16 and maximum of 256 Aug 03 12:40:21 ImmoData[2001] DEBUG NSLog - Creating LifebeatThread now with: ImmoData 2001 public2.local/192.168.56.110 1085 3 here it just sits and waits, nothing happens anymore. Any idea why? Any tips how to find out what it is waiting for and how to fix things? Thanks a lot ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects
Re: Startup in deployment hangs
At the end it was trivial and easy to fix chown -R _appserver /Library/WebObjects/Applications/ImmoData.woa Thanks for all your help ---markus--- On 07.08.2012, at 00:21, Chuck Hill ch...@global-village.net wrote: I would not use localhost for deployment. I agree with Pascal, something is wrong with your DNS setup. The name use MUST reverse resolve into the canonical IP of the machine. Chuck On 2012-08-06, at 11:17 AM, Pascal Robert wrote: Does the box have a real DNS name? In my experience, OS X Server is doing nasty things when DNS is not setup (OS X client is more tolerant). If the box is standalone, you could start the DNS service on OS X server, make a DNS zone for a dummy domain (my.dom or something) and use that DNS service as the DNS server for the box (e.g., in the network configuration of the box, specify that the DNS server is 127.0.0.1). More weirdness: Problem is clearly related to specifying WOHost: Adding string-WOHost/string stringlocalhost/string to WOTaskd and WOMonitor startup plist makes them hang, no matter what hostname I use (localhost, 127.0.0.1, FQDN. Bonjour Name). They do not respond to any connect request. They startup without a hick when I remove those params. Ok, I run without them. Next: The following is the command line WOMonitor uses to start the app (no WOHost now! that was a problem in my first posting): -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ImmoData-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName ImmoData -WOMonitorEnabled YES -WONoPause YES -Xmx256M -Duser.name=production Monitor is not able to bring up the app, starts reporting deaths. Using the very same command line from a terminal session starts the app and it works. And Monitor suddenly reports that the app is running (big power switch turns green). So monitor is not controlling the app but clearly sees it. For now (testing purposes) I can run the app manually from terminal. But need more ideas from the deployment gurus out there (and what's wrong with -WOHost) ? Thanks for any tips ---markus--- On 03.08.2012, at 12:55, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle
Re: Problem getting D2W rule firing log
Thanks Ramsey. In the meantime I went into search mode and hunted through some old projects and what did I find? -D2WTraceRuleFiringEnabled true This works and gives me what I was looking for. I updated the Wiki-Page accordingly. ---markus--- On 09.08.2012, at 19:05, Ramsey Gurley rgur...@smarthealth.com wrote: Watch the updated walkthrough I posted here. http://wiki.wocommunity.org/display/documentation/How+to+debug+a+D2W+application Ramsey On Aug 9, 2012, at 6:26 AM, Markus Ruggiero wrote: I have created a new ERModel D2W app and no matter what I do I cannot get rule firing logs in Eclipse console (Eclipse 3.7.2 WOLips 3.7.20120526.24, WO latest official 5.4.x) In my properties file there is ... er.directtoweb.rules.D2WTraceRuleFiringEnabled=true er.extensions.ERXApplication.developmentMode=true ... log4j has all settings enabled for debug PastedGraphic-1.png What do I miss? Thanks a lot ---markus--- ___ 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
test
TEST please ignore (have not received anything from the apple list server for two days) ___ 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: WOComponent
On 17.08.2012, at 11:26, Ron X ron.x.by...@gmail.com wrote: hi everybody! i want to see in plain text (like curl utility) what is in the wocomponent (wopage) how can i do this? then why not just use curl? Copy/paste the URL from the browser into a terminal session and hit return Or do I misunderstand what you want? ---markus--- thanx ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: WOComponent
On 18.08.2012, at 17:55, Ron X ron.x.by...@gmail.com wrote: hi, i described the behaviour, but i want to see what is in the component (page) in debug-mode, before the page-component will go to the responce. for example i work with email - Emailer class - and i consumes a component; everything looks good, but after all i have empty email, so i need to debug wocomponent and see what is in it so i need method - how to get plain text of the page from the wocomponent Override appendToResponse()? Put a breakpoint there and see what's in the response? Use simple System.out.println() or any other such thing like NSLog? Or install the WOnder framework source and debug into the calls? Don't use WOnder? Install Jad/Jadclipse and step into decompiled code. Does this help? Maybe you could provide us with some more details of your problems and one or two lines of relevant code? Have fun ---markus--- thanx 2012/8/18 Paul Hoadley pa...@logicsquad.net On 17/08/2012, at 6:56 PM, Ron X wrote: i want to see in plain text (like curl utility) what is in the wocomponent (wopage) how can i do this? Most people would view source using the browser while you're on the page of interest. -- Paul Hoadley http://logicsquad.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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
ERD2WEditToOneRelationship popup issue with umlauts
Hi, I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? Thanks a lot ---markus--- ___ 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 modern problem specifying display width for text fields
Folks,I am struggling to specify display widths for text fields in a modern wonder D2W app. All fields always have the same width in the browser. No matter what keys I try, width, size, length, cols, columnCount, whatever. Here is an example of ERD2WEditLargeString. From the screenshot it is evident that the field should show 3 lines of text which it does not.Can someone share a tip?Thanks---markus--- ___ 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 modern problem specifying display width for text fields
On 23.08.2012, at 16:23, David LeBer dleber_wo...@codeferous.com wrote: Markus, CSS overrides the length/rows value. Edit your css, the modern fields should have enough css class specificity to allow you to style a specific field. Thanks a lot, David regards ---markus--- D -- David LeBer Codeferous Software On 2012-08-23, at 10:06 AM, Markus Ruggiero mailingli...@kataputt.com wrote: Folks, I am struggling to specify display widths for text fields in a modern wonder D2W app. All fields always have the same width in the browser. No matter what keys I try, width, size, length, cols, columnCount, whatever. Here is an example of ERD2WEditLargeString. From the screenshot it is evident that the field should show 3 lines of text which it does not. PastedGraphic-2.png Can someone share a tip? Thanks ---markus--- ___ 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/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com -- 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: ERD2WEditToOneRelationship popup issue with umlauts
On 20.08.2012, at 18:08, Chuck Hill ch...@global-village.net wrote: Hi Markus, On 2012-08-20, at 12:46 AM, Markus Ruggiero wrote: I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? That is a strange problem. Definitely a bug, but I am not sure where. You have set the Wonder encoding properties to use UTF-8? I'd start by logging out the form values from the request to see if it is arriving correctly. Then you can step through WOToOneRelationship (ERD2WEditToOneRelationship subclasses this) and see if you can see why the value is not getting set. Chuck Sorry for taking some time but last night I finally could debug things further eventually found the following: I was using a wizard page and there was the problem. As soon as I disabled the wizard page flow everything was correct. Look at the two examples (WORequest examined in Eclipse debugger). The relevant part is towards the end of the request data. Rule with wizard: 100 : (pageConfiguration = 'CreateVerwaltung' and subTask = 'wizard') = displayPropertyKeys = ([WIZARD_allgemein], code, bezeichnung, [WIZARD_adresse], adresse1, adresse2, ort, [WIZARD_kontakt], kontaktName, kontaktTel, kontaktMail, [WIZARD_notizen], notizen) [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/javascript, text/html, application/xml, text/xml, */*], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[298], content-type=[application/x-www-form-urlencoded; charset=UTF-8], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[4], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/BCyOM30vOhyPtmE72pDfPg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25], x-prototype-version=[1.6.1], x-requested-with=[XMLHttpRequest]} content-length=298 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/ajax/BCyOM30vOhyPtmE72pDfPg/4.0.3.5.1.2.3.0.1.0?_u=MUC_CreateVerwaltung1346226741823 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={AJAX_SUBMIT_BUTTON_NAME = (0.3.5.1.2.3.0.1.0.0.3.3.5.1); _u = (MUC_CreateVerwaltung); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); wosid = (BCyOM30vOhyPtmE72pDfPg); WOIsmapCoords = (1346226741823); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 = (Zürich, 8000); _ = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.0.1.3.1.0 = (asdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.1.1.3.1.0 = (); } Rule without wizard 100 : pageConfiguration = 'CreateVerwaltung' = navigationState = TAB_Administration.TAB_Verwaltung.TAB_CreateVerwaltung.CreateVerwaltung [com.webobjects.directtoweb.Assignment] WORequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[622], content-type=[application/x-www-form-urlencoded], host=[127.0.0.1:13000], origin=[http://127.0.0.1:13000], original_context_id=[3], referer=[http://127.0.0.1:13000/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/2.0.3.3.5.2.3.2.1.1.0.1.1.0.0], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25]} content-length=622 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ImmoData.woa/wo/yHfCZBEE2eUypzVQg04bhg/3.0.3.5.1.2.3.0.1.0 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.0 = (asdfasdf); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.3.1.3.1.0 = (); _0_3_5_1_2_3_0_1_0_0_3_3_1_1_0_0_0_0_1_hf = (); 0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.5.1.3.1.0
Re: ERD2WEditToOneRelationship popup issue with umlauts
Thanks all, setting property er.extensions.ERXApplication.DefaultEncoding=UTF-8 fixed things. have fun ---markus--- PS Why is this not default? Would make a lot of sense. On 20.08.2012, at 09:46, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I seem to have a problem with umlauts and ERD2WEditToOneRelationship with displayStyle = popup. One of the selections has an umlaut in the name (Zürich). The generated code looks like this: select _componentname=er.extensions.components.ERXToOneRelationship name=0.3.5.1.2.3.0.1.0.0.3.1.5.0.1.0.1.3.2.1.3.1.1.0.0.1 option value=- none -- none -/option option value=CH-4000 BaselCH-4000 Basel/option option selected=selected value=CH-8000 ZürichCH-8000 Zürich/option /select The problem is that the value also contains the umlaut. The wizard page then complains that the attribute is mandatory. Selecting an entry without umlaut sets the relationship correctly. Changing Zürich to Zuerich also fixes the problem. However this is not an option for the customer. Is this a bug? Anyone else seen this behaviour? Any work around? Thanks a lot ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Fancy D2WModern display question
Playing with ERD2WModern is fun. As I tried various things with Stylesheets two related questions have come to mind and I wonder wether and how this could be achieved. A customer of mine had the problem that an embedded editor page (e.g. for relationships) has a Save button and when pressed everything is saved. Of course you and I know that this is not true. Data is only pushed from a child EC up to a parent. However this is not something that I think a non-IT person should know. Save is save and that's it! In the current scenario the customer lost all edits because he did not press Save on the outermost editor but instead chose another navigation tab. How can this be prevented? I have two ideas and want to know if this is possible: As long as the outermost EC hasChanges() a key in d2wcontext should be available so that some kind of mark/graphic/text/whatever can be shown conditionally alerting the user that there are unsaved changes. Additionally to optically alert the user that he is (still) inside an editing session it would be great if the surrounding screen area could be dimmed. As long as there are dimmed areas (e.g. the navigation area) the users clearly sees that he is still inside an editing session and going to any navigation tab is (at least optically) discouraged. Any ideas? ---markus--- PS I love D2WModern, the more I play with it the more I love 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: Fancy D2WModern display question
On 01.09.2012, at 01:53, Ramsey Gurley rgur...@smarthealth.com wrote: On Aug 31, 2012, at 3:18 PM, Markus Ruggiero wrote: As long as the outermost EC hasChanges() a key in d2wcontext should be available so that some kind of mark/graphic/text/whatever can be shown conditionally alerting the user that there are unsaved changes. Like ERDHasChangesMarker? :-) Ramsey, Ramsey, what would I do without you! That's a perfect thing to start with but I have one issue: As the embedded edit page is created and removed by Ajax the outer page does not reload and thus the marker is not updated. Do you happen to have an idea here, too? Great weekend to you all ---markus--- ___ 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 Displaying (running) totals underneath lists
Hi listers, In a modern D2W app I want to display a row of totals underneath a list. How could I do this? The list might be batched. What if I wanted to have batch totals and total totals? Thanks ---markus--- ___ 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 Displaying (running) totals underneath lists
On 05.09.2012, at 09:20, Markus Ruggiero mailingli...@kataputt.com wrote: Hi listers, In a modern D2W app I want to display a row of totals underneath a list. How could I do this? The list might be batched. What if I wanted to have batch totals and total totals? Nobody ever had such a requirement? No ideas? ---markus--- ___ 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: Trouble Shooting Mountain Lion
On 11.09.2012, at 06:09, Jeffrey Schmitz j...@netbrackets.com wrote: Am having this same problem myself after upgrading to mountain lion server: The requested URL /cgi-bin/WebObjects/netBrackets.woa was not found on this server. but I do have the ScriptAlias in my /etc/apache2/httpd.conf: ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) /Library/WebServer/CGI-Executables/$1 Also have included the apache.conf: Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf Which itself points to webobjects... LoadModule WebObjects_module /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so But apache still seems confused. Did you check that in the conf files cgi-bin is the one being used? I remember having been bitten by this when I used the WOnder stuff. In there cgi-bin is replaced by App. So you URL would look something like /App/WebObjects/ instead of .../cgi-bin/WebObjects/... ---markus--- Thanks, Jeff On Jul 25, 2012, at 9:44 PM, Chuck Hill ch...@global-village.net wrote: On 2012-07-26, at 10:41 AM, Johnny Miller wrote: It's in there and I tried commenting that line out as well but it had no effect? Are you including the apache.conf from WebObjects? That error means that it is seeing the URL as a file request, not one to be passed through to WO. On a side note... did web sharing get the boot? It seems that option has been dropped from System Preferences I don't have an ML machine in front of me here. Chuck On Jul 25, 2012, at 4:34 PM, Chuck Hill ch...@global-village.net wrote: Your httpd.conf needs to be fixed for this setting: ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) /Library/WebServer/CGI-Executables/$1 On 2012-07-26, at 10:32 AM, Johnny Miller wrote: Hi, I upgraded my computer today and now when I go to debug my application I get the following print out from Safari: The requested URL /cgi-bin/WebObjects/METSAdminApp_1.woa/- was not found on this server. WOMonitor, WOTaskd and my application appear to be running. Did anyone have a similar problem or have an idea on where to start debugging? Thanks in advance, Johnny Miller ___ 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 -- 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 ___ 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/jeff%40netbrackets.com This email sent to j...@netbrackets.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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: Community bounties
On 10.09.2012, at 18:37, Pascal Robert prob...@macti.ca wrote: Ok, like we said here: Ça va faire le niaisage! So we need people who can: - Make something like Golipse that will install not only Eclipse (current stable version, so 3.7 or 3.8 for now), but also WOLips, Rule Modeler, useful plugins, Workspace Mechanics, the core WO frameworks (remember: we can't distribute the frameworks directly, we have to use a hack like WOInstaller.jar) and any current stable Wonder frameworks (fetched from jenkins.wocommunity.org). It HAVE to be in a bundle type folder, where a WODev folder would include everything, including the core WO frameworks. That means wolips.properties have to have references to the WODev folder or a sub-folder of it. So for example a WODev folder would have a structure like this: WODev Frameworks (will include both Wonder and WO) Eclipse Rule Modeler Bonus points if you can make it work on OS X, Windows and Linux (yes, I know, Rule Modeler can't run on Linux and Windows). Another bonus if it can detect that Java is not installed on OS X and ask to install it like other Java apps to. I'm willing to give $75 from my own pockets to get that. We can also decide to pull money from WOCommunity too... - Have a WOLips startup page with links to community resources. Many Eclipse plugins will show a welcome page after installation, with links to help, JavaDoc, etc. I'm willing to give $50 from my own pockets. - Find a way to bundle examples inside WOLips. Would be great to not only install the tools and frameworks but also examples that can be easily added into Eclipse. I saw such a thing from a Eclipse book so I know it's possible to do it. I'm willing to give $50 from my own pockets. Pascal, I'd also give $75 for this. What you ask for is exactly what I have suggested in my message of 17. July titled Installing tools and framework is a mess. Here is my suggestion/idea/whatever again: quote I see a fully self-contained downloadable package similar to what Apple does with Xcode that contains a fully loaded and configured Eclipse with all the WOlips plugins installed. Create a directory inside Eclipse (maybe packaged as a plugin?) that encapsulates the WonderSource and precompiled binaries (the WOnder Frameworks). Let WOlips's default wolips.properties point to these framework directories. Create a mechanism that upon each start of this Eclipse executable it checks if the WebObjects frameworks are installed (I know we cannot deliver those directly inside the Eclipse package but must load them from an Apple server). The startup task could download WebObjects mimicking the woinstaller.jar functionality. This functionality could also be made available in the WOlips project properties and/or in the WOlips context menu for a manual download (might not be needed). The download URL must point to a fixed location on wocommunity or whatever and must be rerouted from there to the real Apple server. This would prevent things from breaking when Apple eventually decides to (re)move the WO downloads. A user would probably not mind downloading a couple 100 MB and waiting an hour for everything to settle but then everything just works. And don't tell me the Wonder Frameworks and WOlips will be outdated eventually. Yes, they will, but the newbie user does not care. Nobody cares if the latest and greatest is there when it does not work. Better get startet with something a couple months old THAT WORKS! When packaging Wonder (and WebObjects) as a plugin we can provide an update site and have to user at any time update his installation to the latest and greatest and still have something THAT JUST WORKS! As there is still a wolips.properties inside Eclipse package we can provide to the experience used clear (not contradicting! ) instructions how to customize the whole setup. All of this does not prevent the experienced user to play with the wonder source and build his/her own frameworks. BUT STILL IT WORKS INITIALLY OUT OF THE BOX!! /quote ---markus--- ___ 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: Project Wonder cookbook
On 10.09.2012, at 19:53, Pascal Robert prob...@macti.ca wrote: Ok, so one of the objectives of WOCommunity for this year is to write a Project Wonder Cookbook. If you ever bought a O'Reilly Cookbook, you know what I'm talking about. If not, those books have a really simple purpose: to provide examples and answers for specific topics. Guess what? I already wrote a chapter: http://wiki.wocommunity.org/display/WOCOM/Emails One of the advantages is that it can be written by a team, something that can be difficult for a regular book. So I want to know who want to contribute to it. The idea I have is that we provide the cookbook for free on the wiki, and that we sell a PDF/ePub version to raise money. Lastly, we will use WOCommunity money to pay people who contribute to the book! The task is to find and edit tips and answers, and to provide code sample when possible (see https://github.com/wocommunity/CookbookExamples). So, who's in? I'll certainly will try to add to it. I have a couple of more or less short snippets that I often refer to ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Correct spelling of Wonder and WOlips? How do we want to call things?
What is the agreed correct spelling of the following: - Wonder / WOnder ? - WOlips / WOLips ? As the first chapters of my book near completion I want to make sure that everything is spelled properly. Additionally as far as I remember we try not to talk about WebObjects any more but use the term WOnder in general. Is this correct? The working title of my book is Learning the WOnders and throughout the text I only talk about WOnder. I do have to mention WebObjects of course but I try to give the impression that WebObjects is just part of WOnder to lessen the pressure coming from the deprecated tag. I will put the complete first part covering in detail installation of Eclipse, WebObjects, and Wonder on Mac and Windows online for free as soon as the names are clear. Have fun with the WOnders of the modern WOrld ---markus--- ___ 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
Need idea for modal overlaid page in D2WNeutral app
Folks, I have a Wonder based D2W neutral look app (quite a large thing) where one component has become very large. It shows a hierarchy of 5 levels. Each level has some 5 attributes. I have already wrapped all hierarch levels in D2WCollapsibleComponentContent but when the user opens several levels at once the screen becomes very cluttered. I would like to do something similar to what happens in a modern D2W app where many subpages are shown overlaid (like those EditEmbeddedxxx things). My idea is to only show the hierarchy (maybe even with an Ajax tree?) where each node has a simple [Details] button. This button should then overlay a one object edit area with its own accept/cancel controls. Any idea how to easily accomplish something like this? Mind you this is a classical neutral look app with no Ajax so far - and there is no way I can port the app to modern look. Thanks a lot ---markus--- ___ 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
Update on the new Wonder beginners book
Several people have asked me (privately) about the new Wonder Book that I have announced. Well, yes, it is not yet there but it is on its way! I have been extremely busy with a large customer project (D2W) during the last couple months (paid work) and have not found the time to finish the book (unpaid work so far). So it will not come out this year but it must be done by end of january as I have committed myself to teaching a class using this book. I have prepared the first couple chapters about basic concepts and the setting-up of a complete development environment on Mac OS X and Windows. You can download the PDF from here . Provided you keep the copyright notice (copyright by Markus Ruggiero) and do not alter the contents you can distribute the PDF in any way you like. The final book will be payware but I do not yet know exactly how it will be distributed. It will certainly be available in some electronic form but probably also in print. Have fun ---markus--- Markus Ruggiero mailingli...@kataputt.com Check out the new book about Project Wonder and WebObjects on http://www.kataputt.com/learningthewonders ___ 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: Hello World Project - Installation Development
Hi Ute, I am writing a full intro book to Wonder and WebObjects. The initial chapters about setting up the environment are free and available for download from www.kataputt.com. You might want to have a look at it, I think it will answer all (? hopefully!) your questions. Have fun ---markus--- On 14.01.2013, at 11:50, ute Hoffmann u.hoffm...@tt-pixelmind.com wrote: Hi, I have done a development tools installation with the help of the community wiki. I confirmed that WOLips is installed. All steps on the installation page have been done. This is my first install of eclipse and the wonder toolset, up to now I was a xcode user for WebObjects programming. I would now like to do a simple Hello World App (next tutorial in the wiki), but I have no Wonder Application selection option under New. Has anyone a idea what went wrong? Regards, Ute ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.com Markus Ruggiero mailingli...@kataputt.com Check out the new book about Project Wonder and WebObjects on http://www.kataputt.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: help with D2W target
Theodore, I was having the very same issue. See thread Why does the rule not fire??? from 30. August 2012. I could not get any formatter to work. I ended up writing my most simple custom component for dates and numbers to use in these circumstances. Should have tried do debug but there was no time then and much frustration and a custom component was the quickest way to a result. Sorry, does not sound too promising. ---markus--- On 18.01.2013, at 16:31, Theodore Petrosky tedp...@yahoo.com wrote: I have a ProjectWorkOrder to-many pwoMileStones I have an edit page: EditProjectWorkOrder and a rule 150 : (smartAttribute.className = 'com.webobjects.foundation.NSTimestamp' and propertyKey like '*Date*') = formatter = %m/%d/%Y [com.webobjects.directtoweb.Assignment] this rule is working fine to format the dates on EditProjectWorkOrder but I can not seem to target the list of pwoMileStones on its parent. Also, on EditEmbeddedPWOMileStone the date formats as I want. does this make sense to you? How do I target the list of pwoMileStones on the EditProjectWorkOrder so the date will format as I want? 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
2dim excel for 1:m relationship problem
Folks, I need some good ideas. I have basically the following model: PRODUCT (code, name, some other attrs) -- STATEMENTREF (status) -- STATEMENT(text) STATEMENTREF is a join table that has one attribute (so it is not a simple m:n join). The customer wants an excel file looking like this heading line: product code | product name | statement 1 text | statement 2 text | ... | statement n text data line 1 : 2345 | name of this | ref status 1 | ref status 2 | ... | ref status n data line 2 : 8976 | name of this | ref status 1 | ref status 2 | ... | ref status n etc The columns are the statements, the rows one per product and the cells hold the status for the reference from product to statement text. Any idea how to do such a thing? This is pretty urgent and I am at a loss. The whole thing is a D2W project in Neutral Look. Creating Excel stuff with ERExcelLook is no problem under normal conditions. But here? I am pulling my hair but I have not made any progress so far. Thanks a lot for any help ---markus--- ___ 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: 2dim excel for 1:m relationship problem
On 06.02.2013, at 19:38, Ramsey Gurley rgur...@smarthealth.com wrote: May I begin by saying: That design sucks :-P If there's one really big 'n' and a bunch of really small 'n's, the customer going to waste a ton of paper. Plus, long text in a narrow column? Srsly?? ZOMG, I want to die noa! Well, no, it doesn't. This is actually a n by m matrix and being able to see this matrix is a very good thing. And it is certainly not my job to tell the customer not to print. But you have not seen the rest of the model, THAT is crap all over. This started out as a D2W app created by some JEE folks combining raw JDBC calls with what they thought is WebObjects and D2W. While I have taken over this baby it started to grow almost uncontrollably. I have already thrown out the JEE and JDBC stuff and about 30 custom D2W page components. Anyway. I have to deal with this and slowly try to fix and clean up things. Don't let them design. They don't know what they're doing. Let them tell you the requirements and you do the design ;-) I know they don't - and what they know changes by the hour. There are no requirements, they just work with the stuff and then marketing comes up with some new ideas and terminologies and legal has ideas and while working with the app the user sees some potential and so on. And there are tons of interfaces to other systems where a simple change request would take some 2 months and cost you an arm and a leg - Oh, did I mention that you would have to send your request via Poland to India, to have it re-evaluated in Belgium, then sent out to all parties in Europe and the US for eventual implementation of the changes in Bangalore and tested in Romania Oh the wonders of globalization. But I digress... I haven't used the excel generator before, so I don't know if it can handle this, but ERD2W has a grouping list page. With that, you should be able to get a table that looks something like product 1 statement 1.1 statement 1.2 product 2 statement 2.1 statement 2.2 statement 2.3 statement 2.4 statement 2.5 statement 2.6 product 3 statment 3.1 product 4 ... and so on. If the xls generator can't handle the markup ERD2W produces, but you could customize your own grouping list repetition component. If they really Really demand columns per statement, I'd just dump the text to a csv file and let them open that in excel. This may be the easiest route. probably the best idea. Thanks Ramsey (and hey, your name is masculine enough...) ---markus--- Ramsey On Feb 6, 2013, at 10:13 AM, Markus Ruggiero wrote: Folks, I need some good ideas. I have basically the following model: PRODUCT (code, name, some other attrs) -- STATEMENTREF (status) -- STATEMENT(text) STATEMENTREF is a join table that has one attribute (so it is not a simple m:n join). The customer wants an excel file looking like this heading line: product code | product name | statement 1 text | statement 2 text | ... | statement n text data line 1 : 2345 | name of this | ref status 1 | ref status 2 | ... | ref status n data line 2 : 8976 | name of this | ref status 1 | ref status 2 | ... | ref status n etc The columns are the statements, the rows one per product and the cells hold the status for the reference from product to statement text. Any idea how to do such a thing? This is pretty urgent and I am at a loss. The whole thing is a D2W project in Neutral Look. Creating Excel stuff with ERExcelLook is no problem under normal conditions. But here? I am pulling my hair but I have not made any progress so far. Thanks a lot for any help ---markus--- ___ 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: WOCommunity membership and goals
On 07.02.2013, at 13:59, Pascal Robert prob...@macti.ca wrote: Hello everyone, Based on the feedback we have so far in the surveys (if you haven't answered the 2013 surveys, please do it in the next 7 days), we established a list of goals for 2013: - We need a jQuery framework. According to the surveys, members of the community use jQuery almost as much as the Ajax framework from Wonder. In fact, I'm wondering how you use it now, in Direct Actions? Just for effects? If you already have a jQuery framework that you would like to give to the community, we can work it out. - Better integration between WO and iOS (and Android). ERSync is a start, and I was thinking maybe we could make a tool that reads a CoreData model, convert it to a EOModel and automatically build REST services for the model. +1 - A Project Wonder Cookbook. That book would contains, two pages max, solutions to common problems and questions about Project Wonder. +10 - Getting more people to understand and work on WOLips. +1 - A easy-to-install development environment, that would install not only WOLips and Eclipse, but also the core WO frameworks and Project Wonder. +10 - A easy to use deployment service. Having helped many people with deployment issues, it looks like deployment is still an issue. +1 Ken Ishimoto's script might be a start - Redesign of wocommunity.org. - Looking at how we can replace parts of WO with open source parts. The Cayenne training day at WOWODC 2013 is the first step toward that goal. How are we going to finance this? We will change how the membership works. We will have the following options: - $50 for regular membership. This $50 will be for paying recurrent charges, like the hosting fees for wocommunity.org, and to pay for deposits related to WOWODC. You still get early access to WOWODC recordings. I'll certainly buy a regular membership - $300 for Bronze Sponsorship. You get membership + your company logo on wocommunity.org for 6 months (on rotation with other sponsors). - $750 for Silver Sponsorship. You get membership + your company logo on wocommunity.org for 12 months (on rotation with other sponsors) and your logo on the WOWODC site. - $1500 for Gold Sponsorship. You get membership + your company logo on wocommunity.org for 12 months (no rotation) and your logo on the WOWODC site. You also get one WOWODC 2013 ticket. For bigger tasks, like the jQuery framework and the Project Wonder Cookbook, we will use Kickstarter or a similar system to raise money to do it, and if we don't raise enough cash, the project simply dies. Comments about this? ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: Any interest in WOWODC recordings on DVDs?
On 13.02.2013, at 15:05, Musall Maik m...@selbstdenker.ag wrote: Am 12.02.2013 um 19:43 schrieb Pascal Robert prob...@macti.ca: If we sell the WOWODC recordings on DVDs (as QuickTime movies, not as a movie DVD) to raise money for the Association, does any of you would buy it? I don't think we will add that option is only one or two guys requests it, hence the question. I like the general idea, but I'm not sure about DVD being the right medium. Optical is fading away, especially on the Mac platform, which is the main platform (if not the only one, see license) for WO development. Why not select a cool 8/16/32 GB USB 3.0 stick, buy a bunch of them, preload them with videos and other WO resources and sell that for a premium? That way buyers could store the stuff wherever they want, and even re-use the device in their daily work. We could even try to get the sticks' casing branded. Like that idea! ---markus--- Maik ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.com Markus Ruggiero mailingli...@kataputt.com Check out the new book about Project Wonder and WebObjects on http://www.kataputt.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: Any interest in WOWODC recordings on DVDs?
On 13.02.2013, at 19:06, prob...@macti.ca wrote: We can ship the recordings as ASCII on a Vax 750. Does it include the VMS/VAX license for the operating system? If yes, I'd take it. However what about shipping cost? ---markus--- Envoyé de mon iPhone Le 2013-02-13 à 13:05, Chuck Hill ch...@global-village.net a écrit : You have something against magnetic tape? On 2013-02-13, at 9:53 AM, Lon Varscsak wrote: I want mine on 5 1/4 floppies. -Lon On Wed, Feb 13, 2013 at 10:18 AM, Pascal Robert prob...@macti.ca wrote: Le 2013-02-13 à 11:26, Theodore Petrosky tedp...@yahoo.com a écrit : did anyone mention $29 for the videos, $129 for the videos with transcriptions and table of contents. No way we can sell a decent branded 32 Gb USB stick for $29 while making a small profit. Yes, we need at least 24 Gb to be able to hold all the recordings since 2008. just an idea --- On Tue, 2/12/13, Ramsey Gurley rgur...@smarthealth.com wrote: From: Ramsey Gurley rgur...@smarthealth.com Subject: Re: Any interest in WOWODC recordings on DVDs? To: Pascal Robert prob...@macti.ca Cc: WebObjects Development webobjects-dev@lists.apple.com Date: Tuesday, February 12, 2013, 1:59 PM I can't imagine a DVD being worth much since it would low res everything down to VGA. Squinting at the screencasts are tough enough with compression artifacts on the text at regular resolution. Plus all the time recompressing and burning... yick. Just put the files on a microSD card. Then everyone can watch them on their computer/tablet/phone. Ramsey On Feb 12, 2013, at 11:43 AM, Pascal Robert wrote: If we sell the WOWODC recordings on DVDs (as QuickTime movies, not as a movie DVD) to raise money for the Association, does any of you would buy it? I don't think we will add that option is only one or two guys requests it, hence the question. ___ 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/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/lon.varscsak%40gmail.com This email sent to lon.varsc...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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
Sending POST request to external host
Hi, I have a component that generates some XML data. Works fine. Now I need to upload that XML data via a POST to some remote server. How would I do that? Here is the code I use, but somehow the remote server chokes with the contents I send it. When I let the frameworks return the XML to my browser everything looks good. I suspect that my packaging the XML into a request somehow corrupts it. Or maybe there are some headers missing. This is a direct action that returns what I want: try { Product product = (Product)products.objectAtIndex( 0 ); // Product is an EO TransferXMLGenerator generator = (TransferXMLGenerator)pageWithName( TransferXMLGenerator.class); generator.setProduct( product ); } catch (Exception e) { System.out.println(e.getMessage()); } return generator; And this is the code that generates the XML and then directly uploads it to the remote host: TransferXMLGenerator generator = (TransferXMLGenerator)pageWithName( TransferXMLGenerator.class); generator.setProduct( product ); WOResponse generatorResponse = generator.generateResponse(); NSData xml = generatorResponse.content(); // *** I assume that XML now is the very same as is returned to the browser in the case of the direct action above // *** This assumption might be wrong // send XML data to front end Application application = (Application)Application.application(); WORequest request = new WORequest(POST, application.mondPath(), HTTP/1.0, null, xml, null); BASE64Encoder enc = new BASE64Encoder(); String authHeaderContent = Basic + enc.encode((mondUser +: + mondPasswd).getBytes()); request.setHeader( authHeaderContent, Authorization ); request.setHeader(application.mondHost(), host); request.setHeader(Java/1.6, user-agent); WOHTTPConnection connection = new WOHTTPConnection(application.mondHost(), application.mondPort()); messages.append( \nConnection = + connection.toString()); if (connection.sendRequest( request )) { WOResponse frontendResponse = connection.readResponse(); The problem is that when I send the direct action generated XML by hand, outside of my app, with the help of an upload tool (custom tool, not under my control, no source available), the remote server is happy, whereas when I send it via the second part above, directly from my app, the remote server accepts my data but then complains that there are some structural problems with the data. So, the communication works, but obviously the data sent differs in those two cases. Any idea? Is WOHTTPConnection and WORequest the right thing to use here? Am I using it right? Thanks for any help. ---markus--- ___ 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
Detailed HOWTO Deploy on Mountain Lion
Folks, There have been recent discussions about deployment on Mountain Lion. Deployment will be a part of my upcoming book Learning The Wonders. I have decided to make a first shot at the deployment chapter available for free. Surf to http://www.kataputt.com and download the PDF. Feedback welcome! Have fun ---markus--- Markus Ruggiero mailingli...@kataputt.com Check out the new book about Project Wonder and WebObjects on http://www.kataputt.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: Relationship many-to-many issue
As others already pointed out your many-2-many looks strange. Delete your all relationships from and to your join entity EORepartDomMatiere. Then delete this entity as well. Click once on entity EOMatiere and create new Relationship. Select in the upcoming dialog on the right side the destination entity EODomaine. Underneath both entities check to-many. The dialog changes and proposes to create a join entity as well a flattened relationship. Accept things as they are and your model is ok. Do not change anything in the model (visibility of the generated relationships, also do not assign a specific class to the join entity, leave it as EOGenericRecord). In your code do something like EOMatiere myMatiere = ... EODomaine myDomaine = ... myMatiere.addObjectToBothSidesOfRelationshipWithKey (myDomaine, EOMatiere.DOMAINES_KEY); Let EOF take care of creating the join table record - it works, I can assure you! Have fun, ---markus--- On 05.04.2013, at 15:55, Raymond NANEON rnan...@me.com wrote: Hi List, I have a table EORepartDomMatiere which has like pk foreign key of 2 others tables (EODomaine EOMatiere). mat1.jpg reparMat1.jpg dom1.jpg reparDom1.jpg So when I want to save in the many-to-many table whith ec.saveChanges(); ... repart.setMatiereRelationship(mat); repart.setDomaineRelationship(dom); if (ec.hasChanges()) ec.saveChanges(); ... I got this Exception : java.lang.IllegalStateException: Adaptor er.extensions.jdbc.ERXJDBCAdaptor@3e2ad6a0 failed to provide new primary keys for entity 'EORepartDomMatiere' at com.webobjects.eoaccess.EODatabaseContext.prepareForSaveWithCoordinator(EODatabaseContext.java:5713) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:370) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099) at org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.rePartDomMat(ModuleAdminDomaine.java:349) at org.utt.rfcct.serveur.components.assistants.modules.ModuleAdminDomaine.uneMatiereEnregistrer(ModuleAdminDomaine.java:314) Why the adaptor want to create a new primary key? What's wrong? Thanks for your help Envoyé depuis iCloud ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.com Markus Ruggiero mailingli...@kataputt.com Check out the new book about Project Wonder and WebObjects on http://www.kataputt.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
override qualifier from EOModel
Folks, I have an entity Product with an attribute isVisible. Throughout my application I only work with products that are visible. So I have specified a qualifier visible='Y' right in the model. This qualifier is automatically AND-added to each and every query agains Product. Fine, I am happy with this. Now the customer needs an automatic cleanup function. This function must fetch products that are not visible. Cleanup requires more than just deletion from the database. I cannot do the cleanup with raw rows, I do need real EOs. How can I override that model qualifier? When fetching raw rows I do get the data but I was not able to convert the dictionaries to EOs. The ID attribute is in the dictionary (which is the PK) but I get an IllegalArgumentException telling me does not contain primary key information for entity Product This is the code I use (maybe there is a problem there) NSMutableArrayProduct products = new NSMutableArrayProduct(); NSArrayNSDictionaryString, Object rawRows = EOUtilities.rawRowsForSQL( ec, ec2, select * from PRODUCT where visible = 'N' , null); for (NSDictionary row : rawRows) { Product prod = (Product) EOUtilities.objectFromRawRow( ec, Product.ENTITY_NAME, row ); products.addObject( prod ); } Thanks for your help ---markus--- ___ 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: override qualifier from EOModel
Thanks for all your suggestions so far, but I think none is what can really help me. Let me explain a bit more. Cleanup does not only mean delete the Product from the database but first I have to build an XML structure that contains the product data and related data from several to-one and to-many relationships. This XML is then sent to a remote application. Only when that application (not under my control) agrees I am allowed to finally remove that Product. - Having a clone of the Product entity without the restricting qualifier is therefore not such a good idea, as I need to maintain all the relationships from and to that entity. Nightmare! - Just removing the restricting qualifier is an option, but then there are dozens of locations throughout the app where products are fetched, some through D2WQueryPage, others explicitly for populating selection lists, yet others when generating XML data. Nightmare! - Having a second instance of the app with a property set to remove the restricting qualifier might be a way to go, but some cleanup related actions must be explicitly done by an interactive user. What instance should a user connect to? Depending on what he/she wants to do, it's the one where the cleanup works or not. So basically my question still is, how do I circumvent that restricting qualifier? Might there be a way to do this with a delegate somewhere down the EOF stack? At what point in processing is the final qualifier built? I could set a delegate and if needed remove the restriction from the generated SQL statement. But how and where would I do this? Never had to go that deep into advanced EOF land. Thanks for your help ---markus--- PS the IllegalArgumentException mentioned in my first posting was due to rawRows bringing back all the attribute names in upper case but the id attribute is in lower case. So this has been resolved, but even then I only get faults that are later on resolved against the database - again including the restricting qualifier. Even objectsWithPrimaryKey() uses the qualifier. On 10.04.2013, at 13:52, Markus Ruggiero mailingli...@kataputt.com wrote: Folks, I have an entity Product with an attribute isVisible. Throughout my application I only work with products that are visible. So I have specified a qualifier visible='Y' right in the model. This qualifier is automatically AND-added to each and every query agains Product. Fine, I am happy with this. Now the customer needs an automatic cleanup function. This function must fetch products that are not visible. Cleanup requires more than just deletion from the database. I cannot do the cleanup with raw rows, I do need real EOs. How can I override that model qualifier? When fetching raw rows I do get the data but I was not able to convert the dictionaries to EOs. The ID attribute is in the dictionary (which is the PK) but I get an IllegalArgumentException telling me does not contain primary key information for entity Product This is the code I use (maybe there is a problem there) NSMutableArrayProduct products = new NSMutableArrayProduct(); NSArrayNSDictionaryString, Object rawRows = EOUtilities.rawRowsForSQL( ec, ec2, select * from PRODUCT where visible = 'N' , null); for (NSDictionary row : rawRows) { Product prod = (Product) EOUtilities.objectFromRawRow( ec, Product.ENTITY_NAME, row ); products.addObject( prod ); } Thanks for your help ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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: override qualifier from EOModel
On 10.04.2013, at 19:50, Chuck Hill ch...@global-village.net wrote: On 2013-04-10, at 10:29 AM, Markus Ruggiero wrote: Thanks for all your suggestions so far, but I think none is what can really help me. Let me explain a bit more. Cleanup does not only mean delete the Product from the database but first I have to build an XML structure that contains the product data and related data from several to-one and to-many relationships. This XML is then sent to a remote application. Only when that application (not under my control) agrees I am allowed to finally remove that Product. - Having a clone of the Product entity without the restricting qualifier is therefore not such a good idea, as I need to maintain all the relationships from and to that entity. Nightmare! - Just removing the restricting qualifier is an option, but then there are dozens of locations throughout the app where products are fetched, some through D2WQueryPage, others explicitly for populating selection lists, yet others when generating XML data. Nightmare! - Having a second instance of the app with a property set to remove the restricting qualifier might be a way to go, but some cleanup related actions must be explicitly done by an interactive user. What instance should a user connect to? Depending on what he/she wants to do, it's the one where the cleanup works or not. You would give them different names, ProductManager.woa and ProductCleanup.woa So basically my question still is, how do I circumvent that restricting qualifier? Might there be a way to do this with a delegate somewhere down the EOF stack? At what point in processing is the final qualifier built? I could set a delegate and if needed remove the restriction from the generated SQL statement. But how and where would I do this? Never had to go that deep into advanced EOF land. I don't think that is going to leave you in a happy place. You could create a super-class of Product with visible='N' as the qualifier. I am not sure if that would work for you. That qualifier is really intended for use with EOF inheritance and you are bending it to something it was not intended for. That is why EOF is not allowing you to change it - it would change inheritance hierarchies. A better choice might be to apply this in code though centralized fetching methods. Chuck Thanks (or not so) Chuck, I feared something like this. Then let me ask a related question: how would I implement the visible='Y' in a ERD2WQueryPage? The user should never see the attribute (so it won't be in displayPropertyKeys) but it must be used for qualifying in addition to any other qualifications the user makes on the page. ---markus--- PS the IllegalArgumentException mentioned in my first posting was due to rawRows bringing back all the attribute names in upper case but the id attribute is in lower case. So this has been resolved, but even then I only get faults that are later on resolved against the database - again including the restricting qualifier. Even objectsWithPrimaryKey() uses the qualifier. On 10.04.2013, at 13:52, Markus Ruggiero mailingli...@kataputt.com wrote: Folks, I have an entity Product with an attribute isVisible. Throughout my application I only work with products that are visible. So I have specified a qualifier visible='Y' right in the model. This qualifier is automatically AND-added to each and every query agains Product. Fine, I am happy with this. Now the customer needs an automatic cleanup function. This function must fetch products that are not visible. Cleanup requires more than just deletion from the database. I cannot do the cleanup with raw rows, I do need real EOs. How can I override that model qualifier? When fetching raw rows I do get the data but I was not able to convert the dictionaries to EOs. The ID attribute is in the dictionary (which is the PK) but I get an IllegalArgumentException telling me does not contain primary key information for entity Product This is the code I use (maybe there is a problem there) NSMutableArrayProduct products = new NSMutableArrayProduct(); NSArrayNSDictionaryString, Object rawRows = EOUtilities.rawRowsForSQL( ec, ec2, select * from PRODUCT where visible = 'N' , null); for (NSDictionary row : rawRows) { Product prod = (Product) EOUtilities.objectFromRawRow( ec, Product.ENTITY_NAME, row ); products.addObject( prod ); } Thanks for your help ---markus--- ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.com ___ Do not post admin requests
Re: OT - Share our experience moving from WO
On 22.04.2013, at 01:50, Daniel Mejia mej...@evol-tech.com wrote: Hi all, I would like to share my experience after decided to move from WO. This decision took some years but finally we have to make it. After some years developing with Java and WO we started a migration to what our managers decided to move. This is what scares me to death. Management decision! GOOD LUCK, Daniel, you may need it ---markus--- The decision was Microsoft developer tools. After some weeks studying and doing many test I think that we have a selection of frameworks that are close to WebObjects. Maybe we used WO in a very basic level but I think that we found a replacement. Our selection consist of: C#, Windows Presentation Foundation, Entity Framework with Code First, and Windows Communication Foundation. The only thing that I'm missing is D2W, but we can live without it. Regards, Daniel. ___ 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/mailinglists%40kataputt.com This email sent to mailingli...@kataputt.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