WOLips resolving methods in the class hierarchy

2007-06-05 Thread Edgar Ra. Klein
Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in the model files. I have generated _Class and Class-files using eogenerator. Now I have an instance of e.g. Author object, let say author, using in my component and refer to it in the .wod file li

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Daniele Corti
2007/6/5, Edgar Ra. Klein <[EMAIL PROTECTED]>: Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in the model files. I have generated _Class and Class-files using eogenerator. Now I have an instance of e.g. Author object, let say author, using in my com

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Ulrich Köster
Moin Ed, we're using the Eclipse Java facility for it. You have to define your variable with the type. private Account account; (does work) private EOGenericRecord account; (doesn't work) Uli Am 05.06.2007 um 09:22 schrieb Edgar Ra. Klein: Hi, I'm wondering whether I'm doing s.th. wrong

Apache FOP and & in strings

2007-06-05 Thread WO Dev
Hello, I couldn't find the answer on the FOP archives, so I'm posting to this list as some of you know FOP (a lot better than me;)) I'm trying to figure out how to make a pdf using FOP... Well actually I think I'm pretty close, but I don't even know how it looks like as there's still one cr

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Edgar Ra. Klein
On 05.06.2007, at 09:36, Daniele Corti wrote: 2007/6/5, Edgar Ra. Klein <[EMAIL PROTECTED]>: Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in the model files. I have generated _Class and Class-files using eogenerator. Now I have an instance of e.g.

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Edgar Ra. Klein
On 05.06.2007, at 10:19, Ulrich Köster wrote: Moin Ed, we're using the Eclipse Java facility for it. You have to define your variable with the type. private Account account; (does work) I use it as you suggest private EOGenericRecord account; (doesn't work) To be honest, I never trie

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Edgar Ra. Klein
On 05.06.2007, at 11:13, Edgar Ra. Klein wrote: On 05.06.2007, at 09:36, Daniele Corti wrote: 2007/6/5, Edgar Ra. Klein <[EMAIL PROTECTED]>: Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in the model files. I have generated _Class and Class-file

Re: Primary Key Generation with MySQL and EOF?

2007-06-05 Thread Cheong Hee (Datasonic)
I don't know what is causing you the primary key generation problem. I probably hit similar problem before but could not recall : (.. I am using the following combination and it works well for me at the moment. You may want to cross-check if this could be of help: WO5.2.4/ Connector-J v3.1.

Re: Apache FOP and & in strings

2007-06-05 Thread Jean-François Veillette
Here is a method that 'escape' some chars. We call this method before inserting a string (comming from an eo attribute for example) into a fo-xml stream. static public String transformeCaracteresSpeciaux(String chaine) { if (chaine != null) { Str

Re: Apache FOP and & in strings

2007-06-05 Thread Oliver Egger
hi what is the encoding of your xml file (or xsl) and/or the fop exception? maybe you can try to replace the & with the encoding " ? oliver On 6/5/07, WO Dev <[EMAIL PROTECTED]> wrote: Hello, I couldn't find the answer on the FOP archives, so I'm posting to this list as some of you know FOP (

Re: Making a WO app look pretty

2007-06-05 Thread Jerry W. Walker
Hi, Janine, The advice you've gotten is good advice but may be a bit hard to chew on your first WO app. To make it easier, I'm providing a sample textual schematic of a simple WO application with: * a page header * a page footer * a page wrapper (that invokes the header, the foote

Re: D2W and Direct Actions

2007-06-05 Thread Pascal Robert
Le 07-06-04 à 09:44, Guido Neitzer a écrit : On 03.06.2007, at 23:56, Denis Frolov wrote: Well, in our case we need to create sessions because we want to use D2W for everything since it makes development easier, allows larger portions of Wonder code being reused, and makes code base more

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Mike Schrag
What wolips install site and version are you using? When did you last update? ms On Jun 5, 2007, at 3:22 AM, Edgar Ra. Klein wrote: Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in the model files. I have generated _Class and Class-files usi

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Edgar Ra. Klein
On 05.06.2007, at 14:17, Mike Schrag wrote: What wolips install site and version are you using? When did you last update? I use http://webobjects.mdimension.com/wolips/nightly and updated it about 6 hours ago. Ed ms On Jun 5, 2007, at 3:22 AM, Edgar Ra. Klein wrote: Hi, I'm wonder

Re: Apache FOP and & in strings

2007-06-05 Thread WO Dev
Hello Jean-François, Actually if I try to escape the &, it displays the "&" inside the pdf like "me & you" ... So it doesn't work:( Xavier Here is a method that 'escape' some chars. We call this method before inserting a string (comming from an eo attribute for example) into a fo-xml str

Re: Apache FOP and & in strings

2007-06-05 Thread WO Dev
Actually I'm passing utf-8 strings into fop, the the fop xml file is declared as iso-8859-1: and if I try to declare it using utf-8 like I got: Start creating file [ERROR] Logger not set [WARNING] Screen logger not set - Using ConsoleLogger. [INFO] Using org.apache.xerces.parsers.SAXPar

Re: My first web app... (still)

2007-06-05 Thread Ken Anderson
Mac, Since it seems you're doing a new fetch every time the main page is displayed, I cannot fathom a good reason why you're not seeing all the tags. Have you determined whether or not the fetch is actually returning all the expected objects? I would do a couple of things: 1) Make sure

Re: Making a WO app look pretty

2007-06-05 Thread Kieran Kelleher
Marinating it and letting it soak in a bit first makes it easier to chew ;-) On Jun 5, 2007, at 7:18 AM, Jerry W. Walker wrote: The advice you've gotten is good advice but may be a bit hard to chew on your first WO app. ___ Do not post admin requ

Re: D2W and Direct Actions

2007-06-05 Thread Sigurður E. Vilhelmsson
2007/6/5, Pascal Robert <[EMAIL PROTECTED]>: It's just me, or every WO developer seems to have developed a CMS ? I can't count how many people has said that they have a custom CMS done with WO :-) ___ I've also noticed that. It would be great to have

Re: D2W and Direct Actions

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 6:57 AM, Sigurður E. Vilhelmsson wrote: 2007/6/5, Pascal Robert <[EMAIL PROTECTED]>: It's just me, or every WO developer seems to have developed a CMS ? I can't count how many people has said that they have a custom CMS done with WO :-) I've also noticed that. It would be

Missing class after restore

2007-06-05 Thread Ken Anderson
Everyone, I had to restore my development system from a backup, and a few things aren't working very well. In particular, EOModeler and EOGenerator won't run, and both complain: java.lang.UnsatisfiedLinkError: no expressionextensionsjava in java.library.path Does anyone know where this

Re: D2W and Direct Actions

2007-06-05 Thread Guido Neitzer
On 05.06.2007, at 05:47, Pascal Robert wrote: It's just me, or every WO developer seems to have developed a CMS ? I can't count how many people has said that they have a custom CMS done with WO :-) I guess it is a very common thing for WO developers to develop a CMS ... ;-) It's my third

Re: Missing class after restore

2007-06-05 Thread Chuck Hill
I have never seen that. Where is that from? Anything else in the Console? Chuck On Jun 5, 2007, at 9:01 AM, Ken Anderson wrote: Everyone, I had to restore my development system from a backup, and a few things aren't working very well. In particular, EOModeler and EOGenerator won't ru

Re: Apache FOP and & in strings

2007-06-05 Thread Robert Walker
Since the above line is XML (XML/FO) the parser sees the "&" and will expect the following characters to be either a character reference or a XML entity. So when attempting to parse the string &1.jpg)"/> this is obviously invalid XML. So the & must be converted to it's entity represen

Re: Missing class after restore

2007-06-05 Thread Ken Anderson
Nothing on the console at all...here's the complete error: NSRuntime.loadLibrary(expressionextensionsjava) error. java.lang.UnsatisfiedLinkError: no expressionextensionsjava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.lo

OT: WWDC eTicket

2007-06-05 Thread Daniel Mischler
Hi all Sorry for this off topic message but I don't know any better place to put it (if you do please let me know). Due to some special circumstances I ended up with 2 eTickets for WWDC but can only use 1. Any interest? Please let me know directly at [EMAIL PROTECTED] Thanks, Daniel __

Re: Missing class after restore

2007-06-05 Thread Chuck Hill
Is Java up to date? Other than that, I am without a guess on this one. On Jun 5, 2007, at 9:25 AM, Ken Anderson wrote: Nothing on the console at all...here's the complete error: NSRuntime.loadLibrary(expressionextensionsjava) error. java.lang.UnsatisfiedLinkError: no expressionextensionsjava

Re: WOLips resolving methods in the class hierarchy

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 3:04 AM, Edgar Ra. Klein wrote: On 05.06.2007, at 11:13, Edgar Ra. Klein wrote: On 05.06.2007, at 09:36, Daniele Corti wrote: 2007/6/5, Edgar Ra. Klein <[EMAIL PROTECTED]>: Hi, I'm wondering whether I'm doing s.th. wrong or WOLips just cannot resolve some methods in th

Re: My first web app... (still)

2007-06-05 Thread Chuck Hill
On Jun 4, 2007, at 10:14 PM, Mac Campbell wrote: Hello all, Maybe you can help me out with another question... I am working on a blog app as my first app... I have 3 major outstanding issues the major one that I am most lost on is... my tag system does not increment the tag counts right a

Re: Missing class after restore

2007-06-05 Thread Ken Anderson
I reinstalled the WebObjects.mpkg and now it's ok... On Jun 5, 2007, at 12:42 PM, Chuck Hill wrote: Is Java up to date? Other than that, I am without a guess on this one. On Jun 5, 2007, at 9:25 AM, Ken Anderson wrote: Nothing on the console at all...here's the complete error: NSRuntime

Re: D2W and Direct Actions

2007-06-05 Thread Anjo Krank
Am 03.06.2007 um 10:29 schrieb Denis Frolov: Another idea is using one common session for all the spiders. It should be pretty easy to add a method to Browser object like "isRobot()" which checks user agent against a known list of spiders and use this method to feed one session to all the

How to fetch Null objects

2007-06-05 Thread Ted Archibald
Is there a more elegant way of trying to fetch null objects? Currently I have an object 'Posting' with a fetch spec 'fetchNullPostingForMonth' with the qualifier '(objectIDPostingsForMonth = nil)' Then in my code I have: NSArray results = EOUtilities.objectsWithFetchSpecificationAndBindings( ec

Re: How to fetch Null objects

2007-06-05 Thread Ted Archibald
I forgot to mention that "objectIDPostingsForMonth" is a foreign key and the relationship in the entity Posting is called "postingsForMonth" On 6/5/07, Ted Archibald <[EMAIL PROTECTED]> wrote: Is there a more elegant way of trying to fetch null objects? Currently I have an object 'Posting' wit

Re: How to fetch Null objects

2007-06-05 Thread Kieran Kelleher
In code, you can use EOKeyValueQualifier with a value of NSKeyValueCoding.NullValue which is a substitute for null where null cannot be used in Apple's frameworks. On Jun 5, 2007, at 5:13 PM, Ted Archibald wrote: Is there a more elegant way of trying to fetch null objects? Currently I have

Re: How to fetch Null objects

2007-06-05 Thread Chuck Hill
What do you mean by "null objects"? Objects with a specific attribute that is null? With a to-one relationship that has no object in the destination? With a to-many that has no objects in the relation? Something else? Chuck On Jun 5, 2007, at 2:13 PM, Ted Archibald wrote: Is there a

Re: How to fetch Null objects

2007-06-05 Thread Pierre Bernard
new EOKeyValueQualifier( "postingsForMonth" /* let EOGenerator create a constant */, EOQualifier.QualifierOperatorEqual, NSKeyValueCoding.NullValue); Pierre Bernard Houdah Software s.à r.l. On Jun 5, 2007, at 11:17 PM, Ted Archibald wrote: I forgot to mention that "objec

Re: How to fetch Null objects

2007-06-05 Thread Chuck Hill
Something just feels wrong here with Ted's code. On Jun 5, 2007, at 2:38 PM, Pierre Bernard wrote: new EOKeyValueQualifier( "postingsForMonth" /* let EOGenerator create a constant */, EOQualifier.QualifierOperatorEqual, NSKeyValueCoding.NullValue); postingsForMonth sou

Is it possible to deploy on OS X Client?

2007-06-05 Thread Janine Sisk
I'm not so concerned about the legalities, as this is mostly a learning exercise. But is it possible, and has anyone documented the differences from deploying on Server? I know there has been discussion about this before, but Google isn't finding it for me. thanks, janine __

Re: Making a WO app look pretty

2007-06-05 Thread Janine Sisk
Thanks to Jerry and everyone else who replied and sent sample code! Fortunately this is one of the few concepts I've encountered in WO World which was actually familiar; I've used a very similar sort of nested templating in the past. I really appreciate all the help, though - this communi

Re: Is it possible to deploy on OS X Client?

2007-06-05 Thread Pascal Robert
Le 07-06-05 à 19:00, Janine Sisk a écrit : I'm not so concerned about the legalities, as this is mostly a learning exercise. But is it possible, and has anyone documented the differences from deploying on Server? I know there has been discussion about this before, but Google isn't findin

Re: Is it possible to deploy on OS X Client?

2007-06-05 Thread Ian Joyner
Hi Janine, Yes we do it for sales demos, etc. We just load the developer tools on client machine and can run it from there. It's a bit of a pain though, and perhaps some better gurus on this list can give you a simpler, more minimalistic way. Ian On 06/06/2007, at 9:00 AM, Janine Sisk wr

Re: Is it possible to deploy on OS X Client?

2007-06-05 Thread Janine Sisk
On Jun 5, 2007, at 4:34 PM, Pascal Robert wrote: The main difference is that Monitor and wotaskd can be started from Server Admin and launchd on Server, on OS X "Client", you can it with /System/Library/StartupItems/WebObjects. You also need to install WO on "client", deployment stuff is a

Re: Is it possible to deploy on OS X Client?

2007-06-05 Thread Chuck Hill
For "not really a server" deployments I do. If you are serving from a client machine (e.g. not at your desk), I feel better about making an appserveruser. Chuck On Jun 5, 2007, at 4:55 PM, Janine Sisk wrote: On Jun 5, 2007, at 4:34 PM, Pascal Robert wrote: The main difference is that Mo

Re: Is it possible to deploy on OS X Client?

2007-06-05 Thread Lachlan Deck
Hi there, On 06/06/2007, at 9:34 AM, Pascal Robert wrote: Le 07-06-05 à 19:00, Janine Sisk a écrit : I'm not so concerned about the legalities, as this is mostly a learning exercise. But is it possible, and has anyone documented the differences from deploying on Server? I know there has

RE: My first web app... (still)

2007-06-05 Thread Mac Campbell
Chuck your brilliant,I apologize for not picking up on this sooner, I have stepped away from this project for at least a few months, so now I am coming back to it and ... learning as I go again...Chuck is absolutely right it has to do with my method of inserting the tags... below is an excerpt f

Controlling request/response timeout per request handler?

2007-06-05 Thread Lachlan Deck
Hi there, I realise that you can adjust the adaptor's request/response timeout settings in Java Monitor (for the WODefaultAdaptor) - but I'm wondering if it's possible to adjust the timeout depending on the request handler? I'm wondering about turning the timeout up significantly for we

Re: Controlling request/response timeout per request handler?

2007-06-05 Thread Chuck Hill
You could probably do it you want to hack on the C code of the woadaptor... Where / how is it timing out? Uploads should not be a problem. Either they get accumulated in the webserver and send over in one blast, in which case the connect and receive should be quick, or they get streamed

So close...

2007-06-05 Thread Janine Sisk
Ok, I got JavaMonitor and wotaskd running, and my app configured, and life is almost good. But there's one small problem - my images don't show up. I didn't really know what to do with the images in the first place; all the docs I could find on this were geared towards Xcode and it's ta

Re: My first web app... (still)

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 6:29 PM, Mac Campbell wrote: Chuck your brilliant, I apologize for not picking up on this sooner, I have stepped away from this project for at least a few months, so now I am coming back to it and ... learning as I go again... Chuck is absolutely right it has to do wit

Re: Controlling request/response timeout per request handler?

2007-06-05 Thread Lachlan Deck
On 06/06/2007, at 11:54 AM, Chuck Hill wrote: You could probably do it you want to hack on the C code of the woadaptor... Where / how is it timing out? Uploads should not be a problem. Either they get accumulated in the webserver and send over in one blast, in which case the connect and r

Re: My first web app... (still)

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 7:46 PM, Mac Campbell wrote: No I haven't added any custom code to BlogEntrys for mainpulating tags... I just have the standard methods that where created using EOModeler... Attached is a screen shoot of my relationships (is this how people usually share this info?)

RE: My first web app... (still)

2007-06-05 Thread Mac Campbell
Wow... I can't believe I did not see this! This drove me crazy for a good embarrising while! And I banged my head against it thinking it was some strange intricacy of WebObjects and many to many relationships... and really all along it was just a gaping hole in my logic! :o|Thanks Chuck that wa

Re: My first web app... (still)

2007-06-05 Thread Chuck Hill
Chuckle. Happy to hear that you are back on track! Chuck On Jun 5, 2007, at 9:39 PM, Mac Campbell wrote: Wow... I can't believe I did not see this! This drove me crazy for a good embarrising while! And I banged my head against it thinking it was some strange intricacy of WebObjects and m

RE: Controlling request/response timeout per request handler?

2007-06-05 Thread Andrew Lindesay
Hello Lachlan; I'm wondering about turning the timeout up significantly for webservice uploads of binary data but accepting the default values for other requests. Any ideas or alternatives? For uploads, I tend to undertake this with a large number of small requests that all append their bit

Re: So close...

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 7:00 PM, Janine Sisk wrote: Ok, I got JavaMonitor and wotaskd running, and my app configured, and life is almost good. But there's one small problem - my images don't show up. I didn't really know what to do with the images in the first place; all the docs I could fi

Re: So close...

2007-06-05 Thread Janine Sisk
On Jun 5, 2007, at 9:52 PM, Chuck Hill wrote: So I created a package for them A package? You mean a folder? No, a package. Same as the one I created for the java files. It was just a guess, but it seemed to work at the time. All the docs I could find talk about Xcode and using a pa

Re: So close...

2007-06-05 Thread Chuck Hill
On Jun 5, 2007, at 10:22 PM, Janine Sisk wrote: On Jun 5, 2007, at 9:52 PM, Chuck Hill wrote: So I created a package for them A package? You mean a folder? No, a package. Same as the one I created for the java files. It was just a guess, but it seemed to work at the time. All the

Re: Nested Editing Contexts

2007-06-05 Thread Paul Lynch
On 31 May 2007, at 07:34, Jean Pierre Malrieu wrote: This as not always been so clear. In Apple's WO formation support material (around 2002), they did talk about a method of dealing with object editing and backtracking: they call it "deferred insertion". Basically, they say you can set at