Re: Generate DirectAction URL with instance number when there is nosession

2007-07-25 Thread Francis Labrie
Hi, Frank Caputo wrote: just try the following code: NSMutableDictionary dict = new NSMutableDictionary(); String actionName = "DirectAction/foo"; String queryString = WOURLEncoder.encodeAsCGIFormValues(dict); String handlerKey = application().directActionRequestHandlerKey(); String url = cont

Re: Stateless but get bindings of childs

2007-07-25 Thread Chuck Hill
On Jul 25, 2007, at 7:41 AM, Ulrich Köster wrote: valueForBinding is to talk with the parent of the component. void takeValuesFromRequest(WORequest request, WOContext context) { super. takeValuesFromRequest(request, context); Value one = request.formValueForKey("anotherBindin

Re: Stateless but get bindings of childs

2007-07-25 Thread Chuck Hill
Is the submit button in the same component or in its parent? If the button is not in the form On Jul 25, 2007, at 8:48 AM, Fabrice Pipart wrote: Absolutely, I have a form in the stateless component I shouldn't? On Jul 25, 2007, at 4:43 PM, John Huss wrote: Is everything wrapped in a

Re: Stateless but get bindings of childs

2007-07-25 Thread Fabrice Pipart
Absolutely, I have a form in the stateless component I shouldn't? On Jul 25, 2007, at 4:43 PM, John Huss wrote: Is everything wrapped in a WOForm? John ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Re: EOF Null Date

2007-07-25 Thread Kieran Kelleher
That behaviour applies only for TIMESTAMP column types for WebObjects apps, these type of columns should really be avoided and plain old DATE or DATETIME columns should be used On Jul 25, 2007, at 10:34 AM, Randy Wigginton wrote: MySQL really likes to substitute the current timestam

Re: Ajax problem with Wonder 4.0

2007-07-25 Thread John Larson
This is my last posting on this subject to this list. I have posted a more detailed message on the wonder list. It turns out that it isn't an obvious configuration problem after all. There is an error in setting a request header that doesn't make sense. Currently, as a workaround (?) I

Re: Stateless but get bindings of childs

2007-07-25 Thread John Huss
Is everything wrapped in a WOForm? John ___ 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 Subscription: http://lists.apple.com/mailman/option

Re: EOF Null Date

2007-07-25 Thread Randy Wigginton
What *exactly* is the problem? My SQL has issues with null dates, depending on how precisely the table was created and the initialization values for the DB. MySQL really likes to substitute the current timestamp for the first date column in a row, for example. On Jul 25, 2007, at 5:53 AM

Re: Stateless but get bindings of childs

2007-07-25 Thread Fabrice Pipart
Unfortunately, this is still not the pattern I have (sorry for being unprecise) I rather have : from StatefulParent.wod StatelessParent: StatelessParent { XYZ = "foo"; } from StatelessParent.wod Text1: WOTextField { text = anotherBinding1; } Text2: WOTextField { text

Re: Stateless but get bindings of childs

2007-07-25 Thread Ulrich Köster
During the takeValuesFromRequest Another option is to use the ^ (carat) binding in your component and forget the stuff in the StatelessParent.java For instance: from StatefulParent.wod StatelessParent: StatelessParent { XYZ = "foo"; } from StatelessParent.wod Text: WOTextField {

RE: Generate DirectAction URL with instance number when there is nosession

2007-07-25 Thread Frank Caputo
Hi Francis, just try the following code: NSMutableDictionary dict = new NSMutableDictionary(); String actionName = "DirectAction/foo"; String queryString = WOURLEncoder.encodeAsCGIFormValues(dict); String handlerKey = application().directActionRequestHandlerKey(); String url = context().urlWith

Re: Stateless but get bindings of childs

2007-07-25 Thread Fabrice Pipart
Just what I thought. The problem is it does not work :( In which phase do you do that? Does it work for child components too? I have something like this : StatefulParent contains StatelessParent contains TextFields I use bindings to get the bindings StatefulParent sets. Works fine. But when Sta

Re: EOF Null Date

2007-07-25 Thread Simon McLean
Check your connection string is something link this: jdbc:mysql://YourHost/YourDB? capitalizeTypeNames=true&zeroDateTimeBehavior=convertToNull Simon On 25 Jul 2007, at 13:53, WILLIAM GARNETT wrote: Hello all; I am having a problem when trying to save a row with a Date column set to

EOF Null Date

2007-07-25 Thread WILLIAM GARNETT
Hello all; I am having a problem when trying to save a row with a Date column set to NULL in MySQL. Apparently MySQL has a problem with accepting NULL for a Date value. Does anyone know of a work-around to make EOF pass a value acceptable to MYSQL? Cheers, Bill. __

Generate DirectAction URL with instance number when there is no session

2007-07-25 Thread Francis Labrie
Hi, For a special function, I need whenever it's possible to generate DirectAction URL including instance number. Unfortunately, if there is no session, there is no instance number in URLs using WOHyperlink, WOActionURL, WOContext, etc. And of course, I dont want to create session! Is

Re: Question on addObjectToBothSidesOfRelationshipWithKey

2007-07-25 Thread James Cicenia
Well after spending too much time checking the model etc... I just assumed it is a bug and explicitly set the relations and it works now. James On Jul 24, 2007, at 9:29 PM, Lachlan Deck wrote: On 25/07/2007, at 5:57 AM, James Cicenia wrote: I checked the model "carefully"... the relations

Re: Stateless but get bindings of childs

2007-07-25 Thread Ulrich Köster
valueForBinding() to get the value and setValueForBinding() to push the value Uli Am 25.07.2007 um 12:44 schrieb Fabrice Pipart: Hi ! If I have a stateless component (no variable synchronization) that has for example text fields in it, it seems I never get the values of my text fields

Stateless but get bindings of childs

2007-07-25 Thread Fabrice Pipart
Hi ! If I have a stateless component (no variable synchronization) that has for example text fields in it, it seems I never get the values of my text fields in my stateless component. I suppose they are not pushed to the parent since it has no automatic synchronizaion. Is there a way to ma

Re: Can't customize a D2W app (running in Wonder)...

2007-07-25 Thread Anjo Krank
If the original message would have been posted on the Wonder list, I may have been inclined to comment... Cheers, Anjo Am 24.07.2007 um 17:31 schrieb Guido Neitzer: On 23.07.2007, at 21:53, David Holt wrote: Your best bet now is to look at the D2W chapters in the WROX book and to track do