-
1. Re: ActiveX dependencies?
alexsmirnov Apr 8, 2009 1:42 PM (in response to alexeev.net)RichFaces uses Sarissa JS-library for AJAX framework. The old precestor Ajax4jsf initially has had one more transport based on the dynamic JavaScript, but it was removed far ago because of seldom requirement.
If you have any working code to contribute, please create a task on the project issue tracker (https://jira.jboss.org/jira/browse/RF ) and attach patch to that issue. -
2. Re: ActiveX dependencies?
alexeev.net Apr 27, 2009 5:48 AM (in response to alexeev.net)Thank you Alex,
I have analysed the Sarissa Library and found two affected JS-functions.
1) Sarissa.getDomDocument
and
2) XMLHttpRequest
You can now find a patch for the Sarissa.getDomDocument function on the project issue tracker ( https://jira.jboss.org/jira/browse/AJSF-149 )
The XMLHttpRequest-ActiveX-control is a bit tricky to simulate. There are some properties and methods, we can not simulate with IFRAMEs:
- setRequestHeader
- getResponseHeader
- status
- statusText
- method
My idea is to transport all those Headers, statusText and Method-Name in a HTTP-Cookie. This would be a bit cleaner solution than "contamination" of request data or responce XHTML with additional meta-tags or the like.
I'm thinking about a small Servlet Filter based "wrapper" with the ability to modify the original Request using additional data from cookie.
The same should be possible to copy Responce-Headers back to the the cookie.
Modifying BaseFilter or BaseXMLFilter could be another alternative. What do you think? -
3. Re: ActiveX dependencies?
jbalunas Apr 27, 2009 5:52 AM (in response to alexeev.net)The Ajax3JSF jira project is deprecated - I have moved your issue to https://jira.jboss.org/jira/browse/RF-6952.