My bad everything is working, I was just bad at checking :(
On Sat, May 18, 2013 at 8:35 PM, Boris Horvat <horvat.z.bo...@gmail.com>wrote: > Hi all, > > I am not sure what am I doing wrong. > > > <div t:type="any" t:mixins="jscrollpane" t:options="{scrollToElement:0}"> > > > @Import(library = {"init-jscrollpane.js", "jquery.scrollpane.min.js", > "jquery.mousewheel.js"}, stylesheet = {"jscrollpane.css"}) > public class JScrollPane { > > /** > * The JSON parameter for your widget > */ > @Parameter(defaultPrefix = BindingConstants.LITERAL) > private JSONObject options; > @InjectContainer > private ClientElement clientElement; > @Inject > private JavaScriptSupport js; > > void afterRender() { > if (options == null) { > options = new JSONObject(); > } > JSONObject opt = new JSONObject(); > opt.put("id", clientElement.getClientId()); > opt.put("params", options); > js.addInitializerCall("jscrollpane", opt); > } > } > > > but for some reason my options is always null :( > > Any ideas? > -- > Sincerely > *Boris Horvat* > -- Sincerely *Boris Horvat*