Re: didUpdate?

2012-07-30 Thread arosenzweig
Hi Theodore, I agree with George, I wouldn't do the Session way. Worman set you on the right track. Ok, it didn't fully give you the solution but it pointed you where to look. The EOEditingContext knows all. It knows what the current values are (just invoke methods on the EO itself) it also kn

Re: Fluffy Bunny question

2012-07-19 Thread arosenzweig
Hi Sharpy, Jesse, and John, I appreciate your replies. We are running Applications that only extend the ERAjax lineage bypassing full blown ERXApplication. We are using almost the same as you Sharpy. Same Eclipse version but newer WOLips. Specifically we're running: Eclipse 3.7.2 WOLips 3.7.201

Fw: Fluffy Bunny question

2012-07-18 Thread arosenzweig
Hi WOrriors, Sorry for the cross post but it seems these days most questions get asked on the Apple lists regardless if they are pure Apple related or WOLips / Eclipse / WOnder related. Anyone have some advice for me? I'd like to put my EOModel files into "Resources/model" but fluffy bunny isn

Incremental build - development via Web adaptor

2012-07-18 Thread arosenzweig
Hi WOrriors, Big question: How can I we get an incremental build to embed framework static resources into the app's "build" folder? We're in the midst of converting an app from XCode to Eclipse and have some questions about using either the "incremental" build setting that puts products in the

Re: Migrating from EOF to ????

2012-07-16 Thread arosenzweig
Hi WOrriors, The Tapestry API changes are way more than that the API changes we faced in WO 5.4.3 from 5.3.3. However, we had to deal with WO API changes for no real benefit. No boost in productivity. Nothing broken in 5.3.3 that WOnder had not already addressed. Still, we happily alienated A

Re: Migrating from EOF to Cayenne

2012-07-12 Thread arosenzweig
Hi WOrriors, I still question why we are fighting so hard for Object-relational mapping. If we are contemplating doing work, shouldn't we consider going straight for object databases? Take out the transcription layer. Let's get more productive. Only use OR-mapping for old systems that we must

Re: Migrating from EOF to Cayenne

2012-07-11 Thread arosenzweig
Hi WOrriors, I have mixed feelings. It's obvious when you look at Cayenne the original developers had used EOF before and wanted to make an open source clone. They also wanted to make it better, if possible, than EOF. It's been a while but when I looked at it I was put off by some things. Th

Re: I am going to write a WO book

2012-06-08 Thread arosenzweig
Hi Markus, Good for you! Thank you for even thinking about this. You ask what you should say about WOnder? I'd recommend the following: 1) Defining what the project is and some history 2) Show how to integrate it in your app, the pre-requisites. 3) Leave it at that. You kind of have to do thi

Re: Restoring session after timeout.

2011-12-02 Thread arosenzweig
Hi Mahdi, The session is not just a cookie. It is a reference to many objects stored in RAM for one user. It's what allows a web application to "remember" what a user is doing. It can eat up a lot of resources but is very convenient. That thing you are currently storing in a cookie is just a "k

Re: Why are static web resources duplicated in the app bundle?

2011-10-24 Thread arosenzweig
Thanks Q for the tip. Looks like you are right on the money. I asked my buddy "JD" what the heck you are talking about since WODeployedBundle.relativePathForResource() is undocumented. It in turn calls _preloadAllResourcesIfNecessary() which is where the fun really starts to happen. Here's w

Re: Why are static web resources duplicated in the app bundle?

2011-10-21 Thread arosenzweig
Good thought Chuck, I checked and the app I was testing and it has direct connect disabled. I guess somehow deep in the bowels of WO it just expects the duplication to be there. And, as you say, perhaps it is tolerated because you might at some point want to turn on Direct Connect mode to test

Why are static web resources duplicated in the app bundle?

2011-10-21 Thread arosenzweig
Hi WOrriors, Do any of us know why static web resources such as images and javascript files get duplicated during a split install? Surely they need to be in the .woa that resides under the Apache root but why are they duplicated in the other .woa alongside the java logic? I've seen this for ma

Re: Finding WO people for startups (cult of the dead)

2011-09-29 Thread arosenzweig
Hi Chuck, Simon, and all WOrriors, I certainly understand your concerns and they are valid. WO is already a very expressive framework and you have a work process that simply does what you need. You are agile and get things accomplished. You don't have a need to try something new. I also underst

Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread arosenzweig
Thanks Ramsey, I didn't know WOLips did that. That is cool :-) Anyway I think we table this discussion... This is a WO list after all. I probably should have kept my mouth shut. For Andrew, Chuck, Mark, Jim, and others I'll give one quick overview and be done. Everything is out there on the ne

Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread arosenzweig
Hi Miguel, I apologize. You are on this list more than I am. I *know* you know your craft. I was overly blunt in my words and crossed the line. I'm sorry. -- Aaron Miguel Arroz wrote on 09/28/2011 02:12:41 PM: > From: Miguel Arroz > To: arosenzw...@clinworx.com > Cc: Chuck Hill , WebObject

Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread arosenzweig
Hi Tom, What you say makes sense at the face of it but when you get into the details... does it really buy you anything? When you ask a graphics designer to to design something for you they basically do it the way they want to. You can ask for this or that but in the end you will have to put t

Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread arosenzweig
Hi Miguel, It's easy. Sorry my friend but you sound a bit like that guy David alluded to who said "just show me the jdbc connection". If you want to gain the insight of something new and different, you have to open your mind and put in some effort to experience it. On the outside consider this

Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread arosenzweig
Hi Chuck, I can feel your gears turning. That's a good thing! 1) PHP is nothing but a template file (with embedded programming) 2) WO has a template file, a programming file, and it also has "in-line" binding which I've never been a fan of. Then there is the OGNL too... 3) Seaside is nothing b

Re: Finding WO people for startups (cult of the dead)

2011-09-27 Thread arosenzweig
Hi Marius, It's really up to you. It doesn't matter what development tools / frameworks you pick. You can make a good product in JSP... at some point your dedication and attitude determine how far you'll go and the rest doesn't matter. That being said, remember with Ruby on Rails everything i

Re: (Call him Pascal) WOComponent and RTF text

2011-09-20 Thread arosenzweig
Hi Raymond, Not sure what to tell you. First try with raw HTML to get an example working. Take WO and Eclipse totally out of the picture. Once you gain your footing there then come back and tackle putting it in WO. I've never used the WOJavascript component before but probably what you did is

Re: (Call him Pascall) WOComponent and RTF text

2011-09-16 Thread arosenzweig
Hi Raymond, You'll get a better response from Pascal if you call him by his first name... Pascal. Call him "Amazing" call him "Cool" but please... please do not call him "Rob". He's too shy to tell you directly... I think you missed it when he replied to you as "Hi Naneon". About your issue

Re: Apache DocumentRoot setting?

2011-08-29 Thread arosenzweig
Hi Mai, The part about viewing imagexyz.tiff in Safari but not in Firefox is probably due to "local cache" on Safari. In other words, if you were to quit Safari and try again or purposely "refresh" the web browser it will ping Apache and come back with nothing. Unless there is a funky setting

Re: Ad-hoc reporting tool?

2011-08-12 Thread arosenzweig
Hi Pascal, Jeff Simpson at YFU (Youth For Understanding) created a WO system just like you describe. Jeff is the one that also works with DB2. Ping him about this. His creation was slick enough that each user could have "saved reports" of their own creation that they could easily rerun when t

Useful tip: simulate slow internet access on a fast LAN

2011-03-09 Thread arosenzweig
Hi fellow WOrriors, Thought I'd share a tip that works on Mac OS X to simulate a slow internet connection. Gives you a nice visceral feel for how your app performs in the wild. You need at least two simple scripts: throttle_30kb.sh (simulates fast dialup connection): === su

Re: Shortened autogenerated names

2011-03-09 Thread arosenzweig
Ramsey that's a great tip! I didn't know we had such easy access to compression. I took out a sample 20KB row of HTML data we were generating so I could experiment. If I use GREP to manually strip out whitespace and then shorten all autogenerated names to 10 characters long this dropped from 2

Shortened autogenerated names

2011-03-09 Thread arosenzweig
Hello fellow WOrriors, Have you ever looked at the names given to WO input fields such as WOTextFields? They could look like one of the following: name="0.15.37.1.1.1.0.0.3" name="0.15.37.1.5.7.1.21.1.29.270710975.3.1.1.3.8.1.0.5" They tend to get longer the more times they are nested inside o

Re: how be them videos???

2010-12-22 Thread arosenzweig
Hi Pascal, We're interested in the Jasper Reports video too. Are you saying that the videos will be available around New Year's when you community code modifications are in tact? Thanks, -- Aaron > Le 2010-12-20 à 15:10, Theodore Petrosky a écrit : > > Any word on the videos from the past WOW

Re: Scala and WebObjects

2010-11-12 Thread arosenzweig
Hi everyone, Your vision is too narrow. Apple _does_ give / sell their technologies to other people and it has happened recently. Squeak (Smalltalk) is a good example. Giving it to Walt Disney and also the world at large: http://en.wikipedia.org/wiki/Squeak Dylan is another example. Giving it

Re: wildcard Query (Read-Attribute in EOModel)

2010-11-10 Thread arosenzweig
Hi Ken and everyone :-) Farrukh's solution is ok but as he also pointed out, it is "in-memory" and will only work on small data sets. Amedeo's solution is "memory-stable" but requires a schema change and data duplication / synchronization (on edits). Here's another solution: Consider adding

Re: [OT] Restoring a FrontBase DB

2010-09-28 Thread arosenzweig
Hi David, The other thing you must watch out for is if the FrontBase data dump was created on a PowerPC Mac or an Intel one. Why? Because of big and little endians. It will cause you gas if your Mac is not of the same architecture as the one that created the dump. 1) If you are on Intel and th

Re: Sorting Nulls with Oracle

2010-01-25 Thread arosenzweig
Hi All, The main question Dave was asking was how to give back to the community his useful fix for a very important piece of this problem. I believe the answer is to just use NSProperties. That way the option can be given in the Properties file, from the command line, or even from your home di

Re: Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread arosenzweig
Thanks Dave, A property is cool so long as it has a default behavior that remains the status quo. Still, this is a tough nut to crack in the general case with a simple flag because you have to account for both: a) in-memory sorting - plus localization sorting issues b) db sorting I kind of t

Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread arosenzweig
Hi Dave, You asked if null should be universally "less than" non-null. No, everyone thinks differently. For us it is the opposite. We use Oracle and like the way it sorts. We want "null" to be greater than "non-null". That is because for our domain we want to see values that have something "in

RE: What could we do to convince Apple to opensource WebObjects ?

2009-09-16 Thread arosenzweig
Hi Stephane (and all WOrriors), You make a good argument but think of it another way: 1) WO is not directly making money for apple 2) Open-sourcing could be a money loser for apple: They might lose a perceived bargaining chip. There is no financial incentive for Apple to open WO. I only see

Re: Why would native code in a java process fail - but only if started by wotaskd?

2009-08-24 Thread arosenzweig
Hi All, Here's a thought. When you start up from Terminal do you see anything new bouncing in the dock? If so, that means that it requires access to window services to launch. Launching via JavaMonitor as "root" often means you do not have access to window services. That could cause an immedia

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-06 Thread arosenzweig
Thank you Chuck and Mike for your thoughts on this rather scary issue. I will try to free up some cycles to build a "reduction" or "test case", but probably not today. Assuming I could make a reproducible and simple reduction, anyone know what Database Apple would most likely like to see? I'm a

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-05 Thread arosenzweig
Hi Everyone, Sorry to rebump this question but I really want to know what our current collective consensus is on this topic. The following thread from 2006 appears to me, at least, to be our most current and complete understanding of this issue: http://lists.apple.com/archives/Webobjects-dev/2

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hi Kieran, I tried this solution just now but I couldn't get it to work for me. I even trashed my entire build directory and tried it to no avail. I still see the same behavior namely: 1) deleted EO causes "validateForSave" exception in ec.saveChanges() The validation exception is still the sa

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hi Kieran, That is an interesting thought. To mark the relationship as "Mandatory" but yet leave the foreign key itself as optional ("allows null"). You would think the two would need to back each other up though, and to a casual developer passing by and perusing your model he might think you

Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hello WOrriors, We're using WO 5.3.x (not 5.4.x) I've run into a pickle where if I do an ec.deleteObject() and then call ec.saveChanges() I find that this fails during a "validateFor*Save*". Curious, indeed, because it should only call "validateFor*Delete*". When asking the EC to delete the Ob

Re: Null values at end of sorted list (solved)

2008-02-12 Thread arosenzweig
Hello Everyone, We solved the problem. Thanks to all of you who read, pondered, and lent a helping hand with this issue. It's appreciated. There was nothing wrong with our custom comparison support or how we were initializing it and using it. The problem rests in how we are using WOnder and t

Re: Null values at end of sorted list

2008-02-01 Thread arosenzweig
Hi Lachlan :-) I just tried your idea of enumerating through all the EO classes and setting them explicitly for the class of "setSupportForClass". I did this and also kept another line for setting "Object.class" as well. Unfortunately it hasn't corrected the situation yet. We still have proble

Re: Null values at end of sorted list

2008-02-01 Thread arosenzweig
Thanks for pondering the question James. Yes, when I say "commit" I mean "ec.saveChanges()". We have a listController that manages an array of enterprise objects that have been fetched from the database. "displayedObjects" is just a mutable clone of that array that is sorted and filtered before

Re: Null values at end of sorted list

2008-01-31 Thread arosenzweig
Hi James, The ComparisonSupport becomes transparent and used universally throughout the app. Here's an excerpt of one place where a sort occurs: NSMutableArray displayedObjects = NSMutableArray sortOrderings = EOSortOrdering.sortArrayUsingKeyOrderArray(displayedObjects, sortOrderings); This

Null values at end of sorted list

2008-01-31 Thread arosenzweig
What happens when you want to sort ten values in ascending order but one of them is null? Does that void value get put at the beginning, the middle, or the end? Apple decided that null values (or keyPaths that return a null value) should be placed at the beginning of an array sorted in ascendi

Re: Internal Inconsistency in K2Sort

2008-01-30 Thread arosenzweig
Thank you Alan and James, "Anyone know of a clever way to get null values to appear at the end of an ascending sorted list?" You gave a good tip. I've discovered that the only thing custom going on is in the Application constructor with the line: EOSortOrdering.ComparisonSupport.setSupportForC

Internal Inconsistency in K2Sort

2008-01-29 Thread arosenzweig
Has anyone ever received a strange WebObjects error when sorting related to an internal Apple "K2Sort" funky state? Here's the error: java.lang.IllegalStateException: Internal Inconsistency in K2Sort Here's the stack trace: _NSCollectionPrimitives.java312 K2SortArray com.webobjects.fo

Re: locations of DST information

2008-01-28 Thread arosenzweig
To voice an argument that has not yet been raised in favor of not deprecating the NS formatter and making it a true wrapper around the Sun formatter... WebObjects is all about the framework. I could care less that it currently runs on Java. I liked it better when it was Objective-C but I really

Re: WOComponent children

2008-01-16 Thread arosenzweig
Hi Mike, I've heard of scriptaculous :-) In plain text scriptaculous.js has the following comment: "inserting via DOM fails in Safari 2.0, so brute force approach" All I'm saying is that while I agree that your proposed DOM manipulation solution is the best given the current architecture of WO

Re: WOComponent children

2008-01-16 Thread arosenzweig
Hi Pierre, I hear what you're saying. Adding a new method to WOComponent that would only be used for HTML generation feels unclean. But, to play devil's advocate, you wouldn't implement that method in your WOComponent unless you are generating HTML and it sure provides an elegant solution. You

Re: WOComponent children

2008-01-15 Thread arosenzweig
Thank you Paul Hertz, Lachlan Deck, and Alexandar Spohr for your recent thoughts on the subject. The ultimate goal is "resusability." If you were to post to me and say "Aaron, those widgets you made are cool, can I use them?" I would like to be able to just give you a framework file and let you

Re: WOComponent children

2008-01-07 Thread arosenzweig
Hi Lachlan, you have some good ideas. 1) Scan all java WOComponent files at application launch and make a list of needed resources: This is cool. The one drawback is that every page you go to would have lots of JS and CSS files in the head tag, even if there is no possibility of using a given f

Re: WOComponent children

2008-01-07 Thread arosenzweig
Thank you Chuck, Simon, Anjo, Lachlan, and others. You've all given good insight and I appreciate you thinking about the problem. The idea of WOComponent.awake() sounds appealing but I got a question about it. I like the idea of every WOComponent on the page getting the awake() message and then

Re: WOComponent children

2008-01-07 Thread arosenzweig
I hear what you guys are saying... thank you for all your thoughts. I've posted a feature enhancement request via "Radar" at Apple. Here's what I asked for: Bug ID# 5673303. Title: addRequiredWebResources() WebObjects feature enhancement Request-Response loop Summary: The request-response loo

WOComponent children

2008-01-04 Thread arosenzweig
Hello, How can I get the children of a WOComponent? More importantly, all children and all descendants? WOComponents seem to only know how to go up the tree (find their parents). If you ask a WOComponent for its template (which is roughly its .html/.wod structure), you can then *almost* ask

RE: Progress bars and HTML generation

2008-01-02 Thread arosenzweig
Your problem is most likely the amount of time for the HTML to transfer over the network to the browser. Generally it is generated pretty quickly on the server but it just takes a long time to spoon it out. Most web browsers try to render the HTML as it gets it but if it is a table or some othe