Re: WOXMLDecoder and mapping files

2006-02-17 Thread Ken Anderson
Actually, it was contentsKey='key' that I was looking for...  but thanks!KenOn Feb 17, 2006, at 5:57 PM, Robert Walker wrote:Ken,Did you try adding the attribute="YES" in your mapping file as in this line from the following XML?...     ...XML:                  Ringle        1989-12-07 23:46:11 Etc/

Re: Postgresql + booleans = error

2006-02-17 Thread Francis Labrie
Hi, Lachlan Deck wrote: [...] Boolean value; value = rec.campsiteFri(); if (value != null && value.booleanValue()) { ... } Don't forget to test for nulls. Otherwise the next exception you get will be a NullPointerException. Or you can even avoid this null pointer test with this:

Re: Efficient qualifier for to-many relationships?

2006-02-17 Thread Arturo Pérez
IIRC, we used that hint under 4.5. -arturo On Feb 17, 2006, at 7:24 PM, Ken Anderson wrote: Art, Since Ondra's on 4.5, it's not deprecated (yet anyway). And I'm not sure 4.5 handles that hint... Ken On Feb 17, 2006, at 6:43 PM, Art Isbell wrote: On Feb 17, 2006, at 12:18 PM, Ken Ander

Re: Postgresql + booleans = error

2006-02-17 Thread shaun
Hi, On Sat, 2006-02-18 at 12:53 +1100, Lachlan Deck wrote: > Hi there, > > further to the other's suggestions... > > On 16/02/2006, at 2:40 AM, Randall Perry wrote: > > > I used eomodeler to generate the model and EO classes from a > > Postgresql db. > > I'm having a problem using the boolean

Re: Postgresql + booleans = error

2006-02-17 Thread Lachlan Deck
Hi there, further to the other's suggestions... On 16/02/2006, at 2:40 AM, Randall Perry wrote: I used eomodeler to generate the model and EO classes from a Postgresql db. I'm having a problem using the boolean data type. If I reference a boolean field 'rec.campsiteFri()' like so: if (rec

Re: Efficient qualifier for to-many relationships?

2006-02-17 Thread Ken Anderson
Art, Since Ondra's on 4.5, it's not deprecated (yet anyway). And I'm not sure 4.5 handles that hint... Ken On Feb 17, 2006, at 6:43 PM, Art Isbell wrote: On Feb 17, 2006, at 12:18 PM, Ken Anderson wrote: In this case, I would use EOSQLQualifier. Something like: exists (select 1 from r

Repeated activation of refuse new sessions - Help

2006-02-17 Thread Mohapatra Ashish
Hi All, I am facing a problem with my WebObjects deployment: 1. Every day at around 3:30 PM, the refuse new sessions get activated automatically. 2. Auto Recover is on 3. Scheduling is distributed throughout the day for all instances and none is at 3:30 PM. 4. WODirectConnect launch parameter is f

Re: Efficient qualifier for to-many relationships?

2006-02-17 Thread Art Isbell
On Feb 17, 2006, at 12:18 PM, Ken Anderson wrote: In this case, I would use EOSQLQualifier. Something like: exists (select 1 from reltable where t0.primaryKey = reltable.foreignKey) Using t0 assumes standard EOF SQL generation and the target table should be the target of the query (not a

Re: WOXMLDecoder and mapping files

2006-02-17 Thread Robert Walker
Ken,Did you try adding the attribute="YES" in your mapping file as in this line from the following XML?...     ...XML:                  Ringle        1989-12-07 23:46:11 Etc/GMT                    Horror                          Mapping:                                                             

WOXMLDecoder and mapping files

2006-02-17 Thread Ken Anderson
I'm attempting to decode some XML using mapping models and WOXMLDecoder. The documentation is quite sparse. The documentation does not have an example to parse something like this: 2 Has anyone built a mapping file that works for this? The issue is the combination of a value along w

Re: Efficient qualifier for to-many relationships?

2006-02-17 Thread Ken Anderson
Ondra, In this case, I would use EOSQLQualifier. Something like: exists (select 1 from reltable where t0.primaryKey = reltable.foreignKey) Using t0 assumes standard EOF SQL generation and the target table should be the target of the query (not a relationship from something else). You

Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads

2006-02-17 Thread Helen He
OK, I will. Thank you and have a nice weekend. On Feb 17, 2006, at 4:23 PM, Chuck Hill wrote: Hi Helen, On Feb 17, 2006, at 1:04 PM, Helen He wrote: On Feb 17, 2006, at 1:55 PM, Chuck Hill wrote: On Feb 17, 2006, at 8:28 AM, Helen He wrote: In our WO application, we need to call a XML RPC

Efficient qualifier for to-many relationships?

2006-02-17 Thread Ondra Cada
Hello, this, I am afraid, is kind of EOF 101; still I haven't been able to find the answer on wodeveloper... thus, please, forgive the following question. I need an efficient qualifier to fetch all objects from entity A, whose to-many relationship to another entity is non-empty (i.e., t

Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads

2006-02-17 Thread Chuck Hill
Hi Helen, On Feb 17, 2006, at 1:04 PM, Helen He wrote: On Feb 17, 2006, at 1:55 PM, Chuck Hill wrote: On Feb 17, 2006, at 8:28 AM, Helen He wrote: In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we need to

Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads

2006-02-17 Thread Helen He
Hi, Chuck: Thanks very much for the responding!! On Feb 17, 2006, at 1:55 PM, Chuck Hill wrote: Hi Helen, On Feb 17, 2006, at 8:28 AM, Helen He wrote: In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we ne

Re: Sorting objects using my own criteria

2006-02-17 Thread Joe Moreno
Miguel, What type of criteria are you trying to sort by? Here's a code snippet if you wanted to sort a relationship. In this example there's a relationship between Cafe <--->> Menu public NSArray orderedMenus() { EOSortOrdering sortOrdering = new EOSortOrdering("ordering", EOSortOrdering.Compare

Re: Sorting objects using my own criteria

2006-02-17 Thread Chuck Hill
Create an NSComparator to do this. That gives you the full power of Java to do sorting. I usually make them a public inner class of the EO I am sorting. Then use the NSArray method sortedArrayUsingComparator or the NSMutableArray method sortUsingComparator to sort using an instance of yo

Sorting objects using my own criteria

2006-02-17 Thread Miguel Arroz
Hi! This is probably a simple question, but I'm not finding an answer... how can I sort objects in memory using my own criteria? The alphabetic ordering is not enough... :) Yours Miguel Arroz "GUERRA E' PAZ LIBERDADE E' ESCRAVIDAO IGNORANCIA E' FORCA" -- 1984

Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads

2006-02-17 Thread Chuck Hill
Hi Helen, On Feb 17, 2006, at 8:28 AM, Helen He wrote: In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we need to update all the courses in our database, so we made a loop. What classes are you using to acces

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

Help with: org.apache.xmlrpc.XmlRpcException: out of threads

2006-02-17 Thread Helen He
Hi, Folks:In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we need to update all the courses in our database, so we made a loop. But when the service was called continuously about 30 times, an exception org.apache.xml

Re: wowebservice sessions

2006-02-17 Thread Mike Schrag
It is, in fact, still an applicable bug. One nice thing is that it is only a CLIENT bug, so you don't have to patch your WO server's axis.jar, just your client's. This bug has been open in Axis since 2003! On Feb 17, 2006, at 12:37 AM, Mike Schrag wrote: Responding to myself here :) I f

Re: pulling data from 2 tables

2006-02-17 Thread Jerry W. Walker
On Feb 17, 2006, at 7:20 AM, Ken Anderson wrote: You guys are like a married couple! No one would believe you live on opposite sides of the US! :) Heh, you've heard of Click and Clack, the Tappet Brothers? Just think of us as Revert and Reset, the Stack Brothers. Personally, I haven't y

Re: Custom Class Problems

2006-02-17 Thread Ken Anderson
OK David, so it seems like you have a type issue somewhere. Can you please post: 1. The section of Label.plist that deals with the part relationship 2. The code that's calling setPart. Is #2 being done with KeyValue Coding, or by calling the method? Or maybe by addObjectsToBothSidesOfRel

Re: pulling data from 2 tables

2006-02-17 Thread Ken Anderson
You guys are like a married couple! No one would believe you live on opposite sides of the US! :) On Feb 17, 2006, at 12:00 AM, Jerry W. Walker wrote: Hi, Jim & Chuck, On Feb 16, 2006, at 9:11 PM, Chuck Hill wrote: Hi Jim, On Feb 16, 2006, at 5:36 PM, Jim Wong wrote: oh... i have an en

Re: Practical EditingContext Design Question

2006-02-17 Thread jeremy . deroyer
Dears, Your help was great ! So I have to : - create one ordinary editing context per concurrent reader in my application. I may let application deal or not with caching - create one CooperatingEditingContext per contributor. Many thank's for your help, Jérémy Chuck Hill <[EMAIL PROTECTED]> a

Re: WebObjects 5.3.1 Redirect bug?

2006-02-17 Thread Dev WO
(Oops, hope this time the message is sent normally. Sorry) I've seen the same problem with WOHyperlink with a href and parameters (name prefixed with "?") in that case all the "&" have been replaced with "&". Just a quick note, what you are describing (& being replaced by & in hyperlink) is the

Re: Problem with page encoding

2006-02-17 Thread Dev WO
On Feb 16, 2006, at 6:58 PM, Peteris Krisjanis wrote: Thanks for clues to these pages. I did as it was asked, and WOMessage.setDefaultEncoding("UTF8") worked for some part - now all text written in WOComponent as in HTML works correctly. However, now I have problems with text in unicode fr

Re: Flattening attributes

2006-02-17 Thread Rico Landefeld
Ian Joyner schrieb: Just hit this same problem with flattened attributes myself. When inserting, it wanted to insert the target record of the flattening as well. I only wanted the flattened attribute to retrieve the attribute from the target record, so I just included it as a routine in the s