You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@shindig.apache.org by JP <je...@ixaris.com> on 2010/06/23 14:09:03 UTC
Shindig OpenSocial 0.9 Templating (Custom Tags)
Using shindig-1.1-BETA5-incubating-java, I was wondering why the following
simple custom tag gadget example does not produce any output:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="">
<Require feature="opensocial-0.9" />
<Require feature="opensocial-templates">
<Param name="process-on-server">true</Param>
</Require>
</ModulePrefs>
<Content type="html">
<![CDATA[
<script type="text/os-template"
xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld">
<div style="font-size: 40px">Hello World!</div>
</script>
<script type="text/os-template">
<myapp:HelloWorld/>
</script>
]]>
</Content>
</Module>
This should output the text "Hello World!" using templating, no ? I got
this example from Opensocial 0.9
http://wiki.opensocial.org/index.php?title=OpenSocial_Templates_Developer%27
s_Guide
Any ideas to why it doesn't work ?
---------------------------------------------------------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message or part thereof.
RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
Posted by Justin Wyllie <ju...@hotmail.co.uk>.
Hi JP
Hmm
The code below works and produces Hello World in the output for me - using Shindig PHP 1.1. Try the whole code? Maybe you have a cache problem?
<?xml version="1.0" encoding="UTF-8" ?><Module><ModulePrefs title=""><Require feature="opensocial-0.9" /><Require feature="opensocial-templates"><Param name="process-on-server">true</Param></Require> </ModulePrefs><Content type="html"> This is the server side test2<![CDATA[<script type="text/os-template"xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld"><div style="font-size: 40px">Hello World!</div></script><script type="text/os-template"><myapp:myapp:HelloWorld/></script> ]]></Content></Module>
If that doesn't work then it looks like a Java problem... in which case maybe a post to the dev list?
J
> From: jeanpaul.ebejer@ixaris.com
> To: users@shindig.apache.org
> Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
> Date: Fri, 25 Jun 2010 14:03:51 +0200
>
>
> Didn't work - tried your solution:
> <script type="text/os-template"> <myapp:myapp:HelloWorld/> </script>
>
> As well as
> <script type="text/os-template"> <myapp:HelloWorld/> </script>
> With tag="HelloWorld"
>
> I am starting to doubts whether templates are actually implemented and if
> they are,
> what functionality they support (are custom tags supported ?)
>
> Cheers
> JP
>
>
> -----Original Message-----
> From: Justin Wyllie [mailto:justinwyllie@hotmail.co.uk]
> Sent: Friday, June 25, 2010 12:29 PM
> To: users@shindig.apache.org
> Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
>
>
> Hi JP
> This bit:
> > <script type="text/os-template">> > <myapp:HelloWorld/>> > </script>
> should be:
> <script type="text/os-template"> <myapp:myapp:HelloWorld/> </script>
> Your tag is myapp:HelloWorld but the : here is just a convention - the myapp
> is not the namespace here. So you still need to prefix your include with the
> myapp namespace.
> Justin
>
>
>
> > From: jeanpaul.ebejer@ixaris.com
> > To: users@shindig.apache.org
> > Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
> > Date: Fri, 25 Jun 2010 10:25:57 +0200
> >
> > Any ideas about this ? Anyone...
> > I am still trying to get it to work...
> >
> > -----Original Message-----
> > From: JP [mailto:jeanpaul.ebejer@ixaris.com]
> > Sent: Wednesday, June 23, 2010 2:09 PM
> > To: users@shindig.apache.org
> > Subject: Shindig OpenSocial 0.9 Templating (Custom Tags)
> >
> >
> >
> > Using shindig-1.1-BETA5-incubating-java, I was wondering why the following
> > simple custom tag gadget example does not produce any output:
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> >
> > <Module>
> >
> > <ModulePrefs title="">
> >
> > <Require feature="opensocial-0.9" />
> >
> > <Require feature="opensocial-templates">
> >
> > <Param name="process-on-server">true</Param>
> >
> > </Require>
> >
> > </ModulePrefs>
> >
> > <Content type="html">
> >
> > <![CDATA[
> >
> > <script type="text/os-template"
> > xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld">
> >
> > <div style="font-size: 40px">Hello World!</div>
> >
> > </script>
> >
> > <script type="text/os-template">
> >
> > <myapp:HelloWorld/>
> >
> > </script>
> >
> > ]]>
> >
> > </Content>
> >
> > </Module>
> >
> >
> >
> > This should output the text "Hello World!" using templating, no ? I got
> > this example from Opensocial 0.9
> >
> >
> http://wiki.opensocial.org/index.php?title=OpenSocial_Templates_Developer%27
> > s_Guide
> >
> >
> > Any ideas to why it doesn't work ?
> >
> >
> >
> >
> >
> > ---------------------------------------------------------
> > This e-mail may contain confidential and privileged material for the sole
> > use of the intended recipient. Any review, use, distribution or disclosure
> > by others is strictly prohibited. If you are not the intended recipient
> (or
> > authorized to receive for the recipient), please contact the sender by
> reply
> > e-mail and delete all copies of this message or part thereof.
> >
> >
> >
> > ---------------------------------------------------------
> > This e-mail may contain confidential and privileged material for the sole
> use of the intended recipient. Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient (or
> authorized to receive for the recipient), please contact the sender by reply
> e-mail and delete all copies of this message or part thereof.
> >
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> Do you have a story that started on Hotmail? Tell us now
>
>
>
> ---------------------------------------------------------
> This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message or part thereof.
>
_________________________________________________________________
http://clk.atdmt.com/UKM/go/195013117/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
Posted by JP <je...@ixaris.com>.
Didn't work - tried your solution:
<script type="text/os-template"> <myapp:myapp:HelloWorld/> </script>
As well as
<script type="text/os-template"> <myapp:HelloWorld/> </script>
With tag="HelloWorld"
I am starting to doubts whether templates are actually implemented and if
they are,
what functionality they support (are custom tags supported ?)
Cheers
JP
-----Original Message-----
From: Justin Wyllie [mailto:justinwyllie@hotmail.co.uk]
Sent: Friday, June 25, 2010 12:29 PM
To: users@shindig.apache.org
Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
Hi JP
This bit:
> <script type="text/os-template">> > <myapp:HelloWorld/>> > </script>
should be:
<script type="text/os-template"> <myapp:myapp:HelloWorld/> </script>
Your tag is myapp:HelloWorld but the : here is just a convention - the myapp
is not the namespace here. So you still need to prefix your include with the
myapp namespace.
Justin
> From: jeanpaul.ebejer@ixaris.com
> To: users@shindig.apache.org
> Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
> Date: Fri, 25 Jun 2010 10:25:57 +0200
>
> Any ideas about this ? Anyone...
> I am still trying to get it to work...
>
> -----Original Message-----
> From: JP [mailto:jeanpaul.ebejer@ixaris.com]
> Sent: Wednesday, June 23, 2010 2:09 PM
> To: users@shindig.apache.org
> Subject: Shindig OpenSocial 0.9 Templating (Custom Tags)
>
>
>
> Using shindig-1.1-BETA5-incubating-java, I was wondering why the following
> simple custom tag gadget example does not produce any output:
>
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <Module>
>
> <ModulePrefs title="">
>
> <Require feature="opensocial-0.9" />
>
> <Require feature="opensocial-templates">
>
> <Param name="process-on-server">true</Param>
>
> </Require>
>
> </ModulePrefs>
>
> <Content type="html">
>
> <![CDATA[
>
> <script type="text/os-template"
> xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld">
>
> <div style="font-size: 40px">Hello World!</div>
>
> </script>
>
> <script type="text/os-template">
>
> <myapp:HelloWorld/>
>
> </script>
>
> ]]>
>
> </Content>
>
> </Module>
>
>
>
> This should output the text "Hello World!" using templating, no ? I got
> this example from Opensocial 0.9
>
>
http://wiki.opensocial.org/index.php?title=OpenSocial_Templates_Developer%27
> s_Guide
>
>
> Any ideas to why it doesn't work ?
>
>
>
>
>
> ---------------------------------------------------------
> This e-mail may contain confidential and privileged material for the sole
> use of the intended recipient. Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient
(or
> authorized to receive for the recipient), please contact the sender by
reply
> e-mail and delete all copies of this message or part thereof.
>
>
>
> ---------------------------------------------------------
> This e-mail may contain confidential and privileged material for the sole
use of the intended recipient. Any review, use, distribution or disclosure
by others is strictly prohibited. If you are not the intended recipient (or
authorized to receive for the recipient), please contact the sender by reply
e-mail and delete all copies of this message or part thereof.
>
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
---------------------------------------------------------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message or part thereof.
RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
Posted by Justin Wyllie <ju...@hotmail.co.uk>.
Hi JP
This bit:
> <script type="text/os-template">> > <myapp:HelloWorld/>> > </script>
should be:
<script type="text/os-template"> <myapp:myapp:HelloWorld/> </script>
Your tag is myapp:HelloWorld but the : here is just a convention - the myapp is not the namespace here. So you still need to prefix your include with the myapp namespace.
Justin
> From: jeanpaul.ebejer@ixaris.com
> To: users@shindig.apache.org
> Subject: RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
> Date: Fri, 25 Jun 2010 10:25:57 +0200
>
> Any ideas about this ? Anyone...
> I am still trying to get it to work...
>
> -----Original Message-----
> From: JP [mailto:jeanpaul.ebejer@ixaris.com]
> Sent: Wednesday, June 23, 2010 2:09 PM
> To: users@shindig.apache.org
> Subject: Shindig OpenSocial 0.9 Templating (Custom Tags)
>
>
>
> Using shindig-1.1-BETA5-incubating-java, I was wondering why the following
> simple custom tag gadget example does not produce any output:
>
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <Module>
>
> <ModulePrefs title="">
>
> <Require feature="opensocial-0.9" />
>
> <Require feature="opensocial-templates">
>
> <Param name="process-on-server">true</Param>
>
> </Require>
>
> </ModulePrefs>
>
> <Content type="html">
>
> <![CDATA[
>
> <script type="text/os-template"
> xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld">
>
> <div style="font-size: 40px">Hello World!</div>
>
> </script>
>
> <script type="text/os-template">
>
> <myapp:HelloWorld/>
>
> </script>
>
> ]]>
>
> </Content>
>
> </Module>
>
>
>
> This should output the text "Hello World!" using templating, no ? I got
> this example from Opensocial 0.9
>
> http://wiki.opensocial.org/index.php?title=OpenSocial_Templates_Developer%27
> s_Guide
>
>
> Any ideas to why it doesn't work ?
>
>
>
>
>
> ---------------------------------------------------------
> This e-mail may contain confidential and privileged material for the sole
> use of the intended recipient. Any review, use, distribution or disclosure
> by others is strictly prohibited. If you are not the intended recipient (or
> authorized to receive for the recipient), please contact the sender by reply
> e-mail and delete all copies of this message or part thereof.
>
>
>
> ---------------------------------------------------------
> This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message or part thereof.
>
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
RE: Shindig OpenSocial 0.9 Templating (Custom Tags)
Posted by JP <je...@ixaris.com>.
Any ideas about this ? Anyone...
I am still trying to get it to work...
-----Original Message-----
From: JP [mailto:jeanpaul.ebejer@ixaris.com]
Sent: Wednesday, June 23, 2010 2:09 PM
To: users@shindig.apache.org
Subject: Shindig OpenSocial 0.9 Templating (Custom Tags)
Using shindig-1.1-BETA5-incubating-java, I was wondering why the following
simple custom tag gadget example does not produce any output:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="">
<Require feature="opensocial-0.9" />
<Require feature="opensocial-templates">
<Param name="process-on-server">true</Param>
</Require>
</ModulePrefs>
<Content type="html">
<![CDATA[
<script type="text/os-template"
xmlns:myapp="http://example.com/myapp" tag="myapp:HelloWorld">
<div style="font-size: 40px">Hello World!</div>
</script>
<script type="text/os-template">
<myapp:HelloWorld/>
</script>
]]>
</Content>
</Module>
This should output the text "Hello World!" using templating, no ? I got
this example from Opensocial 0.9
http://wiki.opensocial.org/index.php?title=OpenSocial_Templates_Developer%27
s_Guide
Any ideas to why it doesn't work ?
---------------------------------------------------------
This e-mail may contain confidential and privileged material for the sole
use of the intended recipient. Any review, use, distribution or disclosure
by others is strictly prohibited. If you are not the intended recipient (or
authorized to receive for the recipient), please contact the sender by reply
e-mail and delete all copies of this message or part thereof.
---------------------------------------------------------
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message or part thereof.