THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public class MyPage extends WebPage { public MyPage() { } public void renderHead(IHeaderResponse response) { super.renderHead(response) response.renderJavascriptReference(new PackageResourceReferenceJavaScriptResourceReference(YuiLib.class, "yahoo-dom-event/yahoo-dom-event.js")); response.renderCSSReference(new PackageResourceReferenceCssResourceReference(AbstractCalendar.class, "assets/skins/sam/calendar.css")); } } |
Likewise, For Panels & other class inheriting from WebMarkupContainer, add a behavior to render the references
Code Block |
---|
public class MyPage extends WebPage { public MyPage() { WebMarkupContainer c=new WebMarkupContainer(); c.add(HeaderContributor.forJavaScript(YuiLib.class, "yahoo-dom-event/yahoo-dom-event.js")); add(c); } } |
...