Login  Register

Re: <xforms:output mediatype="image/*" ... /> does not work in the separate deployment mode

Posted by Alessandro Vernet on Nov 11, 2009; 10:44pm
URL: https://discuss.orbeon.com/xforms-output-mediatype-image-does-not-work-in-the-separate-deployment-mode-tp585891p595808.html

Markku,

On Wed, Nov 11, 2009 at 7:02 AM, Markku Laine <[hidden email]> wrote:

> The XForms markup below does not work in the separate deployment mode (works
> in the integrated deployment mode).
> <xforms:output mediatype="image/*"
> value="'http://www.google.com/ig/images/weather/mostly_cloudy.gif'" />
>
> Here is the markup transformed by Orbeon Forms:
> <span id="xf-54" class="xforms-control xforms-output
> xforms-mediatype-image">
>  <img
> src="/weather/orbeon/xforms-server/dynamic/67c170744e473f8cf2ee581902c8311c"/>
> </span>
This is strange, as it works for me, and I have the same markup generated:

<img src="/myapp/orbeon/xforms-server/dynamic/67c170744e473f8cf2ee581902c8311c"
class="xforms-output-output" id="xf-5$$c"/>

Do you see an exception in orbeon.log?

> I guess the "/weather" part, which my web application's context name, in the
> src attribute should not be there?

Yes, it should be there: the URLs seen by the browser all point to
your web app, so you can in essence block any access to the Orbeon
Forms web app (usually deployed on /orbeon) from the outside.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet