• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath


  • Subject: Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath
  • From: LD <email@hidden>
  • Date: Wed, 24 Aug 2005 11:39:17 +1000

Hi Chuck,

On 24/08/2005, at 10:36 AM, Chuck Hill wrote:

On Aug 23, 2005, at 2:20 PM, LD wrote:

In translation, does that mean it will take the returned values from either context.componentActionURL or context.directActionURLForActionNamed?

completeURLWithRequestHandlerKey(String requestHandlerKey, String **aRequestHandlerPath**, String aQueryString, boolean isSecure, int somePort)

Any help with that one?
Thanks.

No, neither context.componentActionURL nor context.directActionURLForActionNamed will give you what you need. IIRC, you are pretty much on your own there.

Bummer.

It is looking for the part after the /wa/ or /wo/. You can roll your own. Are you doing a redirect?

Not at present... but, from your description, taking a substring of context.[componentActionURL | directActionURLForActionNamed ] should give me what I'm after. Thanks for that.


Otherwise (e.g. for the form action I _think_ you want),

Yep, among others [1]

just use one of context.componentActionURL or context.directActionURLForActionNamed.

Essentially, I'm creating a site that utilises both direct actions and component-based actions. But I don't want to create duplicate components or streams of WOConditionals in my components when the only difference in behaviour is whether or not the 'link' is session- based or not (e.g., as determined by whether or not the client has a shopping-cart or not). I'm also wanting the possibility of choosing whether or not it's https or not...


with regards,
--

LD

[1] I'm creating some reusable components which essentially mimic WOHyperlink, WOForm, WOSubmitButton etc (i.e., anything taking some type of action, directAction, href and so on as bindings) but differ in that they determine the link to use based on whether or not there's a boolean binding (shouldUseComponentAction), whether there's a session, the types of bindings (action, pageName, etc) and so on.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath (From: LD <email@hidden>)
 >Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath (From: Chuck Hill <email@hidden>)
 >Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath (From: LD <email@hidden>)
 >Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: EOModeler Problems
  • Next by Date: WORepetition in Columns instead of Rows
  • Previous by thread: Re: WOContext->completeURLWithRequestHandlerKey's aRequestHandlerPath
  • Next by thread: FileMaker, Timestamps, and SQL-92
  • Index(es):
    • Date
    • Thread