AnsweredAssumed Answered

Hello World Widget tutorial

Question asked by DoughBoy526 on Feb 28, 2011
Latest reply on Nov 12, 2011 by NathanielElliott

I have been trying to work out this tutorial all day and everything was easy except I cannot get it to pick up the .ftl file.  The result is a widget that just has a title.  You can edit the properties (so I know it is picking up the .properties file at least), but no effect.  Attached is the jar and .java src file.

 

I have seen a lot of questions about this on the forum, and a lot of people declaring success after a while, but no one posted the solution.

 

I am pasting the .ft declaration from the src file here in case something is obvious:

 

    // FreeMarker template for rendering preview and published widget.
    private static final String FREEMARKER_FILE = "/plugins/example/resources/HelloWorldWidget.ftl";

    // FreeMarker template for rendering preview and published widget.

    private static final String FREEMARKER_FILE = "/plugins/example/resources/HelloWorldWidget.ftl";

Outcomes