You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ajay singh <aj...@tekritisoftware.com> on 2009/01/08 09:35:12 UTC
why gadget.Prefs test failed?
Hi
After running complaince test I am getting several gadget.Prefs Test Suite error -
gadget.Prefs Test Suite :: PREF010
getInt(myCounter): FAILED: (got '0'), expected '100'
getBool(myBool): FAILED: (got 'false'), expected 'true'
getArray(myTestArray) length: FAILED: (got '0'), expected '3'
getMsg('hello_world'): FAILED: (got ''), expected 'Hello World.'
getFloat(myFloat): FAILED: (got '0'), expected '3.43'
How can I remove those error?
Thanks
Ajay
Re: Container title
Posted by Matthew Russell <ma...@digitalreasoning.com>.
Karthi -
This may not work for your situation long term, but as a stop gap if
you just need something this very moment, you can pass in "title" to
the object of params (along with specUrl and all that) when you invoke
createGadget.
On Jan 8, 2009, at 11:24 AM, karthi keyan wrote:
> Thanks for your reply dave. I exactly tried the below. It didn't
> throw me any error. But the title didn't appeared instead title was
> displayed as "title". I don't know what is wrong ? should I include
> any files ?
>
> I am just using the sample container page as template and I build
> other gadgets with that. Please let me know if I am wrong in any
> place.
>
> Thanks,
> Karthi
>
>
>
> ----- Original Message ----
> From: "Citron, David" <dc...@sonusnet.com>
> To: shindig-dev@incubator.apache.org
> Sent: Thursday, January 8, 2009 12:16:52 PM
> Subject: RE: Container title
>
> Was this one of the things you tried?
>
> <Module>
> <ModulePrefs title="Put your title here">
> ...
>
> To support dynamic title modification, you can then add:
>
> <Require feature="settitle"/>
> </ModulePrefs>
>
> and then in JavaScript, do:
>
> gadgets.window.setTitle("Some other title");
>
> assuming that the container supports it.
>
> What else did you try?
> -Dave
>
> -----Original Message-----
> From: karthi keyan [mailto:tskarthi2001@yahoo.com]
> Sent: Thursday, January 08, 2009 12:14 PM
> To: shindig-dev@incubator.apache.org
> Subject: Container title
>
> Hi,
>
> I need to set the title to my gadget. I tried a lot and nothing
> worked for me. Can anyone please help me ? Thanks in Advance.
>
> Thanks,
> Karthi
>
>
>
RE: Container title
Posted by "Citron, David" <dc...@sonusnet.com>.
Speaking of caching, I found that it was necessary to set:
shindig.content-rewrite.expires=0
shindig.cache.http.defaultTtl=0
shindig.cache.http.negativeCacheTtl=0
in shindig\java\common\conf\shindig.properties to fully disable
server-side caching (allowing gadget changes to immediately reflect in
the browser).
-Dave
-----Original Message-----
From: Matthew Russell [mailto:matthew.russell@digitalreasoning.com]
Sent: Thursday, January 08, 2009 12:38 PM
To: shindig-dev@incubator.apache.org
Subject: Re: Container title
Hmm. I just verified that gadgets.window.setTitle seems to be working
fine with the latest code I checked out a day or two ago. Maybe you
are experiencing a caching problem of some kind? Have you tried adding
nocache=1 into your url and all that? (My layout manager inherits
directly from gadgets.LayoutManager similar to the sample code.)
On Jan 8, 2009, at 11:24 AM, karthi keyan wrote:
> Thanks for your reply dave. I exactly tried the below. It didn't
> throw me any error. But the title didn't appeared instead title was
> displayed as "title". I don't know what is wrong ? should I include
> any files ?
>
> I am just using the sample container page as template and I build
> other gadgets with that. Please let me know if I am wrong in any
> place.
>
> Thanks,
> Karthi
>
>
>
> ----- Original Message ----
> From: "Citron, David" <dc...@sonusnet.com>
> To: shindig-dev@incubator.apache.org
> Sent: Thursday, January 8, 2009 12:16:52 PM
> Subject: RE: Container title
>
> Was this one of the things you tried?
>
> <Module>
> <ModulePrefs title="Put your title here">
> ...
>
> To support dynamic title modification, you can then add:
>
> <Require feature="settitle"/>
> </ModulePrefs>
>
> and then in JavaScript, do:
>
> gadgets.window.setTitle("Some other title");
>
> assuming that the container supports it.
>
> What else did you try?
> -Dave
>
> -----Original Message-----
> From: karthi keyan [mailto:tskarthi2001@yahoo.com]
> Sent: Thursday, January 08, 2009 12:14 PM
> To: shindig-dev@incubator.apache.org
> Subject: Container title
>
> Hi,
>
> I need to set the title to my gadget. I tried a lot and nothing
> worked for me. Can anyone please help me ? Thanks in Advance.
>
> Thanks,
> Karthi
>
>
>
Re: Container title
Posted by Matthew Russell <ma...@digitalreasoning.com>.
Hmm. I just verified that gadgets.window.setTitle seems to be working
fine with the latest code I checked out a day or two ago. Maybe you
are experiencing a caching problem of some kind? Have you tried adding
nocache=1 into your url and all that? (My layout manager inherits
directly from gadgets.LayoutManager similar to the sample code.)
On Jan 8, 2009, at 11:24 AM, karthi keyan wrote:
> Thanks for your reply dave. I exactly tried the below. It didn't
> throw me any error. But the title didn't appeared instead title was
> displayed as "title". I don't know what is wrong ? should I include
> any files ?
>
> I am just using the sample container page as template and I build
> other gadgets with that. Please let me know if I am wrong in any
> place.
>
> Thanks,
> Karthi
>
>
>
> ----- Original Message ----
> From: "Citron, David" <dc...@sonusnet.com>
> To: shindig-dev@incubator.apache.org
> Sent: Thursday, January 8, 2009 12:16:52 PM
> Subject: RE: Container title
>
> Was this one of the things you tried?
>
> <Module>
> <ModulePrefs title="Put your title here">
> ...
>
> To support dynamic title modification, you can then add:
>
> <Require feature="settitle"/>
> </ModulePrefs>
>
> and then in JavaScript, do:
>
> gadgets.window.setTitle("Some other title");
>
> assuming that the container supports it.
>
> What else did you try?
> -Dave
>
> -----Original Message-----
> From: karthi keyan [mailto:tskarthi2001@yahoo.com]
> Sent: Thursday, January 08, 2009 12:14 PM
> To: shindig-dev@incubator.apache.org
> Subject: Container title
>
> Hi,
>
> I need to set the title to my gadget. I tried a lot and nothing
> worked for me. Can anyone please help me ? Thanks in Advance.
>
> Thanks,
> Karthi
>
>
>
Re: Container title
Posted by karthi keyan <ts...@yahoo.com>.
Thanks for your reply dave. I exactly tried the below. It didn't throw me any error. But the title didn't appeared instead title was displayed as "title". I don't know what is wrong ? should I include any files ?
I am just using the sample container page as template and I build other gadgets with that. Please let me know if I am wrong in any place.
Thanks,
Karthi
----- Original Message ----
From: "Citron, David" <dc...@sonusnet.com>
To: shindig-dev@incubator.apache.org
Sent: Thursday, January 8, 2009 12:16:52 PM
Subject: RE: Container title
Was this one of the things you tried?
<Module>
<ModulePrefs title="Put your title here">
...
To support dynamic title modification, you can then add:
<Require feature="settitle"/>
</ModulePrefs>
and then in JavaScript, do:
gadgets.window.setTitle("Some other title");
assuming that the container supports it.
What else did you try?
-Dave
-----Original Message-----
From: karthi keyan [mailto:tskarthi2001@yahoo.com]
Sent: Thursday, January 08, 2009 12:14 PM
To: shindig-dev@incubator.apache.org
Subject: Container title
Hi,
I need to set the title to my gadget. I tried a lot and nothing worked for me. Can anyone please help me ? Thanks in Advance.
Thanks,
Karthi
RE: Container title
Posted by "Citron, David" <dc...@sonusnet.com>.
Incidentally, full documentation is here: http://code.google.com/apis/gadgets/docs/reference.html
Thanks,
Dave
-----Original Message-----
From: Citron, David [mailto:dcitron@sonusnet.com]
Sent: Thursday, January 08, 2009 12:17 PM
To: shindig-dev@incubator.apache.org
Subject: RE: Container title
Was this one of the things you tried?
<Module>
<ModulePrefs title="Put your title here">
...
To support dynamic title modification, you can then add:
<Require feature="settitle"/>
</ModulePrefs>
and then in JavaScript, do:
gadgets.window.setTitle("Some other title");
assuming that the container supports it.
What else did you try?
-Dave
-----Original Message-----
From: karthi keyan [mailto:tskarthi2001@yahoo.com]
Sent: Thursday, January 08, 2009 12:14 PM
To: shindig-dev@incubator.apache.org
Subject: Container title
Hi,
I need to set the title to my gadget. I tried a lot and nothing worked for me. Can anyone please help me ? Thanks in Advance.
Thanks,
Karthi
RE: Container title
Posted by "Citron, David" <dc...@sonusnet.com>.
Was this one of the things you tried?
<Module>
<ModulePrefs title="Put your title here">
...
To support dynamic title modification, you can then add:
<Require feature="settitle"/>
</ModulePrefs>
and then in JavaScript, do:
gadgets.window.setTitle("Some other title");
assuming that the container supports it.
What else did you try?
-Dave
-----Original Message-----
From: karthi keyan [mailto:tskarthi2001@yahoo.com]
Sent: Thursday, January 08, 2009 12:14 PM
To: shindig-dev@incubator.apache.org
Subject: Container title
Hi,
I need to set the title to my gadget. I tried a lot and nothing worked for me. Can anyone please help me ? Thanks in Advance.
Thanks,
Karthi
Container title
Posted by karthi keyan <ts...@yahoo.com>.
Hi,
I need to set the title to my gadget. I tried a lot and nothing worked for me. Can anyone please help me ? Thanks in Advance.
Thanks,
Karthi
Re: why gadget.Prefs test failed?
Posted by ajay singh <aj...@tekritisoftware.com>.
I am still getting one error in complaince testgetMsg('hello_world'): FAILED: (got ''), expected 'Hello
World.'
How to remove this?
Thanks
--- On Thu, 1/8/09, ajay singh <aj...@tekritisoftware.com> wrote:
From: ajay singh <aj...@tekritisoftware.com>
Subject: why gadget.Prefs test failed?
To: "shindig" <sh...@incubator.apache.org>
Date: Thursday, January 8, 2009, 2:05 PM
Hi
After running complaince test I am getting several gadget.Prefs Test Suite
error -
gadget.Prefs Test Suite :: PREF010
getInt(myCounter): FAILED: (got '0'), expected '100'
getBool(myBool): FAILED: (got 'false'), expected 'true'
getArray(myTestArray) length: FAILED: (got '0'), expected '3'
getFloat(myFloat): FAILED: (got '0'), expected '3.43'
How can I remove those error?
Thanks
Ajay