Posted by
Markku Laine on
Nov 16, 2009; 11:55am
URL: https://discuss.orbeon.com/xforms-output-mediatype-image-does-not-work-in-the-separate-deployment-mode-tp585891p622083.html
Alex,
>> We need to support cookieless user agents as well because some
>> mobile phones
>> might not support cookies. In addition, if you embed an XForms-
>> based widget
>> two or more times to a Web page/site using iframe etc., the same
>> cookie is
>> being used by all widget instances --> things start to get mixed up.
>
> Your point on mobile browsers that don't support cookies is well
> taken. However, things should not get mixed up in Orbeon Forms if you
> open multiple forms (even the same form multiple times) in different
> iframes, or different windows/tabs of the same browser. We have paid
> especially attention this (and if it happens, it is a bug!).
Well, sessions do get mixed up in my browser so this maybe it is a
bug. I attached a sample Web application so that you can try it out
yourself.
Instructions:
1) Deploy both WAR files
2) Go to URL:
http://localhost:8080/session/3) Input text and click the "Store text in the session" link
4) Open a new tab and go to the URL:
http://localhost:8080/session/5) It initialized the input text field with the value you stored in
the session using a different instance of the application --> bug?
The same thing happens when you embed the application two or more
times to another Web page/application
1) Go to URL:
http://localhost:8080/sessionembedded/2) Input text (use different values in both input fields) and click
the "Store text in the session" link in both embedded views
3) Reload the Web page
4) Both embedded views initialize the input text field with the same
value --> bug?
Another bug related to sessions: Set/get session attribute functions
do not work as they should when you try to store text in the session
for the second time on the URL
http://localhost:8080/session/. It
always overrides your new value with the one you stored in the first
time.
>> I also have to try to apply URL encoding to the <xforms:output
>> mediatype="image/*" ref/value="..." /> attribute. Maybe that works.
>
> Like you said in a latter message, you can't, since the value here is
> not the URL. We would need to provide some facility for this. What are
> you changing in the URL? Are you adding a jsessionid request
> parameter?
Here is a short description of what I am doing:
* Parse the XHTML+XForms document
* Extract all URIs i.e. link values (e.g., xforms:submission
resource="...", xhtml:a href="...", etc.)
* Before encoding URLs, the URIs need to be transformed into ASCII
strings etc. AVTs in the URIs may cause problems here...
* Encode the URIs with the following method:
response.encodeURL( uriString );
* Pass the modified URIs to the XSLT transformation, which replaces
the original URIs with the modified ones (containing the JSESSIONID if
needed)
Hope this helps!
Kind regards
-Markku
Ps. I am using Orbeon Forms dev-post-3.7.1.200910160000-development in
the separate deployment mode.
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws