IntelliJ + WebObjects 5.4

2007-12-17 Thread Sam Barnum
iated. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:

single-file webobjects bindings

2007-12-17 Thread Sam Barnum
tHTML.html > Do I need to flip a setting or something in my Application to enable compact tags? Thanks! -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 ___ Do not post admin requests to the list. They will be ignored. Webobjects-de

Re: JUnit for testing EOs

2007-11-27 Thread Sam Barnum
toURI().toURL() because File.toURL() is deprecated (it doesn't convert spaces correctly) After doing the above you should be able to create a new editing context and create entity instances normally. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Nov 27, 2007, at 2:00 AM, Paul

new rules for parsing .wod files

2007-11-20 Thread Sam Barnum
framework = "ProscLib"; } The error: com .webobjects.appserver.parser.declaration.WODeclarationFormatException: JSAutocompleter: 1:14: Lexical error at line 1, column 17. Encountered: "." (46), after : "" Any suggestions for fully qualifying a component name?

Re: JavaEOGenerator

2007-10-30 Thread Sam Barnum
Looks like it's already been updated! The link appears to be <http://webobjects.mdimension.com/wolips/ EOGenerator/JavaEOGenerator-beta2.tar.gz> Thanks Mike, I was toying around with cleaning up something we'd written internally, this is probably much nicer. -- Sam Barnu

Re: Fetching data into an Array

2007-10-24 Thread Sam Barnum
There's a bug in NSArray (actually one of the subclasses) where if you call iterator() it doesn't fire the fault. So the iterator is empty. If you use the enumerator or call count() first, it does fire the fault. I'd bet that's what is happening in this case. --

Re: Problems with addObjectToBothSidesOfRelationshipWithKey

2007-10-19 Thread Sam Barnum
. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Oct 18, 2007, at 8:47 PM, Owen McKerrow wrote: Further information When I try and print out the revrse relationship from AuthorPub back to Person I get null. i.e. EOF can't find the reverse relationship back to the P

Re: Odd SQL UPDATE statement

2007-10-10 Thread Sam Barnum
you've got multiple fields checked to use for locking purposes. Checking a field for locking means that if some other process changes a value that EOF has in memory, the update will fail, and you'll get an exception. On Oct 10, 2007, at 6:48 PM, Klaus Berkling wrote: Why does WO create s

Re: WO(Re)petition

2007-10-02 Thread Sam Barnum
Think Different : Please Opensource WebObjects -- Sam Barnum ___ Do not 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

Re: D2W + custom EOEditingContext subclass [SOLVED]

2007-09-27 Thread Sam Barnum
guess the D2WQueryPage reuses the fetch specification object, but sets the query on there. So my flag was still set, but the query had been replaced. On Sep 26, 2007, at 5:25 AM, Sam Barnum wrote: I'm using a custom EOEditingContext subclass to auto-restrict qualifiers (thanks t

D2W + custom EOEditingContext subclass

2007-09-26 Thread Sam Barnum
I'm using a custom EOEditingContext subclass to auto-restrict qualifiers (thanks to everyone who had suggestions on that) To do this, I need to ensure that all DB access is done through my EOEditingContext subclass (EGEditingContext). I'm also using D2W. The D2W class instantiates an editi

Re: Improve Upload speed...

2007-09-26 Thread Sam Barnum
I'd side with Simon on this. If you're really importing a ton of records, consider using raw JDBC. batched prepared statements are your friend! Unfortunately, you may end up rewriting some custom logic from your EO classes. You can get some pretty impressive speeds with this technique,

Re: Intellij IDEA

2007-09-24 Thread Sam Barnum
Hi Mike, we use IntelliJ for all our WO development. We've also written a WebObjects plugin for it (Intelliwo). I don't think we have any very complex projects I can send you the source for, but I'd be happy to test out things here. Let me know how I can help! -- Sam B

Re: Validation Week

2007-09-20 Thread Sam Barnum
Right, SimpleDateFormat isn't thread safe. I've heard recommendataions to use joda time instead (http://joda- time.sourceforge.net/) Seems like it takes some of the ugliness out of dealing with dates (haven't used it personally, but plan to) I think it's probably a good fit for what you'r

Re: Apple Please Update java Plot.framework / Think Different

2007-09-19 Thread Sam Barnum
Flex seems pretty slick for this. One complaint, since it's vector- based, I'm surprised it doesn't look sharper when printed. Any way to control this? Does flash always look crappy when printed? On Sep 18, 2007, at 9:34 PM, Stephane Guyot wrote: mike, you can also "Think Different" :

Auto-filtering EOF queries based on the current client

2007-09-04 Thread Sam Barnum
I'm designing a WO app where multiple clients maintain their own discreet sets of data. However, I'd like to keep everything in a single database. Certain entities are "global", meaning shared among all clients. A good example would be a table containing status names for jobs. This is

Re: Looking for an update foo set bar = bar + 1 solution for WO

2007-08-17 Thread Sam Barnum
You might consider using a trigger. I personally have never used them, but this sounds like a reasonable place to do so. On Aug 17, 2007, at 10:36 AM, Chuck Hill wrote: Hi Pierre, On Aug 17, 2007, at 5:38 AM, Pierre Bernard wrote: Hi Chuck! You might want to simulate this using an attrib

[OT] Product Recommendations

2007-07-12 Thread Sam Barnum
avadoc files on your computer. I've got it set to index the J2SE API and the WebObjects API. Apple-space brings it up, and then typing "NSMUTAA" [return] opens the javadoc for NSMutableArray in Safari. Very very handy. -- Sam Barnum 360 Works http://www.360works.com 415.8

Re: EOAttribute.validateValue question

2007-07-11 Thread Sam Barnum
And if you're considering rolling your own CSV parser, I'd recommend using this instead: http://opencsv.sourceforge.net/ It handles the escaping of quotes correctly, and commas inside quoted values. I've had good luck with it, except from a client who can't seem to reliably generate a cor

Re: EOAndQualifier order

2007-07-11 Thread Sam Barnum
I seem to recall reading something similar on the mysql lists. I am quite certain that the order of the fields in an index is critical, particularaly if you're sorting or grouping results. Just got done optimizing some queries, so I'll just paste some notes in here: When a query includes a

Re: Unable to create page 'IIxrY0tStknjYQDhjDa6s0'

2007-07-06 Thread Sam Barnum
Do you get this problem during development or in deployment? If it's deployment, I've seen it caused by spiders. use a robots.txt as mentioned previously. If you're seeing it on-screen after clicking on something, it's probably a badly formed hyperlink. On Jul 6, 2007, at 11:34 AM, Mike

Not an Eclipse Plugin

2007-07-05 Thread Sam Barnum
I'd like to vote for this method, not all of us use Eclipse. We have 4 WO developers, and we use IntelliJ. On Jul 5, 2007, at 5:30 AM, Mike Schrag wrote: If we built a WOBuilder, we would really only build one that I would use, too, so it has to not suck (this quite possibly means such an

Re: Is WO dead?

2007-05-21 Thread Sam Barnum
Wicket is really sweet. I'd just like to toss in a recommendation (shameless plug, actually) for IntelliJ with IntelliWO plugin. This still relies on the WO dev tools, however, just not XCode. On May 20, 2007, at 2:57 AM, Bruce Fancher wrote: Whatever you do, don't learn JSP aka the evil s

Re: Using Links for submitting forms

2007-03-12 Thread Sam Barnum
One more suggestion that I haven't seen yet: use a You can style this however you want with CSS, and put an image inside the tag like so: May not be supported by older browsers, but at least your site won't break if javascript is off. Alternately, make liberal use of the tag. On Ma

Re: what to do with the key

2007-03-05 Thread Sam Barnum
Using display:none causes the browser (Safari, anyway) to ignore the button when it's looking for the first submit button in a form. style="visibility:hidden" does not have this behavior. Probably the best way to ensure it doesn't mess up your layout is to give it a position:fixed attribute.

Re: what to do with the key

2007-03-05 Thread Sam Barnum
of all qty fields, or something. This might be a good approach to use as a fallback with the javascript mentioned by Ian. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Mar 4, 2007, at 4:43 PM, Ian Joyner wrote: This is what I do. You need to attach a little bit of Jav

Re: WebObjects take on GWT?

2006-10-19 Thread Sam Barnum
I've just been checking this out too (partly because of the new IntelliJ plugin for GWT).Pros:* I'm pretty impressed with the code translation, and shudder to think about trying to hand-code some of the _javascript_ that this thing does.* I particularly like the Timers, for animated stuff.* I wasn'

Re: Eclipse / wolips / X-Code –– Baffled user of D2WS

2006-10-16 Thread Sam Barnum
IntelliJ also works nicely for WO development, although we tend to run XCode in the background for binding support in WOBuilder, although most of the time that isn't really necessary.On Oct 16, 2006, at 1:59 PM, Gordon Maynard wrote:Hi,May I ask a slightly different question, what is the recommende

Re: constructing a url...

2006-09-25 Thread Sam Barnum
So the actual JFreeChart graph is not displayed in an HTML page, but as a swing component, correct? I think you're probably going to need to go with DirectActions. Because component actions depend on a context object. That, or you'll need to pass in the WOContext (or a context ID) to the

Re: whywebobjects.org - WWDC followup [and URLs]

2006-08-18 Thread Sam Barnum
I like it but it's a little long... how about: WayToWo (or Way2WO) MoWo! Forget about cowbell, what it really needs is some mo' wo -Sam On Aug 17, 2006, at 10:48 AM, lbland wrote: On Aug 16, 2006, at 3:33 PM, Pascal Robert wrote: That's a good name :-) Or maybe "WebObjects' Not Rails" o

Re: Simple Search

2006-07-17 Thread Sam Barnum
I'd recommend doing your search directly on the database using an EOQualifier, then set the found set for the display group.  One of the easiest ways of doing this is via a named fetch spec in EOModeler.For example, create a named fetch spec called "QuickSearch" in EOModeler, which searches all sor

Re: WWDC WO Meet

2006-07-12 Thread Sam Barnum
I'm not attending, but live in SF, so I'll try to go (if it's not going to be too crowded!). Someone ought to start an evite for this, it'd be much easier to keep track of. On Jul 10, 2006, at 10:52 AM, Pascal Robert wrote: Monday would be fine After adding my votes to either Mon or We

Re: How to skip items in a WORepetition ?

2006-06-30 Thread Sam Barnum
I'd recommend filtering the item in the java code.  You can use an EOQualifier to do this rather easily.For example, to filter out items whose "status" attribute value is "hidden", you could use something like the following:public NSArray filteredItems() { return EOQualifier.filteredArrayWithQualif

Re: Fast tree scan

2006-05-31 Thread Sam Barnum
Arr, and don't forget to set the last batch once the loop is closed. On May 31, 2006, at 8:47 AM, Sam Barnum wrote: The solution is to fetch all objects with a single fetch, then populate the "child" relationships for records from the bottom up, by examining the to-one pare

Re: Fast tree scan

2006-05-31 Thread Sam Barnum
ng it be seen as an edit by EOF. On May 31, 2006, at 8:47 AM, Sam Barnum wrote: The solution is to fetch all objects with a single fetch, then populate the "child" relationships for records from the bottom up, by examining the to-one parent relationship of each EO. Since

Re: Fast tree scan

2006-05-31 Thread Sam Barnum
The solution is to fetch all objects with a single fetch, then populate the "child" relationships for records from the bottom up, by examining the to-one parent relationship of each EO. Since it's a to- one relationship, the faults will pull from the cache, and since you've fetched all EOs,

Re: auto-zip on upload

2006-05-31 Thread Sam Barnum
I don't think you'll have much luck doing dynamic zipping on the upload side, browsers don't give you much control over file inputs, for security reasons.  You could write an applet that does this, where you drag a file or directory onto the applet, which zips it and sends it to a DirectAction or s

Re: multiple submit - possible workaround advice

2006-04-26 Thread Sam Barnum
You can also use a regular submit button and hide it using CSS. Make this the first button in your form: style="position:fixed;visibility:hidden;"/> Pressing enter will now trigger this button, which isn't dynamic, so shouldn't do anything (as long as the form action is not set).

Re: Filemaker und WebObjects?

2006-03-01 Thread Sam Barnum
ooF seems to conflict with Axis - I was able to resolve this problem by installing the other three Xerces libraries from 2.7.1. My web services calls worked properly after that, as did WooF. All in all though, if the above are addressed, Woof7 is definitely going to be a great addi

Re: Filemaker und WebObjects?

2006-02-17 Thread Sam Barnum
If you run into any other issues with Filemaker, please post them here or send email to the WooF support team, we'll do our best to get them answered. Since WooF7 uses XML to query the database, there are some unexpected issues with regards to speed and equality searches. Doing an equals

Re: Overriding WODisplayGroup methods

2005-12-16 Thread Sam Barnum
Or, save a lot of the complexity and instead of binding your hyperlink/button to the displaygroup.displayNextBatch, create a new component-level action called 'displayNextBatch' and bind it to that. This method does the requisite checks, and call the displayNextBatch() method in display gr

Re: images in database... a suggestion

2005-12-11 Thread Sam Barnum
I've used a hybrid approach before. Images are stored in the database, but "cached" and served from the filesystem. That way, if you wipe out the filesystem or install on a new machine, the images are written to the filesystem again and served from there. On Dec 9, 2005, at 11:53 AM, [EMAI

Re: Unit testing

2005-11-07 Thread Sam Barnum
Slightly different topic, but how do you write tests at the component level? My WOComponent classes need a WOContext in the constructor. And there needs to be a running applicaiton, or else you run into NullPointerExceptions. I can fake a WOContext by manually creating a WORequest with th