Yes, the gadget container will not know if it is a relative link. it is always a public link to container can get resource because a gadget specification file can be put anywhere in the server. Rendering gadget content is of shindig server and shindig server only process data, not process context. See <b>thumbnail</b> attribute of <b>ModulePrefs</b> in <a href="http://code.google.com/apis/gadgets/docs/reference.html">gadget specification</a> said. When we get a gadget from any host, we must care these absolute links. I think a comment should add to guide document for this<br>
<br>regards,<br>Kien<br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 5:09 PM, Thomas Heute <span dir="ltr"><<a href="mailto:theute@redhat.com">theute@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Any comment on that ? I would go ahead and swap absolute links to<br>
relative links but I'm unsure about the consequences.<br>
<div><div></div><div class="h5"><br>
On 10/19/2010 11:02 AM, Thomas Heute wrote:<br>
> We embed some demo widgets ToDo, Calendar...<br>
><br>
> Some have absolute links such as:<br>
> <a href="http://localhost:8080/eXoGadgets." target="_blank">http://localhost:8080/eXoGadgets.</a>..<br>
><br>
> Some have relative links:<br>
> /eXoGadgets<br>
><br>
> The problem with absolute links is that when someone changes the port or<br>
> the binding, it stops working.<br>
><br>
> So I propose that we use relative links everywhere since even if they<br>
> are imported in a 3rd party container the links wouldn't work.<br>
><br>
> Maybe there are reasons why some have absolute links, I don't know much<br>
> about gadgets.<br>
> See the absolute links used here:<br>
> Calculator/Calculator.xml:<br>
> thumbnail="<a href="http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calculator.png" target="_blank">http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calculator.png</a>"<br>
> Calendar/Calendar.xml:<br>
> thumbnail="<a href="http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calendar.png" target="_blank">http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calendar.png</a>"<br>
> Todo/Todo.xml:<br>
> thumbnail="<a href="http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Todo.png" target="_blank">http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Todo.png</a>"<br>
> Todo/Todo.xml:<Locale<br>
> messages="<a href="http://localhost:8080/eXoGadgets/locale/Todo/ALL_ALL.xml" target="_blank">http://localhost:8080/eXoGadgets/locale/Todo/ALL_ALL.xml</a>" /><br>
> Todo/Todo.xml:<Locale lang="ar"<br>
> messages="<a href="http://localhost:8080/eXoGadgets/locale/Todo/ar_ALL.xml" target="_blank">http://localhost:8080/eXoGadgets/locale/Todo/ar_ALL.xml</a>"<br>
> language_direction="rtl"/><br>
> Todo/Todo.xml:<Locale lang="fr"<br>
> messages="<a href="http://localhost:8080/eXoGadgets/locale/Todo/fr_ALL.xml" target="_blank">http://localhost:8080/eXoGadgets/locale/Todo/fr_ALL.xml</a>" /><br>
> Todo/Todo.xml:<Locale lang="vi"<br>
> messages="<a href="http://localhost:8080/eXoGadgets/locale/Todo/vi_ALL.xml" target="_blank">http://localhost:8080/eXoGadgets/locale/Todo/vi_ALL.xml</a>" /><br>
><br>
><br>
> Thomas.<br>
> _______________________________________________<br>
> gatein-dev mailing list<br>
> <a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
><br>
<br>
_______________________________________________<br>
gatein-dev mailing list<br>
<a href="mailto:gatein-dev@lists.jboss.org">gatein-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
</div></div></blockquote></div><br>