os-template issue (Is it down?)

0 views
Skip to first unread message

Sanjay

unread,
Jun 11, 2009, 2:17:03 AM6/11/09
to Orkut Developer Forum
Hi,

We had released an application a few days back and it was working
fine. But from yesterday we see that all the templates used are being
rendered at one go. That is, while opening the canvas view, a long
page is seen containing the UI of all the screens that we have.

We have not changed anything. Is the os-template system down, or is
there any version upgrades and we need to update our code?

The application is -> http://www.orkut.com/Application.aspx?appId=506678662964

thanks,
Sanjay

Sanjay

unread,
Jun 11, 2009, 7:32:14 AM6/11/09
to Orkut Developer Forum
Just discovered the use of autoRender="false" at
http://wiki.opensocial.org/index.php?title=Social_Mashup_Tutorial_(v0.9)

Is it what just implemented at Orkut, and we have to change our code
accordingly? Seeking for inputs from Orkut team. Our code is at
http://course.gcollab.com/public/release/course.xml

thanks
Sanjay

Sanjay

unread,
Jun 12, 2009, 3:41:07 AM6/12/09
to Orkut Developer Forum
> > We had released an application a few days back and it was working
> > fine. But from yesterday we see that all the templates used are being
> > rendered at one go. That is, while opening the canvas view, a long
> > page is seen containing the UI of all the screens that we have.
>
> > We have not changed anything. Is the os-template system down, or is
> > there any version upgrades and we need to update our code?
>
> > The application is ->http://www.orkut.com/Application.aspx?appId=506678662964
>
> Just discovered the use of autoRender="false" athttp://wiki.opensocial.org/index.php?title=Social_Mashup_Tutorial_(v0.9)
>
> Is it what just implemented at Orkut, and we have to change our code
> accordingly? Seeking for inputs from Orkut team. Our code is athttp://course.gcollab.com/public/release/course.xml

autoRender="false" did not work. Also, we tried

<Require feature="opensocial-templates">
<Param name="disableAutoProcessing">true</Param>
</Require>

But, the application hanged.

We remain clueless. Our live application has suddenly seems messy.
ORKUT TEAM - PLEASE RESPOND.

thanks
Sanjay

Jose Peleteiro

unread,
Jun 13, 2009, 8:10:08 PM6/13/09
to opensoci...@googlegroups.com
Same here. What did you do?

Sachin Shenoy

unread,
Jun 14, 2009, 1:17:25 AM6/14/09
to opensoci...@googlegroups.com
Sorry for the delay in responding.

Can you try putting this is gadget spec and see if it does what you expect.

<Require feature="opensocial-templates">
   <Param name="disableAutoProcessing">true</Param>
</Require>

Regards,
Sachin

Sanjay Patel

unread,
Jun 15, 2009, 3:07:12 AM6/15/09
to opensoci...@googlegroups.com
Hi Sachin, Jose,

Can you try putting this is gadget spec and see if it does what you expect.

<Require feature="opensocial-templates">
   <Param name="disableAutoProcessing">true</Param>
</Require>

As mentioned earlier, we had already tried that. Also tried that today again. But the application is hanging. Does it work for others?

This has become a real show stopper for us. Our live application is down. Please let us know if some upgradation is going on your end and what is the state.

Ashok.s New Delhi

unread,
Jun 15, 2009, 5:51:35 AM6/15/09
to opensoci...@googlegroups.com

  Hi

  I have a Problem.

  When (owner == viewer)  &  (owner != viewer)
  In both cases  " NavigateToApp " Link  goes to owner canvas page.

  When  (owner != viewer)  the link should goes to viewer canvas  page.
  But currently the link goes to owner canvas page.

  It is a Bug.

  How to redirect  to Viewer Canvas page. When  (owner != viewer) ?
  Pls let me know ...




--
With Regards,
Ashokkumar.S
09711560696.

Ashok.s New Delhi

unread,
Jun 15, 2009, 5:52:07 AM6/15/09
to opensoci...@googlegroups.com

  Hi

  I have a Problem.

  When (owner == viewer)  &  (owner != viewer)
  In both cases  " NavigateToApp " Link  goes to owner canvas page.

  When  (owner != viewer)  the link should goes to viewer canvas  page.
  But currently the link goes to owner canvas page.

  It is a Bug.

  How to redirect  to Viewer Canvas page. When  (owner != viewer) ?
  Pls let me know ...

Jose Peleteiro

unread,
Jun 15, 2009, 7:48:50 AM6/15/09
to opensoci...@googlegroups.com
I got sucess using "require"

<script type="script/template" require="do_not_auto_render">....</script>

When redering by javascript, remeber to set to do_not_auto_render any value.

Thanks,
Jose Peleteiro

Sanjay Patel

unread,
Jun 15, 2009, 9:47:43 AM6/15/09
to opensoci...@googlegroups.com
Can you try putting this is gadget spec and see if it does what you expect.

<Require feature="opensocial-templates">
   <Param name="disableAutoProcessing">true</Param>
</Require>

As mentioned earlier, we had already tried that. Also tried that today again. But the application is hanging. Does it work for others?

Found the reason why it hangs. os.getTemplate(...) is not able to find the template when disableAutoProcessing is true. A bug?

Sanjay Patel

unread,
Jun 15, 2009, 10:02:23 AM6/15/09
to opensoci...@googlegroups.com
I got sucess using "require" 

<script type="script/template" require="do_not_auto_render">....</script>

When redering by javascript, remeber to set to do_not_auto_render any value.

Great! Thanks a lot, Jose. It works.

But is this not a hack? Have expressed my concerns here -> http://groups.google.com/group/opensocial-orkut/browse_thread/thread/9519a325af4cc8cf
 

Jose Peleteiro

unread,
Jun 15, 2009, 3:56:52 PM6/15/09
to opensoci...@googlegroups.com
I gave up on using os-templates for client-side templating. I'm using
os-templates as much as I can on "container-side" and EJS for
client-side templating.

Sanjay Patel

unread,
Jun 16, 2009, 2:38:49 AM6/16/09
to opensoci...@googlegroups.com
I gave up on using os-templates for client-side templating. I'm using
os-templates as much as I can on "container-side" and EJS for
client-side templating.

Thanks for referring EJS - seems quite useful alternative.

I could not understand what is "container-side" os-templates. Quite curious to know.

Sanjay

Jose Peleteiro

unread,
Jun 16, 2009, 8:05:03 AM6/16/09
to opensoci...@googlegroups.com
Container-side = Templates rendered on Orkut servers, not at the
client-browser using Javascript.

Apurv Gupta

unread,
Jun 16, 2009, 8:21:47 AM6/16/09
to opensoci...@googlegroups.com
Sanjay,

Orkut team doesn't support using client side templates [I think I have spoken to you once before about it].

It might work because Shindig has it, but we little experience with it.
We haven't experimented with it as in writing our own apps etc.

Thanks,
-apurv

Sanjay Patel

unread,
Jun 17, 2009, 3:27:51 AM6/17/09
to opensoci...@googlegroups.com
Orkut team doesn't support using client side templates [I think I have spoken to you once before about it].

It might work because Shindig has it, but we little experience with it.
We haven't experimented with it as in writing our own apps etc.

I use process-on-server=true. The examples in the opensocial wiki and orkut site all do this. I guess it means server side templating, which I think Orkut not only supports, but strongly recommends. Is not so?

Coming back to the original issue, what could be the reason and the solution? Can someone from Orkut go through this thread and comment?

As a side business, would be interested get some references on client-side os-templates, how it works etc.

thanks,
Sanjay
Reply all
Reply to author
Forward
0 new messages