Re: Using & instead of & in WOHyperlink
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 "&" 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("&"));
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 '&'
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