Re: direct action URL without a session

2016-10-28 Thread Ramsey Gurley
final WOContext context = ERXWOContext.newContext(); context.generateCompleteURLs(); context.directActionURL... On Oct 28, 2016, at 6:29 AM, o...@ocs.cz wrote: > Hello there, > > the subject says it all — is there a decent way to construct a direct action > URL from a code which ha

Re: direct action URL without a session

2016-10-28 Thread René Bock
} > Am 28.10.2016 um 15:29 schrieb o...@ocs.cz: > > Hello there, > > the subject says it all — is there a decent way to construct a direct action > URL from a code which has no session (and thus no context)? Note I need a > full URL, not a relative one (it is to be used

direct action URL without a session

2016-10-28 Thread o...@ocs.cz
Hello there, the subject says it all — is there a decent way to construct a direct action URL from a code which has no session (and thus no context)? Note I need a full URL, not a relative one (it is to be used in diverse ways like “sent to client by an e-mail” etc.) At the moment, I use

Re: weird direct action behaviour -- am getting mangled URL sometimes

2015-01-23 Thread OC
BannerDataCZ > def url=context.directActionURLForActionNamed('banner',new > NSDictionary([mkpk:sess.currentMarket.primaryKeyStringValue, size:id.length, > lang:sess.currentLanguageEnglish?'EN':'CZ']), NO/*session ID*/) > println "BANNERURL:

Re: weird direct action behaviour -- am getting mangled URL sometimes

2015-01-23 Thread Chuck Hill
sh?'EN':'CZ']), NO/*session ID*/) println "BANNERURL: $url" return url } === (iii) I've added an appropriate direct action === WOActionResults bannerAction() { def mpk=request().formValueForKey('mkpk'),lang=request().

weird direct action behaviour -- am getting mangled URL sometimes

2015-01-23 Thread OC
uageEnglish?'EN':'CZ']), NO/*session ID*/) println "BANNERURL: $url" return url } === (iii) I've added an appropriate direct action === WOActionResults bannerAction() { def mpk=request().formValueForKey('mkpk'),lang=re

Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
> Ramsey > > On Dec 21, 2012, at 4:27 PM, Mai Nguyen wrote: > >> Actually HTTPClient from ApacheCommons looks much less daunting than >> java.net.HttpURLConnection, so I will give it a try. >> >> Thanks for the suggestions. >>> On Dec 21, 2012, at 2:

Re: Direct Action help?

2012-12-21 Thread Ramsey Gurley
21, 2012, at 2:22 PM, Chuck Hill wrote: >> >>> It does not sound like you want a direct action. I think you want >>> something more like java.net.HttpURLConnection or HTTPClient from the >>> Apache commons. >>> >>> >>> Chuck > > __

Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
Actually HTTPClient from ApacheCommons looks much less daunting than java.net.HttpURLConnection, so I will give it a try. Thanks for the suggestions. > On Dec 21, 2012, at 2:22 PM, Chuck Hill wrote: > >> It does not sound like you want a direct action. I think you want something

Re: Direct Action help?

2012-12-21 Thread Chuck Hill
It does not sound like you want a direct action. I think you want something more like java.net.HttpURLConnection or HTTPClient from the Apache commons. Chuck On 2012-12-21, at 2:11 PM, Mai Nguyen wrote: > Yes, if I can call performActionNamed: to get a WOActionResults and get

Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
Yes, if I can call performActionNamed: to get a WOActionResults and get the response. But the problem is that I need to call a validateURLS() which calls an external app to do validation. Maybe I have to use WODirectActionRequestHandler directlynot sure. thanks On Dec 21, 2012, at 2:02 PM

Re: Direct Action help?

2012-12-21 Thread John Huss
A redirect does not have a content body, just a status code and a Location header. On Fri, Dec 21, 2012 at 3:48 PM, Mai Nguyen wrote: > Hi List, > I have read David LeBer's very good blog about Direct Actions, but I am > still unclear how to get the http response returned by a DA? Or is it > pos

Direct Action help?

2012-12-21 Thread Mai Nguyen
Hi List, I have read David LeBer's very good blog about Direct Actions, but I am still unclear how to get the http response returned by a DA? Or is it possible? For example, I have the following code, as the redirect is needed to call a DA to do further validation. The DA inside the URL (that I

Re: JavaMonitor direct action access

2012-04-27 Thread Klaus Berkling
On Apr 26, 2012, at 2:34 PM, John Huss wrote: > In addition the existing direct actions available for JavaMonitor, it would > be really nice to be able to target all the instances on a specific host (for > one application) to stop or start. Something like: […] Take a look at https://github.co

Re: JavaMonitor direct action access

2012-04-26 Thread Johann Werner
Oh and if you're at it add an option that will make bounce work on any host ;-) (currently if you bounce but all non-running configured instances are on different hosts nothing happens) Am 26.04.2012 um 23:54 schrieb Chuck Hill: > That is the way that I head it! :-P > > > On 2012-04-26, at 2

Re: JavaMonitor direct action access

2012-04-26 Thread Chuck Hill
That is the way that I head it! :-P On 2012-04-26, at 2:42 PM, Paul Yu wrote: > You are!!! > > -- > Paul Yu > Sent with Sparrow > > On Thursday, April 26, 2012 at 5:34 PM, John Huss wrote: > >> In addition the existing direct actions available for JavaMonitor, it would >> be really nice to

Re: JavaMonitor direct action access

2012-04-26 Thread Paul Yu
You are!!! -- Paul Yu Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, April 26, 2012 at 5:34 PM, John Huss wrote: > In addition the existing direct actions available for JavaMonitor, it would > be really nice to be able to target all the instances on a specific host (for

AjaxSubmitButton URL treated as direct action

2011-10-09 Thread Jeff Schmitz
Hello all, I'm trying to use an AjaxSubmitButton, and for some reason the URL generated by clicking it is being treated as a DirectAction URL. Here's the details: It does this both when using DirectConnect and when using Apache. The Wonder Ajax framework and ERExtensions framework are both b

Antw: Re: XMLHttpRequest - call direct action using relative URL

2010-09-22 Thread Andri vonAllmen
>>> Chuck Hill schrieb am Donnerstag, 23. September >>> 2010 um 08:25 in Nachricht <7abe3bd8-8f72-4914-a19e-aa6161f81...@global-village.net>: > > On Sep 22, 2010, at 11:18 PM, Andri vonAllmen wrote: > > > Hi List, > > > > I'd like

Re: XMLHttpRequest - call direct action using relative URL

2010-09-22 Thread Chuck Hill
On Sep 22, 2010, at 11:18 PM, Andri vonAllmen wrote: > Hi List, > > I'd like to call a direct action method using XMLHttpReqest in a JavaScript. > The snippet below shows how the request is made: > > var xmlHttp; > xmlHttp=new XMLHttpRequest(); > xmlHttp.open(&

XMLHttpRequest - call direct action using relative URL

2010-09-22 Thread Andri vonAllmen
Hi List, I'd like to call a direct action method using XMLHttpReqest in a JavaScript. The snippet below shows how the request is made: var xmlHttp; xmlHttp=new XMLHttpRequest(); xmlHttp.open("GET", "/cgi-bin/WebObjects/[APP_NAME].woa/wa/[CLASS_NAME]/[METHOD_NAME]

Re: How to handle long responses with direct action?

2010-04-09 Thread Amiel Montecillo
Temporarily > using a session for the duration of the long task will alleviate the need to > do this. > > On Apr 9, 2010, at 8:40 AM, Lachlan Deck wrote: > > > On 09/04/2010, at 6:54 PM, Amiel Montecillo wrote: > > > >> I have a direct action method that per

Re: How to handle long responses with direct action?

2010-04-09 Thread Kieran Kelleher
. Temporarily using a session for the duration of the long task will alleviate the need to do this. On Apr 9, 2010, at 8:40 AM, Lachlan Deck wrote: > On 09/04/2010, at 6:54 PM, Amiel Montecillo wrote: > >> I have a direct action method that performs a rather lengthy process. I

Re: How to handle long responses with direct action?

2010-04-09 Thread Lachlan Deck
On 09/04/2010, at 6:54 PM, Amiel Montecillo wrote: > I have a direct action method that performs a rather lengthy process. I > looked at WOLongResponsePage but it seems that it creates a session. Is the lengthy process handled via a separate thread? Assuming it is, you've got

How to handle long responses with direct action?

2010-04-09 Thread Amiel Montecillo
HI List, I have a direct action method that performs a rather lengthy process. I looked at WOLongResponsePage but it seems that it creates a session. Is there a way to handle a long running process on a direct action without creating any session? I tried google and gave me "Direct A

Re: Direct Action Question

2010-03-24 Thread Anjo Krank
?cid=context.contextID, then restore >> the context, return the context().page(). >> >> Cheers, Anjo >> >> >> >> Am 24.03.2010 um 23:02 schrieb Johnny Miller: >> >>> Hi, >>> >>> I have a form that is bound to a direct a

Re: Direct Action Question

2010-03-24 Thread Johnny Miller
m 23:02 schrieb Johnny Miller: > >> Hi, >> >> I have a form that is bound to a direct action in a footer that exists on >> every page of a site. After the visitor submits the form how do I return to >> them to the page they were just on? >> >&g

Re: Direct Action Question

2010-03-24 Thread Anjo Krank
add the context id to the form params ?cid=context.contextID, then restore the context, return the context().page(). Cheers, Anjo Am 24.03.2010 um 23:02 schrieb Johnny Miller: > Hi, > > I have a form that is bound to a direct action in a footer that exists on > every page of a

Direct Action Question

2010-03-24 Thread Johnny Miller
Hi, I have a form that is bound to a direct action in a footer that exists on every page of a site. After the visitor submits the form how do I return to them to the page they were just on? Thanks in advance, Johnny Miller Kahalawai Media Corp http://www.kahalawai.com

Re: mailing from quartz and a direct action

2010-02-01 Thread Hugi Thordarson
request handling enabled, thus causing your app to deadlock (quartz invokes the direct action and waits for a response that will never come, since the request handling thread is busy waiting for your Quartz-invoked request to finish). Run your application with WOAllowConcurrentRequestHandling=true

mailing from quartz and a direct action

2010-02-01 Thread Johan Henselmans
I have a direct action that runs from a curl job, but I would like to be able to run the same job as a quartz job. Somehow I can not seem to find the magic combination, as mailing from the DA works perfect, but when I call the DA from a quartz job, the whole thing fails. Does anyone have a

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-06-08 Thread Chuck Hill
Is the session terminated if this happens? I think that is what should happen. How long does it wait before deciding to give up waiting for the session to be checked in? Thanks Chuck On Jun 7, 2009, at 4:12 PM, Mr. Pierre Frisch wrote: I have actually rewritten this code in WO 5.6 and the

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-06-07 Thread Mr. Pierre Frisch
I have actually rewritten this code in WO 5.6 and the sessions deadlock should be something of the past. The thing is that there is no need to way forever for a session to check in. The new approach is to have a semaphore and timeout so that threads get released and do not wait forever on a

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-29 Thread David Avendasora
On May 28, 2009, at 7:41 AM, Johan Henselmans wrote: Second approach would be to store all the session information (the products, user info etc) in a database table, and, once the user gets back from the payment, pickup from there, and restore it's previous information. But that might mean

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Anjo Krank
Am 28.05.2009 um 15:49 schrieb Kieran Kelleher: Only reason I wouldn't is when I am trying to troubleshoot a problem with the awesome ERXSessionStoreDeadlockDetection. Pity it does not work with concurrenr request handling on. It probably is just not possible. No way ;-) Nope, it's not po

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Kieran Kelleher
Only reason I wouldn't is when I am trying to troubleshoot a problem with the awesome ERXSessionStoreDeadlockDetection. Pity it does not work with concurrenr request handling on. It probably is just not possible. No way ;-) On May 28, 2009, at 9:30 AM, Mike Schrag wrote: Just to add some c

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Anjo Krank
Am 28.05.2009 um 15:30 schrieb Mike Schrag: Just to add some caution: be sure to run either multi-threaded or see that you don't have long requests that may block the app for a longer time. also just always run multithreaded. why wouldn't you ... Come to think of it, just turning MT

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Mike Schrag
This IS a consideration of a vulnerability if you LOSE that instance inbetween these operations -- Patrick's suggestion of storing as much as possible in the db would cover you for that. er.. "This" = "There" ms ___ Do not post admin requests to th

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Mike Schrag
you'll either be using cookies, which species sessionid + instance id, or you'll be using URL encodingand your direct action URL will have both the instance ID as well as ?wosid=xxx in the URL (http://yoursite/cgi-bin/WebObjects/YourApp.woa/instanceid/daname?wosid=xxx ) ... should

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Pascal Robert
Le 09-05-28 à 09:33, Mike Schrag a écrit : you'll either be using cookies, which species sessionid + instance id, or you'll be using URL encodingand your direct action URL will have both the instance ID as well as ?wosid=xxx in the URL (http://yoursite/cgi-bin/WebObjects/Y

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Mike Schrag
you'll either be using cookies, which species sessionid + instance id, or you'll be using URL encodingand your direct action URL will have both the instance ID as well as ?wosid=xxx in the URL (http://yoursite/cgi-bin/WebObjects/YourApp.woa/instanceid/daname?wosid=xxx ) ... should

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Mike Schrag
Just to add some caution: be sure to run either multi-threaded or see that you don't have long requests that may block the app for a longer time. also just always run multithreaded. why wouldn't you ... ms ___ Do not post admin requests to the

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Patrick Middleton
e existing session is not necessary, and that the callback can be handled via a direct action. --- Regards Patrick OneStep Solutions (Research) LLP www.onestep.co.uk ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev ma

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Anjo Krank
Anjo Am 28.05.2009 um 13:45 schrieb Mike Schrag: you'll either be using cookies, which species sessionid + instance id, or you'll be using URL encodingand your direct action URL will have both the instance ID as well as ?wosid=xxx in the URL (http://yoursite/cgi-bin/WebObje

Re: get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Mike Schrag
you'll either be using cookies, which species sessionid + instance id, or you'll be using URL encodingand your direct action URL will have both the instance ID as well as ?wosid=xxx in the URL (http://yoursite/cgi-bin/WebObjects/YourApp.woa/instanceid/daname?wosid=xxx ) ... should

get confirmation of a payment from other website via a direct action, how to get back to a shopping session?

2009-05-28 Thread Johan Henselmans
n create myself. I have thought of several approaches: First I thought to use a direct-action to get the information. Then, pickup the session where it's left off with all the shopping details, check if the payment went all right, and get on to the next step. If the user does not retur

Re: Passing URL parameters to component via direct action

2008-08-12 Thread John Pollard
Lachlan, I see.so yes, I basically did this and it works for DA requests. As it isn't a component request, I have to be careful that some requests coming to this page are not related to this form. I'd also have to make sure that I don't have more than one embedded form on the same page

Re: Passing URL parameters to component via direct action

2008-08-11 Thread Lachlan Deck
On 12/08/2008, at 7:53 AM, John Pollard wrote: On 11 Aug 2008, at 20:14, William Hatch wrote: Hi John, It sounds like you want to call a DA, then return the same page you were on when calling the DA, and have the page contain the same values it had before you called the DA. Correct? No,

Re: Passing URL parameters to component via direct action

2008-08-11 Thread Peter Vandoros
Aug 11, 2008, at 12:29 PM, John Pollard wrote: Lachlan, On 11 Aug 2008, at 13:29, Lachlan Deck wrote: On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButto

Re: Passing URL parameters to component via direct action

2008-08-11 Thread John Pollard
hlan, On 11 Aug 2008, at 13:29, Lachlan Deck wrote: On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request received

Re: Passing URL parameters to component via direct action

2008-08-11 Thread William Hatch
wrote: Lachlan, On 11 Aug 2008, at 13:29, Lachlan Deck wrote: On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request rec

Re: Passing URL parameters to component via direct action

2008-08-11 Thread John Pollard
Lachlan, On 11 Aug 2008, at 13:29, Lachlan Deck wrote: On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request received

Re: Passing URL parameters to component via direct action

2008-08-11 Thread Ramsey Gurley
On Aug 11, 2008, at 8:29 AM, Lachlan Deck wrote: On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request received by the

Re: Passing URL parameters to component via direct action

2008-08-11 Thread Lachlan Deck
On 11/08/2008, at 10:10 PM, John Pollard wrote: I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request received by the DA method contains information from a couple of

Passing URL parameters to component via direct action

2008-08-11 Thread John Pollard
Hi List, I have a page containing a WOForm with some dynamically created WOPopUpButtons. The WOForm is set to submit a Direct Action request (using get as opposed to post). The request received by the DA method contains information from a couple of hidden fields in the form which allows

Re: Swapping a session on a direct action

2008-04-07 Thread Chuck Hill
On Apr 7, 2008, at 3:18 AM, Miguel Arroz wrote: Hi! We're having a problem with "zombie" sessions. One of our direct actions has some trickery to always create a new session, even if the wosid cookie has a valid session ID, and I believe something is acting up there, but I can't figure

Swapping a session on a direct action

2008-04-07 Thread Miguel Arroz
Hi! We're having a problem with "zombie" sessions. One of our direct actions has some trickery to always create a new session, even if the wosid cookie has a valid session ID, and I believe something is acting up there, but I can't figure out why (yes, this looks strange, but we actuall

Re: direct action security question...

2007-12-18 Thread James Cicenia
ct actions. In my DirectAction component I have a line in every directAction that first tests if the user is authenticated. Is there a global switch somewhere that would automagically do this, or do I have to have that test explicitly in every direct action. Just wondering Jam

Re: direct action security question...

2007-12-18 Thread Simon McLean
er is authenticated. Is there a global switch somewhere that would automagically do this, or do I have to have that test explicitly in every direct action. Just wondering James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webob

direct action security question...

2007-12-18 Thread James Cicenia
direct action. Just wondering 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 Subscription: http://lists.apple.com/mailman/options

Re: direct action restoring sessions from cookies problem (Ajax)

2007-06-25 Thread Lachlan Deck
DirectAction's getSessionIDForRequest is being called (by the default request- reponse loop stuff) and is returning a valid sesionId but it actually doesn't attach a session to the current context. Any ideas why? (This is during an Ajax direct action request if that's of any interest). /

Re: direct action restoring sessions from cookies problem (Ajax)

2007-06-25 Thread Chuck Hill
ly doesn't attach a session to the current context. Any ideas why? (This is during an Ajax direct action request if that's of any interest). // here's a work-a-round, but I don't understand why the default mechanism wasn't working. public DirectAction( WORequest a

Re: direct action restoring sessions from cookies problem (Ajax)

2007-06-21 Thread Lachlan Deck
Woops - better to keep this on the list... On 21/06/2007, at 5:13 PM, Ruenagel, Frank wrote: In tomcat-deployment-scenario we have encountered similar problems, when the container's JSESSIONID cookie is not sent by the request. This might happen, eg. if a custom http-client is used. In tomcat-

RE: direct action restoring sessions from cookies problem (Ajax)

2007-06-21 Thread Ruenagel, Frank
h they are mapped 1:1. Requests have to send both. regards Frank > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > pple.com]O > n Behalf Of Lachlan Deck > Sent: Wednesday, June 20, 2007 8:10 AM > To: WebObjects Dev Apple > Subject: dir

Re: direct action restoring sessions from cookies problem (Ajax)

2007-06-20 Thread Lachlan Deck
On 21/06/2007, at 5:43 AM, Peter Pritchard wrote: I'm not the direct action king, but ... it seems kinda scary to try to access "request()" in your constructor ... when you have a perfectly good aRequest object that you just got passed in ... While it's true that

direct action restoring sessions from cookies problem (Ajax)

2007-06-20 Thread Peter Pritchard
I'm not the direct action king, but ... it seems kinda scary to try to access "request()" in your constructor ... when you have a perfectly good aRequest object that you just got passed in ... just a thought ... public DirectAction( WORequest aRequest ) { supe

direct action restoring sessions from cookies problem (Ajax)

2007-06-19 Thread Lachlan Deck
Hi there, I'm seeing a weird thing where DirectAction's getSessionIDForRequest is being called (by the default request-reponse loop stuff) and is returning a valid sesionId but it actually doesn't attach a session to the current context. Any ideas why? (This is during

Re: WSDL via Direct Action?

2007-06-19 Thread Francis Labrie
Hi, [EMAIL PROTECTED] wrote: I'm having trouble with the types schema of my WSDL. In the WIKI for WebServices Francis Labrie recommends sharing the WSDL through Direct Action. Can somebody explain how to do this please? Is anyone aware of another work-around? First, this sugge

Re: WSDL via Direct Action?

2007-06-19 Thread Robert Walker
of my WSDL. In the WIKI for WebServices Francis Labrie recommends sharing the WSDL through Direct Action. Can somebody explain how to do this please? Is anyone aware of another work-around? --Mat __ __ AOL now offer

WSDL via Direct Action?

2007-06-19 Thread seevion
I'm having trouble with the types schema of my WSDL. In the WIKI for WebServices Francis Labrie recommends sharing the WSDL through Direct Action. Can somebody explain how to do this please? Is anyone aware of another work-around?

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Peter Vandoros
he bindings wosid = false; Chuck On May 22, 2007, at 5:42 PM, Miguel Arroz wrote: Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automatically passing

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread David LeBer
e" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automatically passing the wosid in the URL. That's really bad for what I'm doing, so I need the wosid to go away on that link! How can I do

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Lachlan Deck
ave a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automatically passing the wosid in the URL. That's really bad for what I'm doing, so I need the wosid to

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Mike Schrag
this to the bindings wosid = false; Chuck On May 22, 2007, at 5:42 PM, Miguel Arroz wrote: Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automaticall

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Miguel Arroz
Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automatically passing the wosid in the URL. That's really bad for what I'm doing, so I nee

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Chuck Hill
IIRC, add this to the bindings wosid = false; Chuck On May 22, 2007, at 5:42 PM, Miguel Arroz wrote: Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The p

Re: WOHyperlink, Direct Action and session id

2007-05-22 Thread Pascal Robert
Well, you either have to store the session ID in a cookie or don't use a session at all :-) Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO

WOHyperlink, Direct Action and session id

2007-05-22 Thread Miguel Arroz
Hi! I have a WOHyperlink that has "directActionName" and "queryDictionary" binded. The point it to run a direct action with a given argument. The problem is that WO is automatically passing the wosid in the URL. That's really bad for what I'm doing, so I

Re: [SOLVED] Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Baiss Eric Magnusson
have worked on for a year the customer wants the "top level navigation" to go to about 60 different WOComponents from Direct Action calls, which are invoked by WOPopup's calling , with the additional binding menuEO.primaryKeyId>, thus passing a Primary Key ID to the DA.

Re: Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Chuck Hill
o about 60 different WOComponents from Direct Action calls, which are invoked by WOPopup's calling , with the additional binding , thus passing a Primary Key ID to the DA. In the Application class I have an with all the different records (menuEO's) describing the nature of the WOCo

Direct Action needs Application's EOSharedEditingContext

2007-05-14 Thread Baiss Eric Magnusson
In re-designing a WO app I have worked on for a year the customer wants the "top level navigation" to go to about 60 different WOComponents from Direct Action calls, which are invoked by WOPopup's calling , with the additional binding menuEO.primaryKeyId>, thus passing a

Re: Direct Action

2007-03-15 Thread Guido Neitzer
On 15.03.2007, at 03:10, WIESEN Bruno wrote: Thanks it works...I found another solution : Giving the wosid with a WOHiddenField in my WOForm calling the DirectAction That is unnecessary if you use direct actions correctly. The session id is carried around for you as soon as a session is

Re: Direct Action

2007-03-15 Thread WIESEN Bruno
Thanks it works...I found another solution : Giving the wosid with a WOHiddenField in my WOForm calling the DirectAction Bruno. Le 15 mars 07 à 09:27, Fabrice Pipart a écrit : I think you can try the following : page.application().restoreSessionWithID(request ().stringFormVa

Re: Direct Action

2007-03-15 Thread Fabrice Pipart
I think you can try the following : page.application().restoreSessionWithID(request ().stringFormValueForKey("wosid"), context()); Regards Fabrice On Mar 14, 2007, at 5:12 PM, WIESEN Bruno wrote: Hello, How can I access a page which has just called a DirectAction? I want my D

Direct Action

2007-03-14 Thread WIESEN Bruno
Hello, How can I access a page which has just called a DirectAction? I want my DirectAction to initialize some variables of the Main Component and refresh it... I try this but it creates a new session instead of using the existing one... : public WOActionResults formSubmitAction() {

Re: How to know if the wosid in a direct action has expired?

2007-03-07 Thread Ricardo Parada
s refer to expired sessions), make sure to do the following at the beginning of your direct action method: public WOActionResults myAction() { if ( getSessionIDForRequest(request()) != null && existingSession() == null ) { // special behavior, like a returning a login

Re: How to know if the wosid in a direct action has expired?

2007-03-07 Thread Jerry W. Walker
tever else you'd normally do here } } For further explanation, check the referenced methods. Regards, Jerry On Mar 7, 2007, at 4:48 PM, Ricardo Parada wrote: Hi, How can a direct action find out if the wosid included in the direct action URL has expi

How to know if the wosid in a direct action has expired?

2007-03-07 Thread Ricardo Parada
Hi, How can a direct action find out if the wosid included in the direct action URL has expired? Any ideas? Thanks Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev

Re: Direct Action Redirect / error page ?

2007-02-12 Thread Chuck Hill
On Feb 12, 2007, at 9:39 AM, James Cicenia wrote: What is the secret to handling a wrong url ? Where do I tell WebObjects say to go to the home page if someone types in a garbled direct action? Thanks James Cicenia ___ Do not post admin requests t

Direct Action Redirect / error page ?

2007-02-12 Thread James Cicenia
What is the secret to handling a wrong url ? Where do I tell WebObjects say to go to the home page if someone types in a garbled direct action? Thanks James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

Re: passing a parameter to a direct action via the http POST method

2007-01-25 Thread Stefan Klein
Hi, you can use a WOForm with hidden input values. Stefan Paolo Sommaruga schrieb: Hi, usually one can pass a parameter to a direct action via an WOHyperLink with the following in the .wod file myLink:WOHyperLink : { actionClass = "DirectAction";

Re: passing a parameter to a direct action via the http POST method

2007-01-25 Thread Simon McLean
RL to the fully qualified DA and set the content of the request to a string of your parameters like this: param1=value1+param2=value2+param3=value3 Simon On 25 Jan 2007, at 10:39, Paolo Sommaruga wrote: Hi, usually one can pass a parameter to a direct action via an WOHyperLink wit

passing a parameter to a direct action via the http POST method

2007-01-25 Thread Paolo Sommaruga
Hi, usually one can pass a parameter to a direct action via an WOHyperLink with the following in the .wod file myLink: WOHyperLink : { actionClass = "DirectAction"; ?name = someBinding; } and this produce in the browser an url query

Re: Problem with Direct Action : SOLVED

2007-01-05 Thread Gilles MATHURIN
at is the problem and you have to look further into why he looks for the wrong function. Hope that helps, Regards, Ute Am Freitag, 05.01.07 um 13:02 Uhr schrieb Gilles MATHURIN: Hello all, I get a weird bug when using a direct action bound to a dynamic hyperlink. First let me say whe

Re: Problem with Direct Action

2007-01-05 Thread Gilles MATHURIN
lbumid'. In my opinion that is the problem and you have to look further into why he looks for the wrong function. Hope that helps, Regards, Ute Am Freitag, 05.01.07 um 13:02 Uhr schrieb Gilles MATHURIN: Hello all, I get a weird bug when using a direct action bound to a dynamic h

Problem with Direct Action

2007-01-05 Thread Gilles MATHURIN
Hello all, I get a weird bug when using a direct action bound to a dynamic hyperlink. First let me say where i come from in the app navigation : Page A displays infos on a Personn like his name, biography and a table of his albums in a WOTable with a WORepetition in it. When u click on one

Re: Direct action question

2006-11-17 Thread David LeBer
On 17-Nov-06, at 9:52 AM, Mike Schrag wrote: important typo :) put a question mark in front of the "name" binding, and you can pass multiple ?key bindings. Hyperlink1: WOHyperlink { ?name = "david"; actionClass = "DirectAction"; directActionName = "hyper"; } Oops.

Re: Direct action question

2006-11-17 Thread Mike Schrag
important typo :) put a question mark in front of the "name" binding, and you can pass multiple ?key bindings. Hyperlink1: WOHyperlink { ?name = "david"; actionClass = "DirectAction"; directActionName = "hyper"; } On Nov 17, 2006, at 9:48 AM, David LeBer wrote: Hyper

Re: Refresh wo component accessed through a direct action [SOLVED]

2006-10-04 Thread Cantin Benoit
Cantin Benoit wrote: Hi list, I am dealing with a page which never refresh itself when a press my browser refresh button. This page is accessed through a link in a page which URL points to a Direct Action looking like : .../my_app.woa/my_direct_action?code=1&MNC=01&Film=SCAR the UR

Refresh wo component accessed through a direct action

2006-10-04 Thread Cantin Benoit
Hi list, I am dealing with a page which never refresh itself when a press my browser refresh button. This page is accessed through a link in a page which URL points to a Direct Action looking like : .../my_app.woa/my_direct_action?code=1&MNC=01&Film=SCAR the URL of the page itse

  1   2   >