Hi René,

Responses are inline below.

-Matt

On Tue, Jan 29, 2013 at 9:08 AM, René Peinl
<[email protected]> wrote:
> Dear RAVE community,
>
> we are currently working on an intranet portal based on RAVE/Shindig and are
> implementing some Open Social gadgets for that (see attached screenshots, up
> to now only in German).
>
> We encountered two issues and we are not sure what is the “right” way to do
> it.
>
> -        Gadgets are written in HTML and JavaScript, but you are usually
> fetching some data/prerendered html from a backend system. In our case it is
> not quite clear what the backend system is. My guess would be that Rave is
> the backend and Shindig is only the data provider, so we are looking for the
> “right” way to implement a gadget backend in Rave. I think there should be a
> JSP page for that, but we would be interested in seeing a working example.

It is possible to use a JSP, PHP or other page to render content that
a gadget just "points" to.  This is termed a URL type[1] gadget and is
the least flexible option in terms of API integration.  Most of the
time, it is recommended that you use the osapi.http [2] or
gadgets.io.makeRequest [3] methods for proxying calls back to HTTP
services that return JSON.  These services can live anywhere on the
network, so long as the location is accessible to Shindig.
Additionally, you can look at data pipelining [4], which makes the
call during the gadget rendering operation and inserts the result into
the javascript data context.

Shindig does have a few data elements that it exposes on its own
(ActivityStreams, People, etc).  These can be accessed using the
social data wrappers[5].

[1]: 
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Rendering
[2]: 
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#osapi.http
[3]: 
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#gadgets.io.makeRequest
[4]: 
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#DataPipelining
[5]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Social-Gadget.xml

>
> -        We want to provide all labels in German and English based on either
> browser settings or user preferences. What is the Rave way of doing that?

Rave has support for English, Dutch & Spanish.  To add German, visit
http://rave.apache.org/documentation/translate-portal.html for
instructions.  We would love to have the German translations added
back to our codebase, so please consider submitting a patch.


>
> Any advice is welcome.
>
> Thanks in advance
>
> René
>
>
>
>
>
>
>
>
>
> Prof. Dr. René Peinl
>
> Lehrgebiet: Architektur von Web-Anwendungen
>
> Hochschule Hof
>
> Alfons-Goppel-Platz 1
>
> 95028 Hof
>
>
>
> Tel: 09281 409-4820
>
> mailto: [email protected]
>
>

Reply via email to