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 *thumbnail* attribute of *ModulePrefs* in gadget
specification <
http://code.google.com/apis/gadgets/docs/reference.html>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
regards,
Kien
On Fri, Oct 29, 2010 at 5:09 PM, Thomas Heute <theute(a)redhat.com> wrote:
Any comment on that ? I would go ahead and swap absolute links to
relative links but I'm unsure about the consequences.
On 10/19/2010 11:02 AM, Thomas Heute wrote:
> We embed some demo widgets ToDo, Calendar...
>
> Some have absolute links such as:
>
http://localhost:8080/eXoGadgets...
>
> Some have relative links:
> /eXoGadgets
>
> The problem with absolute links is that when someone changes the port or
> the binding, it stops working.
>
> So I propose that we use relative links everywhere since even if they
> are imported in a 3rd party container the links wouldn't work.
>
> Maybe there are reasons why some have absolute links, I don't know much
> about gadgets.
> See the absolute links used here:
> Calculator/Calculator.xml:
> thumbnail="
http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calculator...
"
> Calendar/Calendar.xml:
> thumbnail="
http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Calendar.png
"
> Todo/Todo.xml:
> thumbnail="
http://localhost:8080/eXoGadgets/skin/DefaultSkin/portletIcons/Todo.png&q...
> Todo/Todo.xml:<Locale
> messages="http://localhost:8080/eXoGadgets/locale/Todo/ALL_ALL.xml" />
> Todo/Todo.xml:<Locale lang="ar"
> messages="http://localhost:8080/eXoGadgets/locale/Todo/ar_ALL.xml"
> language_direction="rtl"/>
> Todo/Todo.xml:<Locale lang="fr"
> messages="http://localhost:8080/eXoGadgets/locale/Todo/fr_ALL.xml" />
> Todo/Todo.xml:<Locale lang="vi"
> messages="http://localhost:8080/eXoGadgets/locale/Todo/vi_ALL.xml" />
>
>
> Thomas.
> _______________________________________________
> gatein-dev mailing list
> gatein-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/gatein-dev
>
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev