This is actually possible - you just POST to the rendering URL with param
&rawxml=<gadget spec>.

Code location isn't intuitive. It works if you're using a GadgetSpecFactory
that extends (or is) DefaultGadgetSpecFactory:

http://codesearch.google.com/codesearch/p?hl=en#oS3Kom0H2nk/trunk/shindig/shindig_735392/java/gadgets/src/main/java/org/apache/shindig/gadgets/DefaultGadgetSpecFactory.java&q=RAW_GADGETSPEC%20file:shindig&l=66

--j


On Tue, Mar 8, 2011 at 11:04 AM, Dennis Ju <[email protected]> wrote:

> Hello,
>
> I was wondering if there was a way to render a gadget by passing a gadget's
> XML content instead of passing a URL. Looking through the
> GadgetRenderingServlet class, it looks like this isn't doable.
>
> Use case for rendering via the content would be to get a quick preview of
> the gadget.
>
> Any thoughts on adding such a feature?  Or is this already possible and am
> I
> just missing it?
>
> Thanks,
> Dennis
>

Reply via email to