You might get some inspiration from these working examples: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
HTH, Geoff On 24/01/2010, at 5:59 AM, kamiseq wrote: > ok, then how should I use it, or maybe tutorial is all wrong and is just > misleading. > > I have a simple class > class MyDict > private int idInDb; > private string descr; > > All I want to do is to convert list of such a class into html select's > options list! > and all I found on the net was the tutorial I tired to used and few related > articles. > > how would you advise to do this. where to look, what to read! > > ps. and something extra ;] how should I marshal single class (like above) > into html element? > how can use this with beandisplay or grid component > > thanks for help > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski....@gmail.com > ______________________ > > > On 23 January 2010 16:05, Ulrich Stärk <u...@spielviel.de> wrote: > >> Don't put your SelectCollectionModel inside the components, pages or base >> subpackages. Otherwise Tapestry will try to enhance it and fail because the >> superclass is not in a controlled package - as the exception message says. >> >> Uli >> >> kamiseq schrieb: >> >> I dont get it! >>> AbstractSelectModel class comes from org.apache.tapestry5.util package so >>> why should I care about that class! >>> >>> should I replace that class with my own???? >>> I just comy paste solution from that tutorial ( >>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects) [except >>> addOptionGroup function as I dont see where it could be used] >>> so it should work! >>> >>> pozdrawiam >>> Paweł Kamiński >>> >>> kami...@gmail.com >>> pkaminski....@gmail.com >>> ______________________ >>> >>> >>> On 22 January 2010 16:11, Joost Schouten (ml) <joost...@jsportal.com> >>> wrote: >>> >>> Did you replace the mypackage with your actual package name? >>>> >>>> Lets say your AppModule lives in >>>> >>>> com.domain.services >>>> >>>> your AbstractSelectModel should be places in >>>> >>>> com.domain.base >>>> >>>> Hope it helps, >>>> Joost >>>> >>>> >>>> kamiseq wrote: >>>> >>>> hi all, >>>>> I run into a strange problem, I was googling for this, but still have no >>>>> idea what is going on :( >>>>> >>>>> i followed the >>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and >>>>> after >>>>> running the page I got error message >>>>> >>>>> java.lang.RuntimeException: Base class >>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of >>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a >>>>> controlled >>>>> package and is therefore not valid. You should try moving the class to >>>>> package mypackage.base. >>>>> >>>>> just to try I refactored my code and put my class >>>>> into mypackage.base.SelectCollectionModel like I was asked - no change. >>>>> the >>>>> problem persisted. >>>>> >>>>> please help >>>>> >>>>> pozdrawiam >>>>> Paweł Kamiński >>>>> >>>>> kami...@gmail.com >>>>> pkaminski....@gmail.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 >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org