Re: Re: Re: Database connection error (MYSQL)

2006-09-14 Thread Andrew Joso
Let me try to simplify my question. Thanks for those who reply. I really appreciated. 1) EO model can request data from the database 2) WO fails when it request data from the database, eventhough it use the same EO model 3) As I create new project, which use the same EO model, WO can request data

Re: Database connection error (MYSQL)

2006-09-14 Thread Simon Mclean
with 3.1.13 we have had no problems storing images in BLOB (ValueType C, ValueClass NSData). for large text documents we are using MEDIUMTEXT or LONGTEXT (ValueType S, ValueClass NSString). simon On 15 Sep 2006, at 04:01, Kieran Kelleher wrote: No issues with 3.1 driver and blobs? Long ti

Re: addObjectToBothSidesOfRelationshipWithKey still working?

2006-09-14 Thread Jean Pierre Malrieu
Le 15 sept. 06 à 01:53, Miguel Arroz a écrit : Hi! Don't have time to look at your code now, but i'm massively using addObjectToBothSidesOfRelationshipWithKey on 5.3.1 and I have no problem at all. Yours Miguel Arroz Me too. But I think my problems started with 3.3.2. JPM __

Re: Re: Database connection error (MYSQL)

2006-09-14 Thread Andrew Joso
Thank you very much for all the help. I've tried to do few things, but it still doesn't work. I'm using WO 5.2, I use mysqlconnector 3.1.12. I've also tried to use 3.0.17. The location of the MYSQL connector is at /Library/Java/Extensions. Another thing that I've tried is that I created a new pr

Re: Inter application comms

2006-09-14 Thread Jerry W. Walker
Hi, Jeff, I suggest that you look into Web Services. It is a very reasonable way to communicate data between two WO apps. It's easy to implement both the client and the server technology on your wo apps. You could probably choose which of your apps is the client and which is the server pr

Re: Database connection error (MYSQL)

2006-09-14 Thread Kieran Kelleher
No issues with 3.1 driver and blobs? Long time ago, maybe 6 mths or more, I found that the 3.1 driver on MySQL 4.1 did not read in blobs (used for serialized NSDictionary storage) properly but the 3.0 worked. I did not spend time investigating, but to move to MySQL 5.0, I would need to use

Re: Manual syncing question

2006-09-14 Thread Gary Teter
Ah. All my non-synchronizing components are also stateless. You could do something like this: public void appendToResponse (WOResponse aResponse, WOContext aContext) { super.appendToResponse(aResponse, aContext); reset(); } public void takeValuesFromRequest(WORequ

Re: Manual syncing question

2006-09-14 Thread Miguel Arroz
Hi! I tested reset, it's not called. By the documentation it's only called on stateless components. This is not a stateless component, it's just a normal (statefull) component with auto-synchronization turned off! :) Yours Miguel Arroz On 2006/09/15, at 02:36, Gary Teter wrote: If

Re: Manual syncing question

2006-09-14 Thread Gary Teter
If you do it this way, you'll also need: public void reset() { user = null; super.reset(); } On Sep 14, 2006, at 6:12 PM, Chuck Hill wrote: public User user() { if (user == null) user = (User)valueForBinding(USER_BINDING_NAME); return user; } Not one one, but one impor

Re: Manual syncing question

2006-09-14 Thread Miguel Arroz
Hi! Doesn't work, the user is always the same! :) The problem is that WO is reusing the same component... so, user is never set to null on the page refresh. Why does WO reuse it? Unfortunately, I still don't know the framework well enough to understand it... :( Yours Miguel Arroz On

Inter application comms

2006-09-14 Thread Jeff Schmitz
Hello all, I have a question about what the best way might be to perform inter-application communication. What I'd like to do is invoke an "internal" (i.e. not main) page of one webobjects application from another. I would also have to pass a little bit of information into the other a

Re: Manual syncing question

2006-09-14 Thread Chuck Hill
public User user() { if (user == null) user = (User)valueForBinding(USER_BINDING_NAME); return user; } Not one one, but one important line. Is that close enough? :-) Chuck On Sep 14, 2006, at 5:19 PM, Miguel Arroz wrote: Hi! I'm trying to follow the advice I received on WWDC fro

Manual syncing question

2006-09-14 Thread Miguel Arroz
Hi! I'm trying to follow the advice I received on WWDC from experienced people to avoid using components that auto-synch their values (ie, the normal way WO works). I was open to this suggestion because I was having some problems that were clearly related to auto- syncing. So, I'm tr

AjaxUpdateContainer function not defined

2006-09-14 Thread Marcos Trejo Munguia
Hi List, I have a big problem with AjaxUpdateContainer, I have an AjaxDroppable matrix, for every droppable object in the matrix I have an AjaxUpdateContainer inside. The id of the container is generated with the row and column numbers, something like _00, _01, _02, etc. I added the underscore to

addObjectToBothSidesOfRelationshipWithKey still working?

2006-09-14 Thread Jean Pierre Malrieu
I have been using addObjectToBothSidesOfRelationshipWithKey reliably for years now, and since I upgraded to WO 5.3.2 ( the version that comes with XCode 2.4) I am seing strange problems. I can't believe there is bug in there... but...First, a question:  from a database standpoint, is it OK to have

[MEETING] Toronto Area Cocoa & WebObjects Developer Group - October 10

2006-09-14 Thread Karl Moskowski
Mark your calendars for Tuesday, October 10, at 6:30 P.M. That's when the next meeting of tacow/Cocoaheads Toronto will be held in room KHS239 of Ryerson University's South Kerr Hall, (on Gould, between Yonge & Church). Note that the building or room number may change, so keep an eye on the

Key value coding and inner classes?

2006-09-14 Thread Jean Pierre Malrieu
Before I start trying it out: is there any problem doing key value coding on some inner classes of my enterprise objects? I mean, with those inner classes implementing the key value coding interface of course. Thanks. JPM ___ Do not post admin requ

Re: Ajax drag and drop not working in deployment

2006-09-14 Thread Jean Pierre Malrieu
Hi Pierre, have you copied Ajax.framework, ERExtensions.framework, ERJars.framework, in the NEXT_ROOT/Local/Library/Frameworks folder ? Sure. In fact I am testing deployment on my development box. So the frameworks are there. Regards Paolo Sommaruga Il giorno 14/set/06, alle ore 18:16

Re: Database connection error (MYSQL)

2006-09-14 Thread Simon Mclean
hi kieran - 3.1.13 in production, but just switched to 5.0.3 on my development machine. no probs with 5.0.3 to report, but i have only been using it for a couple of days. simon On 14 Sep 2006, at 21:13, Kieran Kelleher wrote: Simon, I have not switched to 5.0 yet. What driver are you u

Re: Ajax drag and drop not working in deployment

2006-09-14 Thread Jean Pierre Malrieu
Jean Pierre Malrieu a écrit : Hi, I have an app that uses AjaxDraggable/Droppable and AjaxSortableList from Project Wonder. It works in development, but not in deployment (no dragging at all). What could explain this behaviour? I have copied the WebServerResources to the Web server... Inste

Re: Database connection error (MYSQL)

2006-09-14 Thread Kieran Kelleher
Simon, I have not switched to 5.0 yet. What driver are you using with that 3.0.XX or 3.1.XX? Regards, Kieran On Sep 14, 2006, at 12:34 PM, Simon Mclean wrote: we use mysql 5 with no probs at all ___ Do not post admin requests to the list. They

Re: Database connection error (MYSQL)

2006-09-14 Thread Kieran Kelleher
Some guides here: http://homepage.mac.com/kelleherk/iblog/C711669388/E1395049038/ index.html and http://homepage.mac.com/kelleherk/iblog/C711669388/E70925289/index.html I use connector/J 3.0.XX and MySQL 4.1 Regards, Kieran On Sep 14, 2006, at 12:48 AM, Andrew Joso wrote: As the webobjec

AjaxUpdateContainer Component

2006-09-14 Thread Marcos Trejo Munguia
Hi List, I have noticed something with the AjaxUpdateContainer, it does't get update always! Even in the Project Wonder Ajax Examples under "Drag and Drop Lists", http://www.mdimension.com/cgi-bin/WebObjects/AjaxExample.woa. If there is a workaround please let me know I'm heavily using this

Re: Page Communication?

2006-09-14 Thread Randy Wigginton
Create an interface that consists of "setDateRange", and put "implements" on all the pages, cast them to the interface type, and you're done.On Sep 14, 2006, at 2:02 PM, Scott Winn wrote:Hello all, I'm trying to share data between two kinds of WOComponents.  They are separate pages for all practica

Page Communication?

2006-09-14 Thread Scott Winn
Hello all, I'm trying to share data between two kinds of WOComponents.  They are separate pages for all practical intents.  The first kind is a page that needs a date range set, the second is a calendar that sets the dates one at a time.  Click the Start Date link tells the Calendar Component that

Re: Ajax drag and drop not working in deployment

2006-09-14 Thread Paolo Sommaruga
Hi Pierre, have you copied Ajax.framework, ERExtensions.framework, ERJars.framework, in the NEXT_ROOT/Local/Library/Frameworks folder ? Regards Paolo Sommaruga Il giorno 14/set/06, alle ore 18:16, Jean Pierre Malrieu ha scritto: Hi, I have an app that uses AjaxDraggable/Droppable and A

Re: Re: Database connection error (MYSQL)

2006-09-14 Thread Andrew Joso
I use Xcode. When I launch the software, as webobjects try to find the database, The error message is "Check your connection dictionary and ensure your database is correctly configured". From what I can see, my connection dictionary is correct. But I may be wrong. However I can connect from EO Mod

Re: Ajax drag and drop not working in deployment

2006-09-14 Thread benoit cantin
Jean Pierre Malrieu a écrit : Hi, I have an app that uses AjaxDraggable/Droppable and AjaxSortableList from Project Wonder. It works in development, but not in deployment (no dragging at all). What could explain this behaviour? I have copied the WebServerResources to the Web server... Inste

Re: Backtracked Too far - Hand back last existing Page in place of error page?

2006-09-14 Thread Robert Walker
Take a look at the following code extracted from  one of my project's Session class:    /**     * Utility method that gets the context ID string     * from the passed in request     */    public String requestsContextID(WORequest aRequest){        String uri = aRequest.uri();        String eID = NS

Re: Database connection error (MYSQL)

2006-09-14 Thread Randy Wigginton
The problem comes from having the mysql JDBC driver in the "wrong" location for webobjects. EOModeler picks it up, but WO does not. Put it in /System/Library/Java and you'll be running. On Sep 14, 2006, at 12:10 PM, John Larson wrote: It's been a while since I've used XCode, but I am afra

Re: Database connection error (MYSQL)

2006-09-14 Thread Simon Mclean
we use mysql 5 with no probs at all - maybe you could post your connection settings ? what platform ? where is your mysql jconnector installed ? what version of mysql / wo/ jvm ? simon On 14 Sep 2006, at 17:10, John Larson wrote: It's been a while since I've used XCode, but I am afraid

Re: OT Question: Google ADs and WebObjects Apps

2006-09-14 Thread David Avendasora
Paul, I don't know if you've made changes, but I'm seeing all Per Diem- related ads. None are WO-related. Dave On Sep 14, 2006, at 10:52 AM, Paul D Yu wrote: Greetings Sorry for the OT question, but I've seen this in two WebObjects sites with Google ADs and was wondering if someone had a

Ajax drag and drop not working in deployment

2006-09-14 Thread Jean Pierre Malrieu
Hi, I have an app that uses AjaxDraggable/Droppable and AjaxSortableList from Project Wonder. It works in development, but not in deployment (no dragging at all). What could explain this behaviour? I have copied the WebServerResources to the Web server... Thanks. JPM ___

Re: Database connection error (MYSQL)

2006-09-14 Thread John Larson
It's been a while since I've used XCode, but I am afraid that Paul is right about the driver. I have personally dealt with this on deployment, but not in development. I'd check the list or google for prior postings with this issue. Another troubleshooting path is to try making a new proj

Re: Database connection error (MYSQL)

2006-09-14 Thread Paul Lynch
EOModeler uses a different driver from your WebObjects app. Either your driver for WebObjects isn't installed, or is in the wrong location. I don't use MySQL (it doesn't conform to my definition of a database, which seems to be my problem to deal with), but there have been several message

Re: OT Question: Google ADs and WebObjects Apps

2006-09-14 Thread Jerry W. Walker
Hi, Paul, For the best answer I know of, check out Aaron Rosenzweig's web page at: http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/ and download his ModRewriteWOHyperlink.java class Regards, Jerry On Sep 14, 2006, at 10:52 AM, Paul D Yu wrote: Greetings Sorry for the OT questi

Re: Sorting objects on attributes of related objects

2006-09-14 Thread John Larson
I have a method that I keep in a Util class that looks like this: public static final NSArray orderArrayByKey(NSArray objects, String key){ if (objects == null) {return null;} NSArray sortSpecs = new NSArray(EOSortOrdering.sortOrderingWithKey(key, EOSortOrdering.CompareAscending)); return EOSort

OT Question: Google ADs and WebObjects Apps

2006-09-14 Thread Paul D Yu
Greetings Sorry for the OT question, but I've seen this in two WebObjects sites with Google ADs and was wondering if someone had an answer. In my website, www.superdiem.com, when you first land on it, the Main.wo, google seems to present appropriate ADs for the site, GSA, Travel Related.

Re: Sorting objects on attributes of related objects

2006-09-14 Thread Zak Burke
Matt Kime wrote on 9/13/06 12:38 PM: > Does sortArrayUsingKeyOrderArray support sorting based on the > attributes of a related object? Or do I need to make sense of > NSComparator? (anyone know of any good examples?) For the record, here is a simple NSComparator example that sorts Person objects b

Re: Database connection error (MYSQL)

2006-09-14 Thread John Larson
So I take it that the error is occurring when you are launching from you IDE? Which IDE are you using: Eclipse or XCode? On Sep 14, 2006, at 5:29 AM, Andrew Joso wrote: Thank you very much for replying. However, I don't use Tomcat. I only use WebObjects, EO, MYSQL. The problem is just whe

Re: Backtracked Too far - Hand back last existing Page in place of error page?

2006-09-14 Thread Ute Hoffmann
Yes, I know that is the place where i have to hook that in... but how do I get at the right context from the page cache? Do I have to cache the url of the last page somewhere or is there a way to do what I want with what WO provides (i.e. get the last existing Object in the page cache programmatica

Re: Backtracked Too far - Hand back last existing Page in place of error page?

2006-09-14 Thread Robert Walker
Take a look at the API document for the following method of WOApplication class:public WOResponse handlePageRestorationErrorInContext(WOContext aContext)Maybe you can do what you want by overriding this method.On Sep 14, 2006, at 9:56 AM, Ute Hoffmann wrote:Hallo,is it possible to do the following:

Backtracked Too far - Hand back last existing Page in place of error page?

2006-09-14 Thread Ute Hoffmann
Hallo, is it possible to do the following: When the user triggers a backtracked too far exception ask in the error handling for the last existing page in pageCache and hand that page back in place of the error-message/an error-page? If this is possible... how could one archive this? Thanks

Re: Re: Database connection error (MYSQL)

2006-09-14 Thread Andrew Joso
Thank you very much for replying. However, I don't use Tomcat. I only use WebObjects, EO, MYSQL. The problem is just when webobjects is trying to request data to MYSQL. EO modeller doesn't have any problem to communicate to the MYSQL database. Help is greatly appreciated. Thank you Andrew Jo

Re: Database connection error (MYSQL)

2006-09-14 Thread John Larson
It looks like you may be using Tomcat.  If so, then I quote from http://www.sisuworks.com/page3/files/WebObjects%20Tomcat%20MySQL.rtf: Open the /Library/Tomcat/apache-tomcat-5.5.12/webapps/yourappname/WEB-INF/ folder, and open the web.xml file using a text editor, or command-line editor.Comment-out