Re: horizontal inheritance oddity

2006-05-24 Thread Mike Schrag
Wow. Just wow. This might have been the nastiest thing (here Nastiness is the SI unit that is equivalent to WTF's/hr) I've had to track down in EOF that ended up having a surprisingly simple explanation. After literally hours of spelunking around in EOF and perusing variables in the deb

Re: Deserializers for NSArray, NSDictionary

2006-05-24 Thread Marc Respass
I do this except that I pass strings and use NSPropertyListSerialization. WebObjects creates ASCII plists when you invoke toString() and Cocoa figures out the format. WebObjects' NSPropertyListSerialization handles XML and ASCII plists. NSData *data = [propertyListXML dataUsingEncoding: N

Adding "class" attribute to ModalWindow popup?

2006-05-24 Thread James Cicenia
Hello -- Is it possible to add a css class attribute to JSModalWindow? Thanks James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Papai Roy
Hi Chuck, Apologies for bugging you. But I am still stuck. The exception is generated by the session timeout. And I was inserting the userInfo into the response in the Main.java. Please help Thanks in advance, Roy On 5/24/06, Chuck Hill <[EMAIL PROTECTED]> wrote: On May 24, 2006, at 5:54 PM,

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Chuck Hill
On May 24, 2006, at 5:54 PM, Papai Roy wrote: Hi Chuck, I think they are in different R-R loop. I added a new NSDictionary in the userInfo of the response generate from the Main.java. But when I am trying to print the request / response in the exception method of Application.java it gives me t

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Papai Roy
Hi Chuck, I think they are in different R-R loop. I added a new NSDictionary in the userInfo of the response generate from the Main.java. But when I am trying to print the request / response in the exception method of Application.java it gives me the userInfo as null: Main.java: ==

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Chuck Hill
On May 24, 2006, at 5:10 PM, Papai Roy wrote: Hi Chuck, Thanks for the suggestion. I have a small doubt here. If I am encoding this code in the URL and the session terminates and the exception is catched in handleSessionRestoration... method will I be able to retrieve the code back. As per my k

Re: Newbie web services with WO question

2006-05-24 Thread Chuck Hill
On May 24, 2006, at 2:41 PM, Luigi Giannini wrote: Hello everyones, these are my first steps in WO then please patient ... I try to write a simple web service connected to MS SQL srv with WebServicesAssistant Create the EOmodel named ObjectMed using JDBC and jtds 1.2 Create Xcode WO project wi

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Papai Roy
Hi Chuck, Thanks for the suggestion. I have a small doubt here. If I am encoding this code in the URL and the session terminates and the exception is catched in handleSessionRestoration... method will I be able to retrieve the code back. As per my knowledge it will create a new request-response lo

Re: How to start pageForException?

2006-05-24 Thread Chuck Hill
Yes, it is not overflowing with documentation. But, the source is on your machine at /Developer/Examples/JavaWebObjects/Source/JavaWOExtensions/ WOLongResponsePage.java /Developer/Examples/JavaWebObjects/Source/JavaWOExtensions/ WOLongResponsePage.wo Perhaps you can figure it out from that o

Re: Alternative to Cookie during a Session Timeout

2006-05-24 Thread Chuck Hill
On May 24, 2006, at 3:19 PM, Papai Roy wrote: Hi all, I am pecuiliar scenario. I am looking for an alternative to cookie during a session timeout. My requirement is to store a particular code somewhere (other than a cookie) so that when a session time occurs the application read this code in t

Re: horizontal inheritance oddity

2006-05-24 Thread Chuck Hill
On May 23, 2006, at 7:45 PM, Mike Schrag wrote: I have a model in a framework that defines Entity A and a model in my project that depends on that framework that defines Entity B as subclass of Entity A via Horizontal Inheritance. Entity A is abstract (though the same problem occurs eithe

Re: Another take on a NY WebObjects Users Group

2006-05-24 Thread Andrus Adamchik
There was an attempt two years ago by Arthur Shiraz and Scott Lopatin. We even got access to the Apple store conference facility. Unfortunately there was very little attendance and limited presentation content. I guess this might change if we do beer/food instead of presentations? :-) Goo

How to start pageForException?

2006-05-24 Thread Scott Winn
Hello all, I am in the middle of checking my error code in a WOLongResponse component. I have a built a component for pageForException to call but I'm not sure how it will ever get called. There is some behind the scenes mojo that gets pageForResponse to come up. It must be the same si

Alternative to Cookie during a Session Timeout

2006-05-24 Thread Papai Roy
Hi all, I am pecuiliar scenario. I am looking for an alternative to cookie during a session timeout. My requirement is to store a particular code somewhere (other than a cookie) so that when a session time occurs the application read this code in the handleSessionRestoration... method and regener

Newbie web services with WO question

2006-05-24 Thread Luigi Giannini
Hello everyones, these are my first steps in WO then please patient ... I try to write a simple web service connected to MS SQL srv with WebServicesAssistant Create the EOmodel named ObjectMed using JDBC and jtds 1.2 Create Xcode WO project with WebServicesDirect assistant Create a WebService (na

Another take on a NY WebObjects Users Group

2006-05-24 Thread Alex Cone
Hi All - Sorry to send this out to many who do not live in the NYC area, but we lack a full fledged NYC users group with mailing list that might help narrow this down. In an effort to get something _LIKE_ a users group going in New York City, we have started "The New York WebObjects Spicy

Re: Deserializers for NSArray, NSDictionary

2006-05-24 Thread Mike Schrag
A little extra digging reveals that QName EOGLOBALID_QNAME_WEBSERVICESCORE_WORKAROUND = new QName (SOAP_URI, "Dictionary"); and typemapping.register(com.webobjects.eocontrol.EOGlobalID.class, WOSoapConstants.EOGLOBALID_QNAME_WEBSERVICESCORE_WORKAROUND, new WOGlobalIDSerializerFactory(), n

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Mike Schrag
Ah yes ... I believe you need to use WOMultipartIterator to get to your other form values ... request.multipartIterator() will give you a WOMultipartIterator which you can use to enumerate the form values. The problem is that with a file upload, it doesn't just load the entire form data in

RE: Deserializers for NSArray, NSDictionary

2006-05-24 Thread apl
Hello Frank; I've been playing in this area recently and am happy to say I've pretty much figured out how to achieve what I need in a robust manner and I hope to write the information up in the coming months. There are some tricky things. The first of which is that the NSDictionary in t

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Mark Morris
Hello Lindsey, Perhaps the hidden field is not inside the form, or inside the same form as is the WOFileUpload? Regards, Mark On May 24, 2006, at 2:35 PM, Lindsey Hotchkies wrote: Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValu

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Lindsey Hotchkies
Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValues() only returns the file from the WOFileUpload component, nothing else. I am confused because I have used Direct Actions for non-fileUpload actions, and parameters (whether they are wit

Re: EOModler and Multiple Primary Keys

2006-05-24 Thread Mark Morris
Hello Owen, Are you joining on both TopicID and TrackingObjectID? Since that is the primary key of TopicName, you must use both to uniquely identify a row to get a to-one relationship. To join on more than one attribute in EOModeler.app, first join on one attribute (click Connect), then

Re: EOModler and Multiple Primary Keys

2006-05-24 Thread Paul Lynch
On 24 May 2006, at 03:28, Owen McKerrow wrote: When modelling the relationship between SubTopicName and TopicName and then trying to save we get the following error Relationship TopicName in entity SubTopicName is a to-one relationship, but its destination attribute(s) does not match the

Re: EOModler and Multiple Primary Keys

2006-05-24 Thread Ken Anderson
That error happens when the attributes you used to build the to-one relationship are not the same as the primary key of the destination. To one relationships must have the attributes identical. What attributes are you using to define the relationship? On May 23, 2006, at 10:28 PM, Owen

Deserializers for NSArray, NSDictionary

2006-05-24 Thread Frank Herzog
Hi all, I'm trying to build a WO web services application with a Cocoa client. I pass the data from the server to the client as an NSArray of NSDictionaries, which works fine. The same approach fails from the client to the server because, as I guess, the NSArray and NSDictionary classes d

Re: horizontal inheritance oddity

2006-05-24 Thread Mike Schrag
Handy workaround ... I'm still curious why it's happening in the first place, though. On May 24, 2006, at 7:52 AM, Jean-François Veillette wrote: You can add an entry in the userInfo dictionary of your entity, defining the super class. Then in the eogenerator template, you will be able to se

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Amedeo Mantica
You can pass parameter to the direct actionlook at this code in direct action:    public WOActionResults myPersonalAction() {                               //ending with "Action" in mendatory String theVariable = (String)request().formValueForKey("myvariable"); YourWOComponent nextPage = (YourWOC

Re: horizontal inheritance oddity

2006-05-24 Thread Jean-François Veillette
You can add an entry in the userInfo dictionary of your entity, defining the super class. Then in the eogenerator template, you will be able to set the superclass based on that key-value. That way, you may not tell EOModeler the exact details of java implementation (which can be all fine in

Re: Newbie: File upload w/Direct Actions and added parameters

2006-05-24 Thread Mike Schrag
You can put a WOHiddenField in your form with the value you want to pass ... On May 24, 2006, at 2:53 AM, Lindsey Hotchkies wrote: Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issu