Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
- Subject: Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
- From: Dev WO <email@hidden>
- Date: Wed, 14 Sep 2005 16:05:56 +0200
Gosh, I hope *my* business is not so easy to break.
Did I say I'm a WO beginner;)
It's mainly because it use to work and it's not acceptable to have to
tweak something like this. I'm sure Apple doesn't like when its
employees waste their time on something that use to work and was
broken by the manufacturer...So do I;)
If WOHyperlink would use context.directActionURLForActionNamed()
you would just need to provide context class that overrode that
method with
return super. directActionURLForActionNamed().replaceAll("&",
"&");
but it doesn't so you need to use sth like this in your app:
public static PatchedHyperLink extends
com.webobjects.appserver._private. WOHyperlink {
public PatchedHyperLink(String arg0, NSDictionary arg1,
WOElement arg2) {
super(arg0, arg1, arg2);
}
public void appendToResponse(WOResponse response, WOContext
context) {
WOResponse otherResponse = new WOResponse();
super.appendToResponse(otherResponse, context);
String string = otherResponse.contentString();
// replace href="..&.." with href="..&..."
response.appendContentString(string);
}
}
Application() {
_NSUtilities.setClassForName(PathedLink.class, "WOHyperlink");
}
I just typed this in the mail, so you may need to do some work
still...
I'll try that in a couple days to see if I can make it work:) Thanks
for the pointer though. But I'd really appreciate Apple's to correct
their fault...Between Tiger server and WO 5.3 it looks like Apple
isn't "entreprise grade"...
And of course a bug report wouldn't hurt (apart from my own in 2001
about HTML 4 compliance).
Already done:)
Cheers, Anjo
Thanks Anjo
Xavier
Am 14.09.2005 um 10:19 schrieb Dev WO:
Hi David,
Hi,
well, you are requesting XHTML compliance.
it's also HTML conformance, it's really old:)
This is not supported by WebObjects 5.3 and was not by WebObjects
5.2.x.
The Direct Action links generated in WO prior to 5.2.4 were
correct. They are no more in 5.3
But whats the problem?
My business is based on accessibility, and not the lowest level,
but the other ones that require HTML conformance, so it simply
ruined my business;)
This is not too hard to fix.
Did I say I'm still a beginner in WO;) I don't know how to fix it.
I also wonder how this could have worked with WO Version < 5.3.
Could you please post an example of the code which works with WO
5.2.x and which does not work with 5.3? This way i might be able
to send you a workaround.
I don't really know what I could provide, there's really nothing
special.
let say I have a WOHyperlink that call the action
directAccessAction, I add 2 parameters in the WOBuilder inspector:
?lang="en"
?section="Accueil"
Here's my direct action:
------
public WOActionResults directAccessAction(){
String langue = (String)request().formValueForKey("lang");
String page = (String)request().formValueForKey("section");
NSMutableArray languages = new NSMutableArray();
if (langue.equals("fr")) languages.addObject("French");
if (langue.equals("en")) languages.addObject("English");
if (langue.equals("es")) languages.addObject("Spanish");
if (langue.equals("ru")) languages.addObject("Russian");
if (languages.count()==0) languages.addObject("French");
session().setLanguages(languages);
return pageWithName(page);
}
------
So it use to generate the following link:
/WebObjects/app.woa/wa/directAccess?lang=en&section=Accueil"
and now it generates this invalid link:
/WebObjects/app.woa/wa/directAccess?lang=en§ion=Accueil"
I need to get the first link generation back:)
thanks David
Xavier
regards, David
Am 13.09.2005 um 21:07 schrieb Dev WO:
OK David, so here's the details:
When you've got a direct Action, in which there are several
parameter, it becomes a link like
.../wa/actionName?attribute1=xparam&attribute2=yparam
for example.
The HTML specification says the "&" in URLs must be escaped to
"&" so the HTML code for this link should be:
.../wa/actionName?attribute1=xparam&attribute2=yparam
and it was the case at least in 5.2.3 and earlier (I don't
remember in 5.2.4).
So this thing that seems trivial and none harmful just ruined
any accessibility "rating" you're application could have (the
ratings are A, AA and AAA), at least above A (because it
requires a valid HTML code). And the European law says that
public organisations must be at least A but target AA.
On my particular side, we were able to provide most af our
product as AAA and they now all fall down to A...
I'm not sure I made myself clear, let me know if I'm still
"weird":)
Xavier
Hi,
what does this mean 'the & isn't escaped in Direct Action' ???
In the response from a WODirectAction's action method or
where??? It would be great if you can explain me this issue a
little bit more in detail. I am also sure that with such a
bugreport apple would not spend a second before closing such a
bugreport ;-)
regards, David
Am 13.09.2005 um 12:58 schrieb Dev WO:
Hi David,
just one major issue in 5.3: the & isn't escaped in Direct
Action which is a major issue (HTML conformance) as you cannot
provide anything to public organisation all over Europe (at
least you can only provide the lowest level of accessibility
which is simple-A, but can't do double-A or triple-A
accessibility as it requires HTML conformance...)
It used to work correctly before 5.3 (don't remember in 5.2.4).
I also think the date used to be displayed localized when the
session as a language set (at least the ones integrated in OS X).
But I'm not a WO expert, so my point my not be accurate;)
Xavier
Hi,
could you please clarify those important fixes? I would
really like to know what exactly does not work.
regards, David
Am 12.09.2005 um 20:00 schrieb Nico Rossi:
Regardless of whether they have done this in the past or
not, Apple
needs to explain when they will fix the problems in WO 5.3.
I am sure
many people have decided to avoid WebObjects for projects
until the
fixes have been made.
Nico
On 9/9/05, Chuck Hill <email@hidden> wrote:
No, they are not allowed to.
Chuck
On Sep 8, 2005, at 7:34 PM, Nathan Walker wrote:
Can an engineer on the WO Team give any indication of a WO
5.3
update please? Just so we could plan for things. I don't
see how
that could hurt anything.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects
developers
who want to increase their overall knowledge of WebObjects,
or those
who are trying to solve specific application development
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
=====================
Nico Rossi
email@hidden
=====================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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:
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: | |
| >Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Nathan Walker <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Chuck Hill <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Nico Rossi <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Dev WO <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Dev WO <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Dev WO <email@hidden>) |
| >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Anjo Krank <email@hidden>) |