• 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
Component Actions: & encoding bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Component Actions: & encoding bug


  • Subject: Component Actions: & encoding bug
  • From: Joe Moreno <email@hidden>
  • Date: Wed, 22 Aug 2007 22:58:17 -0700

Hi,

I was just recently bitten by WOContext's directActionURLForActionNamed bug:  The key/value pairs generated by this method are joined by &amp; instead of just &. Obviously, that was a simple bug to work around (just replace &amp; with & as Jeff Schmitz suggested).

But, now for a tougher problem.

I have a component based hyperlink action - but, if the session has timed out I want to keep some state on the URL so I added the state into the WOHyperlink bindings in the same fashion as a direct action:

ProfileHyperlink: WOHyperlink {
action = "">
?pageNumber = currentPage;
?wasLoggedIn = "y";
?wosid = wosid;
}

Guess what it does? It encodes the & as &amp;

When you mouse over the hyperlink it looks like this:
If this image is stripped out by the discussion list then you can find the screen shot here:
http://homepage.mac.com/jmoreno/.Public/WOAmpersandBug.png

And the underlying HREF URL, generated by WebObjects, looks like this:
/cgi-bin/WebObjects/MyWOApp.woa/wo/1dRbs2gZTtHj8lXzV8m3pg/0.5.3.0.0.1?pageNumber=5&amp;amp;wosid=1dRbs2gZTtHj8lXzV8m3pg&amp;amp;wasLoggedIn=y


Does anyone know a workaround for putting state on the URL when dealing with component based actions so that the ampersands aren't encoded?

- Joe

 _______________________________________________
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

  • Prev by Date: Re: setting default order of entity fetches
  • Next by Date: Re: Your input on new open source projects
  • Previous by thread: Re: setting default order of entity fetches
  • Next by thread: The URL for the Adaptor connection when going to another computer
  • Index(es):
    • Date
    • Thread