Re: How to create Gmail contextual gadget using GWT?
As I understand now, you should insert separate injection file for each Require tag if you have to add more than one. Simeon Ross: Ah right. I have the same structure but when I try to add more than one Require tag I get XML parsing errors On 3 December 2010 20:23, Alexander akolc...@gmail.com wrote: On 2 дек, 03:24, Simeon Ross simeon.r...@arclight.com.au wrote: What is the structure of your inject.xml file? I had a lot of problems trying that approach and only was able to get one required tag in there otherwise I got compile issues for malformed xml My inject.xml: Require feature=google.contentmatch Param name=extractors google.com:MessageIDExtractor /Param /Require I didn't try add other tags yet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
So, what about getting attribute view=card in Content tag? How could I implement this? On 7 дек, 00:11, Eric Ayers zun...@google.com wrote: The way you get dynamic height is by implementing the NeedsDynamicHeight interface on your gadget. http://www.google.com/codesearch/p?hl=en#ow6Lmd7dcZY/trunk/gadgets/ga... On Mon, Dec 6, 2010 at 9:26 AM, Alexander akolc...@gmail.com wrote: By the way, some useful tags you should add using �...@featurename. For example: @FeatureName(value = dynamic-height) Details see herehttp://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted#A... But I still don't know how to get such tag automatically after compilation :( !-- Define the content type and display location. The settings html and card are required for all Gmail contextual gadgets. -- Content type=html view=card How to get added attribute view=card to Content tag? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
By the way, some useful tags you should add using @FeatureName. For example: @FeatureName(value = dynamic-height) Details see here http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted#Adding_container_features But I still don't know how to get such tag automatically after compilation :( !-- Define the content type and display location. The settings html and card are required for all Gmail contextual gadgets. -- Content type=html view=card How to get added attribute view=card to Content tag? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
The way you get dynamic height is by implementing the NeedsDynamicHeight interface on your gadget. http://www.google.com/codesearch/p?hl=en#ow6Lmd7dcZY/trunk/gadgets/gadgets/src/com/google/gwt/gadgets/client/NeedsDynamicHeight.javaq=NeedsDynamicHeight%20package:http://gwt-google-apis%5C.googlecode%5C.comsa=Ncd=1ct=rc On Mon, Dec 6, 2010 at 9:26 AM, Alexander akolc...@gmail.com wrote: By the way, some useful tags you should add using �...@featurename. For example: @FeatureName(value = dynamic-height) Details see here http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted#Adding_container_features But I still don't know how to get such tag automatically after compilation :( !-- Define the content type and display location. The settings html and card are required for all Gmail contextual gadgets. -- Content type=html view=card How to get added attribute view=card to Content tag? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
Ah right. I have the same structure but when I try to add more than one Require tag I get XML parsing errors On 3 December 2010 20:23, Alexander akolc...@gmail.com wrote: On 2 дек, 03:24, Simeon Ross simeon.r...@arclight.com.au wrote: What is the structure of your inject.xml file? I had a lot of problems trying that approach and only was able to get one required tag in there otherwise I got compile issues for malformed xml My inject.xml: Require feature=google.contentmatch Param name=extractors google.com:MessageIDExtractor /Param /Require I didn't try add other tags yet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
On 2 дек, 03:24, Simeon Ross simeon.r...@arclight.com.au wrote: What is the structure of your inject.xml file? I had a lot of problems trying that approach and only was able to get one required tag in there otherwise I got compile issues for malformed xml My inject.xml: Require feature=google.contentmatch Param name=extractors google.com:MessageIDExtractor /Param /Require I didn't try add other tags yet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create Gmail contextual gadget using GWT?
I've been having the same issue and I haven't got much further with it. What is the structure of your inject.xml file? I had a lot of problems trying that approach and only was able to get one required tag in there otherwise I got compile issues for malformed xml On Dec 2, 2:12 am, Alexander akolc...@gmail.com wrote: You can create usual gadget using thishttp://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted But the Gmail contextual gadgets has several differences from usual gadgets. The main is spec XML file. It should begin like this: Module ModulePrefs title=Hello World Require feature=google.contentmatch Param name=extractors google.com:MessageIDExtractor /Param /Require /ModulePrefs !-- Define the content type and display location. The settings html and card are required for all Gmail contextual gadgets. -- Content type=html view=card ... The usual gadget can start like this: Module ModulePrefs title=Hello World / Content type=html In order to get desired context gadget specification I added some code to usual gadget class: ... @ModulePrefs(title = GmCGadget, author = akolchin, author_email = akolc...@gmail.com) @InjectModulePrefs (files = inject.xml) @ContentType(views = card) @UseLongManifestName(false) @AllowHtmlQuirksMode(false) public class GmCGadget extends GadgetGmCGadget.Preferences { The line @InjectModulePrefs (files = inject.xml) works fine and adds desired elements to ModulePrefs node from inject.xml file. But the @ContentType(views = card) didn't' produce any effect. (I wished to add 'view=card' in the Conten) Could anybody help me? Maybe I have to add some other declarations to get desired effect? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to create Gmail contextual gadget using GWT?
You can create usual gadget using this http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted But the Gmail contextual gadgets has several differences from usual gadgets. The main is spec XML file. It should begin like this: Module ModulePrefs title=Hello World Require feature=google.contentmatch Param name=extractors google.com:MessageIDExtractor /Param /Require /ModulePrefs !-- Define the content type and display location. The settings html and card are required for all Gmail contextual gadgets. -- Content type=html view=card ... The usual gadget can start like this: Module ModulePrefs title=Hello World / Content type=html In order to get desired context gadget specification I added some code to usual gadget class: ... @ModulePrefs(title = GmCGadget, author = akolchin, author_email = akolc...@gmail.com) @InjectModulePrefs (files = inject.xml) @ContentType(views = card) @UseLongManifestName(false) @AllowHtmlQuirksMode(false) public class GmCGadget extends GadgetGmCGadget.Preferences { The line @InjectModulePrefs (files = inject.xml) works fine and adds desired elements to ModulePrefs node from inject.xml file. But the @ContentType(views = card) didn't' produce any effect. (I wished to add 'view=card' in the Conten) Could anybody help me? Maybe I have to add some other declarations to get desired effect? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.