X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 10 [X] X-KAS-Score: 10 [X] From: "Paul Hoadley" Received: from out5-smtp.messagingengine.com ([66.111.4.29] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 25443154 for webobjects-dev@wocommunity.org; Mon, 22 Feb 2021 05:58:38 +0100 Received-SPF: none receiver=post.selbstdenker.com; client-ip=66.111.4.29; envelope-from=paulh@logicsquad.net Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 32C155C00F4 for ; Sun, 21 Feb 2021 23:58:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 21 Feb 2021 23:58:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=ggpnr7Jv2d0l4zaTcycWpY1S/cjo5 MJUzV6LCjKjW+E=; b=QBHobA3lWj1WT3ij41I3xj/asCGzFrhLZnzTZhVFGRGGv OiqnvtXFmBBplp16kqNvcnW2/KAWi+oyOyLXcMEShEWgJC8WdDqjjiSXSRU/zqXK 5DP+f3jzJaYajeQ+zNbyLmEu9Ya/f1iWIJyr07fCLVEPlKFp5xfkmeCUKNraOxhQ qV1m2L1pZwimlGHWCB858uZ7MMmNocDL29LdkH+FMeoIo4hGCrM2mVnJBQbp73kg tfH2z/lqNr7qjTwAbEn7b1XkJSFIbRKqQrNQkOacRKcNY39xDefB9yIByRFVXcT3 ByAbb1ent8kYVmbDcYPz0VejHyqT3UW5YSZAAXxOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkedvgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephfgtggfukfffvffosegrtdhmrehhtd ejnecuhfhrohhmpefrrghulhcujfhorggulhgvhicuoehprghulhhhsehlohhgihgtshhq uhgrugdrnhgvtheqnecuggftrfgrthhtvghrnhepgeelveefkeekiefgheffgfevteduvd fftdffteeuvdefhfetgfehudfhtddtledvnecuffhomhgrihhnpehlohhgihgtshhquhgr ugdrnhgvthdplhhinhhkvgguihhnrdgtohhmnecukfhppedugedrvddruddugedrudehje enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprghu lhhhsehlohhgihgtshhquhgrugdrnhgvth X-ME-Proxy: Received: from [192.168.142.181] (ppp14-2-114-157.adl-apt-pir-bras32.tpg.internode.on.net [14.2.114.157]) by mail.messagingengine.com (Postfix) with ESMTPA id 44FCD108005B for ; Sun, 21 Feb 2021 23:58:17 -0500 (EST) Content-Type: multipart/alternative; boundary="Apple-Mail=_B83160F0-9B9E-411B-AE81-8516E197FB66" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: WOActionURL and WOContext.componentActionURL() Message-Id: <768A25DC-2C6E-4F0F-8E53-7F153B572D34@logicsquad.net> Date: Mon, 22 Feb 2021 15:28:13 +1030 To: webobjects-dev@wocommunity.org X-Mailer: Apple Mail (2.3608.120.23.2.4) --Apple-Mail=_B83160F0-9B9E-411B-AE81-8516E197FB66 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I have a page component with an action method someMethod(). In the page = template, I use this to get the URL for the action method into some = Javascript: This is the advertised purpose of that component, and it works as = designed. However, suppose I don't like intermixing component output like that = into Javascript in the page template. What I actually want is just the = text output of that WOActionURL component. (Suppose, for example, I want = to generate the Javascript some other way, and all I want is that URL = itself.) I would have thought that WOContext.componentActionURL() would = be the solution=E2=80=94indeed, somewhere inside WOActionURL that's what = is being called. What I cannot see is how WOActionURL is using the = 'action' binding to target that method, or, indeed, any way to specify = that action method to any of the variants of componentActionURL(). I = must be missing something here=E2=80=94what is it? --=20 Paul Hoadley https://logicsquad.net/ https://www.linkedin.com/company/logic-squad/ --Apple-Mail=_B83160F0-9B9E-411B-AE81-8516E197FB66 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello,

I = have a page component with an action method someMethod(). In the page = template, I use this to get the URL for the action method into some = Javascript:

<wo:WOActionURL action=3D"$someMethod" />
=

This is the = advertised purpose of that component, and it works as = designed.

However, suppose I don't like intermixing component output = like that into Javascript in the page template. What I actually want is = just the text output of that WOActionURL component. = (Suppose, for example, I want to generate the Javascript some other way, = and all I want is that URL itself.) I would have thought that = WOContext.componentActionURL() would be the solution=E2=80=94indeed, = somewhere inside WOActionURL that's what is being called. What I cannot = see is how WOActionURL is using the 'action' binding to target that = method, or, indeed, any way to specify that action method to any of the = variants of componentActionURL(). I must be missing something = here=E2=80=94what is it?


-- 
Paul Hoadley
https://logicsquad.net/https://www.linkedin.com/company/logic-squad/

= --Apple-Mail=_B83160F0-9B9E-411B-AE81-8516E197FB66--