[xwiki-devs] showing xwiki-page incl. images in jsp.
hi, i'm new on the group but i use xwiki since 3 years. for a automatic display panel application we show a xwiki-page via rpc like the reference "http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC" but with this code we can't display images. only the name of the picture will displayed. have anybody a solution/reference for this problem. with regards -the-
On 06/08/2010 03:04 PM, -the- wrote:
hi,
i'm new on the group but i use xwiki since 3 years.
for a automatic display panel application we show a xwiki-page via rpc like the reference "http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC"
but with this code we can't display images. only the name of the picture will displayed.
have anybody a solution/reference for this problem.
You get the rendered content (HTML) of a wiki page and display it in an HTML-aware widget? If so, the widget should take care of downloading the images too. Maybe they are not loaded because the URLs are relative. Can you debug and see how the image URL (the value of the src attribute) looks like in the HTML returned by the XMLRPC call? Also, can you try to insert an external image in a wiki page and see if that image is loaded in your panel. External images should have absolute URLs. Hope this helps, Marius
with regards -the-
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
hi, a) yes i get a rendered content (html) of the page. b) no, its not a problem of the url. there are all absolute. its a problem of the rights. i need a additional login to get the images from xwiki. little workaround (not ideal) i give show rigths for the specific page to unregistered users.... (very bad) Am 08.06.2010 16:57, schrieb Marius Dumitru Florea:
On 06/08/2010 03:04 PM, -the- wrote:
hi,
i'm new on the group but i use xwiki since 3 years.
for a automatic display panel application we show a xwiki-page via rpc like the reference "http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC"
but with this code we can't display images. only the name of the picture will displayed.
have anybody a solution/reference for this problem.
You get the rendered content (HTML) of a wiki page and display it in an HTML-aware widget? If so, the widget should take care of downloading the images too. Maybe they are not loaded because the URLs are relative. Can you debug and see how the image URL (the value of the src attribute) looks like in the HTML returned by the XMLRPC call? Also, can you try to insert an external image in a wiki page and see if that image is loaded in your panel. External images should have absolute URLs.
Hope this helps, Marius
with regards -the-
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 06/09/2010 07:04 AM, -the- wrote:
hi,
a) yes i get a rendered content (html) of the page. b) no, its not a problem of the url. there are all absolute.
its a problem of the rights. i need a additional login to get the images from xwiki.
Indeed, the XMLRPC calls are authenticated, but images are requested directly through HTTP. Maybe it's possible to set an authentication cookie on your side that would then be send with the HTTP image request to the server, which will read the cookie and will allow you to download the image. Florin, aren't you using XMLRPC in XWord to get the rendered content? How did you overcome this problem? Hope this helps, Marius
little workaround (not ideal) i give show rigths for the specific page to unregistered users.... (very bad)
Am 08.06.2010 16:57, schrieb Marius Dumitru Florea:
On 06/08/2010 03:04 PM, -the- wrote:
hi,
i'm new on the group but i use xwiki since 3 years.
for a automatic display panel application we show a xwiki-page via rpc like the reference "http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC"
but with this code we can't display images. only the name of the picture will displayed.
have anybody a solution/reference for this problem.
You get the rendered content (HTML) of a wiki page and display it in an HTML-aware widget? If so, the widget should take care of downloading the images too. Maybe they are not loaded because the URLs are relative. Can you debug and see how the image URL (the value of the src attribute) looks like in the HTML returned by the XMLRPC call? Also, can you try to insert an external image in a wiki page and see if that image is loaded in your panel. External images should have absolute URLs.
Hope this helps, Marius
with regards -the-
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
-the- -
Marius Dumitru Florea