Re: [Tapestry 5.1]Loop with checkboxes
I finally created my own ControlledCheckbox mixin class. It solved this issue. Thanks b...@umd wrote: > > Hi, > > I am new in Tapestry and I am currently developing a webapp which aims at > launching virtual machine. I created a form in my .tml file with basic > inputs (TextArea, Checkbox, etc). Now I would like to create some > Checkboxes with a list of words from my .java file, and then to be able to > retrieve separatly their states. > > I found this > http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo > http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo > which is exactly what I want to do. > > However, in this following part, it uses a mixin ControlledCheckbox and > then controller : > > # > # > # t:mixins="man/ControlledCheckbox" > # controller="colorController" > # value="selected"/> > # ${color} > # > # > # > # > # > # value="prop:selectAll" /> > # Select all colours > # > # > > I have downloaded the .jar which contains the ControlledCheckbox.class > from this http://code.google.com/p/tapestry5examples/ url , added it as > an external jar in the Referenced Libraries of my Eclipse Project but I > didn't manage to use it. > > The error returned was "Unable to resolve 'ControlledCheckbox' to a mixin > class name". So how can I make this class (which is present in my .jar > file) a mixin class ? (I have already try to put this class in a .mixin > package but it didn't work) > > Then how does the "controller" parameter work ? > > Thanks. > > > -- View this message in context: http://www.nabble.com/-Tapestry-5.1-Loop-with-checkboxes-tp23524450p23623983.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry 5.1]Loop with checkboxes
Have you added the following to AppModule.java ? public static void contributeComponentClassResolver(Configuration configuration) { // Creates a virtual root pacakge for pages,components. configuration.add(new LibraryMapping("man", "net.sf.lombok")); } Shing --- On Wed, 13/5/09, b...@umd wrote: > From: b...@umd > Subject: [Tapestry 5.1]Loop with checkboxes > To: users@tapestry.apache.org > Date: Wednesday, 13 May, 2009, 11:45 PM > > Hi, > > I am new in Tapestry and I am currently developing a webapp > which aims at > launching virtual machine. I created a form in my .tml file > with basic > inputs (TextArea, Checkbox, etc). Now I would like to > create some Checkboxes > with a list of words from my .java file, and then to be > able to retrieve > separatly their states. > > I found this > http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo > http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo > > which is exactly what I want to do. > > However, in this following part, it uses a mixin > ControlledCheckbox and then > controller : > > # > > # > > # > > t:mixins="man/ControlledCheckbox" > # > > controller="colorController" > # > > value="selected"/> > # > > ${color} > # > > # > > # > > # > > > # > > > # > > t:id="colorController" > value="prop:selectAll" /> > # > Select > all colours > # > > # > > > I have downloaded the .jar which contains the > ControlledCheckbox.class from > this http://code.google.com/p/tapestry5examples/ url , added > it as an > external jar in the Referenced Libraries of my Eclipse > Project but I didn't > manage to use it. > > The error returned was "Unable to resolve > 'ControlledCheckbox' to a mixin > class name". So how can I make this class (which is present > in my .jar file) > a mixin class ? (I have already try to put this class in a > .mixin package > but it didn't work) > > Then how does the "controller" parameter work ? > > Thanks. > > > -- > View this message in context: > http://www.nabble.com/-Tapestry-5.1-Loop-with-checkboxes-tp23524450p23524450.html > Sent from the Tapestry - User mailing list archive at > Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[Tapestry 5.1]Loop with checkboxes
Hi, I am new in Tapestry and I am currently developing a webapp which aims at launching virtual machine. I created a form in my .tml file with basic inputs (TextArea, Checkbox, etc). Now I would like to create some Checkboxes with a list of words from my .java file, and then to be able to retrieve separatly their states. I found this http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo which is exactly what I want to do. However, in this following part, it uses a mixin ControlledCheckbox and then controller : # # # # ${color} # # # # # # # Select all colours # # I have downloaded the .jar which contains the ControlledCheckbox.class from this http://code.google.com/p/tapestry5examples/ url , added it as an external jar in the Referenced Libraries of my Eclipse Project but I didn't manage to use it. The error returned was "Unable to resolve 'ControlledCheckbox' to a mixin class name". So how can I make this class (which is present in my .jar file) a mixin class ? (I have already try to put this class in a .mixin package but I didn't work) Then how does the "controller" parameter work ? Thanks. -- View this message in context: http://www.nabble.com/-Tapestry-5.1-Loop-with-checkboxes-tp23524450p23524450.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org