• 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: Using & instead of & in WOHyperlink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using & instead of & in WOHyperlink


  • Subject: Re: Using & instead of & in WOHyperlink
  • From: Anjo Krank <email@hidden>
  • Date: Wed, 20 Jul 2005 23:07:28 +0200

Ouch, a can of worms ahead. See:

http://wodeveloper.com/omniLists/webobjects-dev/2001/September/ msg00000.html

and a lot of following. There are several ways to do what you want:

The easiest way around this would be to create your subclass of WOContext and override / reimplement directActionURLForActionNamed (..) by replacing '&' by "&amp;" in the URL.

The second easiest way is to adopt Project Wonder and use the transparent XML fixing that is available there.

The third easiest is to provide a copy of WOURLEncoder with a fixed

public static String encodeAsCGIFormValues(NSDictionary nsdictionary) {

that does a

StringBuffer stringbuffer = new StringBuffer (nsmutablearray.componentsJoinedByString("&amp;"));

instead of

StringBuffer stringbuffer = new StringBuffer (nsmutablearray.componentsJoinedByString("&"));

The least easy way is to file a bug report and nag every few weeks for a few years or so:)

Am 20.07.2005 um 22:22 schrieb Pascal Robert:

Hi list,

I'm moving a site done with WO from session-based to DirectAction- based. So far, everything works but when I validate the site against the W3C Validator, it keep complaining about the '&' delimiter in my hyperlinks and I should replace them with '&amp;' instead. Fine, but it's WOHyperlink who generate them like this since I use bindings like '?langue' in my .wod. Can I replace the delimiter WOHyperlink use internally ?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40logicunited.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Using &amp; instead of & in WOHyperlink (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: WO 5.3 Licensing
  • Next by Date: WOPopupButton and WOForm's <href>
  • Previous by thread: Using &amp; instead of & in WOHyperlink
  • Next by thread: WOPopupButton and WOForm's <href>
  • Index(es):
    • Date
    • Thread