EOQualifier-relations

2006-09-27 Thread Frank Stock
Hello,I have made a construction with EOQualifier here is my QualifierString:(languagesavedtemplate.language=%@) and ((name caseInsensitiveLike %@) OR(languagesavedtemplate.savedtemplatedescription caseInsensitiveLike %@))  AND(usersavedtemplate.user=%@) AND(usersavedtemplate.user.usernode.node=sav

Re: Help - Relationships, Bindings, w/Full Text Search

2006-09-27 Thread Drew Thoeni
Yep. That does it. I missed that in the docs. Was looking at objectFromRawRow. Works like advertised. Thanks Paul and Chuck. Drew On Sep 27, 2006, at 10:29 AM, Paul Lynch wrote: On 27 Sep 2006, at 14:29, Drew Thoeni wrote: I implemented objectFromRawRow and am baffled by this exception:

Re: Converting a .strings text file to a NSArray or NSDictionary

2006-09-27 Thread Gavin Eadie
At 9:08 PM +0200 9/27/06, Dev WO wrote: What would be the best way to approach this? and maybe some pointer for the following steps;) ... I always find that reading the Jakarta Commons code inspires me! In this case I would look at PropertyListConfiguration class in the commons-configuration

Re: Newbie : Upload file to database Method

2006-09-27 Thread John Larson
Gilles, I think I get what you're asking . . . WOFileUpload is responsible for getting the file from the client browser into a NSData field in your application. (In this case it looks like it is called aFileMp3.) The file on the client browser becomes a data stream upon transmission from

Newbie : Upload file to database Method

2006-09-27 Thread Gilles MATHURIN
Hello list i look at the Developper example application who demonstrates the creation and use of WOFileUpload elements. It says that this element allows you to transport files from client machines to your application server. My question is : Does that mean either "transport" to the databas

Duplicate entry [ was addObjectsToBothSide... not really both side]

2006-09-27 Thread Dev WO
Hi, I though everything was good with my oneToOne (pk to pk) relationship, but not completely in fact. So A and B have a relationship joining their pk. But B can be "alone", which means I can have B object without A object. So it happens that sometimes, when creating a A object (which will

Re: WOFileUpload and WOLongResponsePage

2006-09-27 Thread Chuck Hill
Mostly wild guesses... On Sep 27, 2006, at 3:09 PM, David Holt wrote: Hi everyone, I really hate asking this because it seems like it has been asked frequently on the lists. I have been using Jonathan Rochkind's solution for the past year or two, but I am no longer streaming to a path o

Re: Knowing if a session exists

2006-09-27 Thread Chuck Hill
HI Miguel, You want this WOAction (super class of WODirectAction) method: public WOSession existingSession() Restores the session based on the request. If the request did not have a session ID or the session ID referred to a non-existent session, then this method returns null. To determine

Knowing if a session exists

2006-09-27 Thread Miguel Arroz
Hi! I need to make a small security check at a Direct action, and that is, making sure that a session (given by the "wosid" parameter in the request) exists. First, I'm assuming that if the URL has the "wosid" parameter, the load balancer point me to the right instance... right!? Second

WOFileUpload and WOLongResponsePage

2006-09-27 Thread David Holt
Hi everyone, I really hate asking this because it seems like it has been asked frequently on the lists. I have been using Jonathan Rochkind's solution for the past year or two, but I am no longer streaming to a path on the file system, and it doesn't serve for uploading into the database.

Re: EO/Java class default Values

2006-09-27 Thread Chuck Hill
On Sep 27, 2006, at 1:49 PM, Zak Burke wrote: Tarun Reddy wrote on 9/27/06 4:18 PM: I assume that awakeFromInsertion (based on the name) does not execute until the actual insertion of the object in the database, which means I can't rely on the value until the object has been saved. I am cu

Re: EO/Java class default Values

2006-09-27 Thread Tarun Reddy
On Wed, 2006-09-27 at 16:27 -0400, David LeBer wrote: > On 27-Sep-06, at 4:18 PM, Tarun Reddy wrote: > > > I assume that awakeFromInsertion (based on the name) does not execute > > until the actual insertion of the object in the database, which > > means I > > can't rely on the value until the o

Re: EO/Java class default Values

2006-09-27 Thread Zak Burke
Tarun Reddy wrote on 9/27/06 4:18 PM: > I assume that awakeFromInsertion (based on the name) does not execute > until the actual insertion of the object in the database, which means I > can't rely on the value until the object has been saved. I am currently > using the method to store creation date

Re: EO/Java class default Values

2006-09-27 Thread David LeBer
On 27-Sep-06, at 4:18 PM, Tarun Reddy wrote: I assume that awakeFromInsertion (based on the name) does not execute until the actual insertion of the object in the database, which means I can't rely on the value until the object has been saved. I am currently using the method to store creati

Re: EO/Java class default Values

2006-09-27 Thread Tarun Reddy
Hmm... I guess I knew that. I switched to using createAndInsertInstance everywhere for that reason. I didn't see far enough that behind the scenes it is doing a new Idea() and then adding it to the context. Of course by the time it does the insert, the value is set in the constructor. I assume tha

Re: EO/Java class default Values

2006-09-27 Thread Tarun Reddy
Hmm... I guess I knew that. I switched to using createAndInsertInstance everywhere for that reason. I didn't see far enough that behind the scenes it is doing a new Idea() and then adding it to the context. Of course by the time it does the insert, the value is set in the constructor. I assume tha

Re: Transitive dependencies for WebObjects libs

2006-09-27 Thread Henrique Prange
Hi Chuck, I’m installing WebObjects libs into a local maven repository. As maven 2 allows describing transitive dependencies for a JAR, I started to do that with WO libs. I have asked to avoid waste of time (if a list of transitive dependencies already exists in some place, for instance). No

Re: Converting a .strings text file to a NSArray or NSDictionary

2006-09-27 Thread Chuck Hill
On Sep 27, 2006, at 12:08 PM, Dev WO wrote: Hi Chuck:) Check that the strings file has {...} around it like this: { key1="value one"; key2="value two"; } Actually this is correct. Meaning that is they way they are already? If so, NSPropertyListSerialization will handle

Re: Converting a .strings text file to a NSArray or NSDictionary

2006-09-27 Thread Dev WO
Hi Chuck:) Check that the strings file has {...} around it like this: { key1="value one"; key2="value two"; } Actually this is correct. It seems I have to implement a complete parser for my .strings files. I'll most probably be using it quite often, so I'm ready to invest

Re: constructing a url...

2006-09-27 Thread James Cicenia
OK! I figured it out After learning about invokeAction (thanks Chuck) things started to fall in place. However, I had placed an errant "#" in the href of the generated image map. After analyzing the urls I noticed that, took it off, and now everything works great. Any method of popup c

Re: constructing a url...

2006-09-27 Thread Chuck Hill
If I am understanding you (James), then Mark's approach seems like the right one. I have some something similar integrating WO with an EditLiveJava! popup to edit a text area on the page (this is from the popup window):