On Interfaces, EOModeler and Direct to Java Client

2006-04-20 Thread David Avendasora
Hi all, I have come up with a pretty good way to use EOModeler to manage Java Interfaces as well as normal classes. By using a combination of entries in the userInfo dictonary and EOGenerator custom templates I can get EOGenerator to generate interfaces properly and put the proper "implem

Re: [Newbie] WORepetition/Form submit question

2006-04-20 Thread Peter Vandoros
You should be able to do this if you have this repetition inside the form with one submit button that calls an action that saveChanges(). You shouldn't have to do anything special special. Make sure that the "userlist" array does not change between appendToResponse() and subsequent invokeActio

[Newbie] WORepetition/Form submit question

2006-04-20 Thread Lindsey Hotchkies
Hi, I am a newbie to webobjects and have run into an issue that does not seem to have much info out there. I am attempting to display a table/WORepetition inside a form where a user can edit all the item values and submit them to change the values in the database. So, the WORepetition list binding

Re: How to selectively save EO

2006-04-20 Thread Peter Vandoros
See comments below: Louis Demers wrote: Hi I would like to save newly created EO immediately but there could be other objects in the default EditingContext which I do not want to commit to the database immediately. My first attempt was to create a new short term EditignContext, insert my n

How to selectively save EO

2006-04-20 Thread Louis Demers
Hi I would like to save newly created EO immediately but there could be other objects in the default EditingContext which I do not want to commit to the database immediately. My first attempt was to create a new short term EditignContext, insert my newly created EO in it and call saveChanges

Re: Java 1.5 & WO?

2006-04-20 Thread lbland
On Apr 20, 2006, at 11:57 AM, Ray Kiddy wrote:One might observe that there is a class of bugs in Xcode where, if the project state gets "complicated" in certain ways, Xcode start behaving "oddly". It is difficult to get people to sign up to fix this sort of problem. There are always other problems

Re: Java 1.5 & WO?

2006-04-20 Thread Chuck Hill
Hi Ray, On Apr 20, 2006, at 11:57 AM, Ray Kiddy wrote: The Java update is probably not the problem. We have tested Direct to Java Client and Java Client with the Java 1.5.0 update. Not to split hairs ;-) but have you also tested the _rest_ of WebObjects? Can you say if it was all OK?

Re: Java 1.5 & WO?

2006-04-20 Thread Ray Kiddy
On Apr 20, 2006, at 10:47 AM, Ryan Poling wrote: Our project is a Java Client application (double clickable), and I found that the 1.5 update caused it to fail on build with an error "jam failed with exit code 1". Switching the symbolic link to 1.4.2 fixed the problem for me. -Ryan T

Re: Java 1.5 & WO?

2006-04-20 Thread Ryan Poling
Our project is a Java Client application (double clickable), and I found that the 1.5 update caused it to fail on build with an error "jam failed with exit code 1". Switching the symbolic link to 1.4.2 fixed the problem for me. -Ryan On Apr 19, 2006, at 3:39 PM, Owen McKerrow wrote: At

Re: Weird "No Instance Available" and its fix

2006-04-20 Thread Mike Schrag
I do think it's the same problem, but because it was a "permanent" issue with that box, bouncing Apache didn't fix it (once Apache restarted, it was still using bogus DNS info). "apachectl restart" is normally my savior for these as well. But yeah, I suspect the same fundamental problem h

Re: java 101 question "integer compare"

2006-04-20 Thread WebObjects
Mark and Alan, newDonor is a java.lang.Long <--- this is not Integer, but Long has a .compareTo() method as well. BUT still got same error. Took the advice that perhaps it's a primitive, went with this: if(newDonor.intGender().intValue() == 0) ...now life is good. The EO has this attribute as

Re: Weird "No Instance Available" and its fix

2006-04-20 Thread Miguel Arroz
Hi! It happens to me all the time, as I develop on a Powerbook that is connected to 2 or 3 different networks every day. I just pop up a terminal and "sudo apachectl restart" and everything is fine again. Yours Miguel Arroz On 2006/04/20, at 15:12, Mike Schrag wrote: Occasionally I r

Re: exec sp_password using rawRowsForSQL

2006-04-20 Thread Jerry Haynes
Patrick, your example got me thinking about some code I had used in the past. It works but I still do not get a result from this particular stored procedure. Other Sybase built-in stored procedures that I tried (sp_helpdb is one example) do return a result set. It's a in-house only project

Re: java 101 question "integer compare"

2006-04-20 Thread Mark Morris
Hello Bill, Is the intGender method returning an Integer, or (more likely) an int? If an int, then of course it isn't as object and therefor has no "compareTo" method. ;-) Regards, Mark On Apr 20, 2006, at 10:25 AM, WebObjects wrote: Perhaps it's an off-blend of coffee that is obscuring

Re: java 101 question "integer compare"

2006-04-20 Thread Alan Ward
System.out.println("newDonor is a " + newDonor.getClass().getName()); Regards, Alan On Apr 20, 2006, at 9:25 AM, WebObjects wrote: Perhaps it's an off-blend of coffee that is obscuring my vision, but why in the world would I be getting "cannot resolve symbol : method compareTo (java.lang.In

Re: Weird "No Instance Available" and its fix

2006-04-20 Thread Patrick Middleton
The computer on which an application is running needs to be identified in the communications between wotaskd and the application instances it manages because of configurations with multiple hosts. In the simplest configuration, Apache and JavaMonitor and wotaskd and all your applications wi

java 101 question "integer compare"

2006-04-20 Thread WebObjects
Perhaps it's an off-blend of coffee that is obscuring my vision, but why in the world would I be getting "cannot resolve symbol : method compareTo (java.lang.Integer)" when I know this object is an Integer. Is there a simple one-liner System.out.printlin statement that I can use to test the object

Re: Weird "No Instance Available" and its fix

2006-04-20 Thread Mike Schrag
Unfortunately this particular case wasn't solved by restarting ... I did a few desperate restarts of each individual piece during my flailing :) In this case DNS was just actually wrong and something in the chain of wotaskd/apache/woadaptor/mod_WebObjects/etc depended on it not being wrong

Re: Weird "No Instance Available" and its fix

2006-04-20 Thread Ken Anderson
Mike, When I do development on my laptop (with WOHost = localhost) and plug into someone else's network after sleeping, I find that: /System/Library/StartupItems/WebObjects/WebObjects restart works every time. That might help in your circumstance as well. Ken On Apr 20, 2006, at 10:12 AM,

Weird "No Instance Available" and its fix

2006-04-20 Thread Mike Schrag
Occasionally I run into something really odd, and I thought I'd pass along the solution in case someone else runs into it ... One of our clients is running a prototype WO app and launching it from Eclipse. Yesterday they changed the IP of that machine and all of a sudden, the app just give