[gatein-dev] Demo widgets

Thomas Heute theute at redhat.com
Tue Oct 19 05:02:16 EDT 2010


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.png"
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"
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.


More information about the gatein-dev mailing list