Hi, Carlos Lobato! Welcome to the Apache Click community, On Mon, Dec 26, 2011 at 12:33 PM, Carlos Lobato <[email protected]> wrote: > Hello to everyone in the Apache Click community, > > I've been using Click for a couple weeks, reading the documentation and the > online examples (click.avoka.com) and found one I wish to implement which is > the populate on select feature, but I'm having trouble in the part of > implementing the velocity template, the example includes a method that > builds a template from the Select objects in my form, and states this:
You don't need the List<Element> getHeadElements() method implementation. It was used to inject a js portion which show us the final result (when we select all three select component). You can use the logic in the onInit() method to implement your own. You don't need any template to use the Select component[1]. Regards, Gilberto [1] http://click.apache.org/docs/click-api/org/apache/click/control/Select.html > > // populate-on-select.js is a Velocity template which is rendered directly > // from this Page > > My question is, is this javascript template file included in Click 2.3.0? > The selects have the onchange attribute set to a handleChange method that is > giving me errors. I did create a populate-on-select.js file in my project > and gave the JScript constructor its location however I haven't been able to > make it work, so that's why I ask for your help. > > Thanks in advance and happy 2012, > > -Carlos Lobato > > >
