The wicket quickstart project I just downloaded contains wicket 1.1.1 I vaguely remember that this was the case, and that I updated the release.
The current download for wicket-quickstart 1.1.1 does include the correct jar file. Martijn On 2/24/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Hmm > > If this is the case, I should update the quickstart for 1.1.1 > > Martijn > > > On 2/24/06, Nino Wael <[EMAIL PROTECTED]> wrote: > > > > > > > > Hmm the APIdoc state that the current version is 1.1.1, but the jar file to > > the quickstart project is 1.0.1, so I guess herein lies the problem, I'll > > try to rebuilt and see if it dosent fix it. Again thanks for your help, its > > much appreciated from at new comer to wicket(me). > > > > > > > > > > -Nino > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Igor Vaynberg > > Sent: Friday, February 24, 2006 5:02 PM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > all i can tell you isto make sure wicket.jar is on your buildpath under > > project properties. > > > > -Igor > > > > > > > > > > > > On 2/24/06, Nino Wael < [EMAIL PROTECTED]> wrote: > > > > > > Hi Igor > > > > > > > > Im using eclipse with myEclipse ontop, im pretty sure it should tell if > > constructors are not available. Could I have done something wrong In setting > > wicket up? > > > > > > > > BTW: the new propersition on coding you suggested gave me a similar error(it > > claims that wicket.markup.html.form.Radio does not exist im not able to find > > it browsing trough the packages). Looking at the documentation(apidocs) > > however it clearly states that it does. Which make be belive that Eclipse is > > setup wrongfully? > > > > > > > > I've followed the Quickstart tutorial and just copied the project and > > changed the naming, however I tried copying my code into the quickstart > > project, code is below. > > > > > > > > Am I completely of the rail here? > > > > > > > > public Index(final PageParameters parameters) > > > > { > > > > // TODO Add your page's components here > > > > > > wicket.markup.html.list.ListView myList; > > > > List maalinger > > = Arrays.asList(new String[][] { {"Aktuelle forløb fordelt på > > varighed","description"}, {"antal forløb","description"}, {"Forløb pr. > > berørt","description"}}); > > > > myList > > = new > > wicket.markup.html.list.ListView("maaling2",maalinger) > > > > > > > > { > > > > public void > > populateItem(wicket.markup.html.list.ListItem item) > > > > { > > > > String[] > > myItem=(String[]) item.getModelObject(); > > > > String radio= > > myItem[0]; > > > > String info= > > myItem[1]; > > > > > > > > Model > > myModel=new Model(radio); > > > > > > > > > > wicket.markup.html.form.Radio myRadio=new > > wicket.markup.html.form.Radio("d", myModel); > > > > > > > > > > item.add(myRadio); > > > > > > item.add(new > > Label("info",info)); > > > > } > > > > }; > > > > > > > > } > > > > > > > > Have a great weekend J > > > > > > -Regards Nino > > > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Igor Vaynberg > > Sent: Thursday, February 23, 2006 4:59 PM > > > > > > > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > > > there is no constructor Radio(String,String) > > > > are you not using an IDE that can tell you which constructors are > > available? > > > > to fix you need to do new Radio("radio", new Model(radio)); > > > > -Igor > > > > > > On 2/23/06, Nino Wael < [EMAIL PROTECTED]> wrote: > > > > > > > > Can any of you see whats wrong with the code? Or can't I use the Radio class > > directly? > > > > > > > > Do I need to implement a similar method like populateItem for my ListView? > > > > > > > > -regards Nino > > > > > > > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Nino Wael > > Sent: Thursday, February 23, 2006 11:57 AM > > > > > > > > To: wicket-user@lists.sourceforge.net > > Subject: RE: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > > > > > So Now im trying to expand my previous code however I get this message > > "Radio cannot be resolved to a type". My code is below: > > > > > > > > public void > > populateItem(wicket.markup.html.list.ListItem item) > > > > { > > > > String[] > > myItem=(String[]) item.getModelObject(); > > > > String radio= > > myItem[0]; > > > > String info= > > myItem[1]; > > > > > > > > item.add(new > > Radio("radio",radio)); > > > > item.add(new > > Label("info",info)); > > > > } > > > > > > > > And the symbiose markup > > > > < table > > > > > < tr wicket:id = "maaling2" > > > > > < td wicket:id = "id" > </ > > > > td > > > > > < td >< input type = "radio" name = "RadioMaaling" > </ td > > > > > < td wicket:id = "info" > </ td > > > > > </ tr > > > > > </ table > > > > > > > > > I feel that im so close to a solution that I almost can taste itJ > > > > > > > > -regards Nino > > > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Nino Wael > > Sent: Thursday, February 23, 2006 11:17 AM > > To: wicket-user@lists.sourceforge.net > > Subject: RE: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > > > Even more nice, this is working exactly as I thought. > > > > > > > > This is actually pretty easy to work with. > > > > > > > > Thanks for helping out. > > > > > > > > -Regards Nino > > > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Martijn Dashorst > > Sent: Thursday, February 23, 2006 11:02 AM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > Yep, > > > > only attach the listview not to the table, but to the tr. In your current > > implementation this will render the following: > > > > <table wicket:id="maalinger"> > > <tr><td wicket:id="">Actuelle forlob fordelt pa > > varighed</td><td>description</td></tr> > > </table> > > <table wicket:id="maalinger"> > > <tr><td wicket:id="">antal > > forlob</td><td>description</td></tr> > > </table> > > <table wicket:id="maalinger"> > > <tr><td wicket:id="">Forlob pr > > berort</td><td>description</td></tr> > > </table> > > > > Martijn > > > > > > > > On 2/23/06, Nino Wael < [EMAIL PROTECTED]> wrote: > > > > > > > > Very nice, bringing my mind back to the mail I wrote earlier(radio buttons > > with a twist) I guess I then could do the following, code might not be 100% > > accurate: > > > > > > > > > > > > List maalinger = Arrays.asList(new String[][] { {"Aktuelle forl� b fordelt > > p� varighed","description"}, {"antal forl� b","description"}, {"Forl� b pr. > > ber� rt","description"}}); > > > > > > > > > > myList = new > > wicket.markup.html.list.ListView("maaling2",maalinger) > > > > { > > > > public void > > populateItem(wicket.markup.html.list.ListItem item) > > > > { > > > > String[] > > myItem=(String[]) item.getModelObject(); > > > > String radio= > > myItem[0]; > > > > String info= > > myItem[1]; > > > > > > > > item.add(new > > Radio("radio", radio)); > > > > item.add(new > > Label("info",info)); > > > > } > > > > }; > > > > > > > > > > > > form.add(myList); > > > > > > > > Markup: > > > > > > > > < table wicket:id = "maaling2" > > > > > < tr > > > > > < td wicket:id = "radio" > </ > > > > td >< td wicket:id = "info" > </ td > > > > > </ tr > > > > > </ table > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Martijn Dashorst > > Sent: Thursday, February 23, 2006 10:22 AM > > > > > > > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > > > > > populateItem gives you the ListItem that is being created. > > > > add your controls to the item in the populateItem method. > > > > protected void populateItem(ListItem item) { > > item.add(new Label("name", new PropertyModel( item.getModelObject(), > > "name"))); > > } > > > > In your case that would be: > > protected void populateItem(ListItem item) { > > item.add(new Label("name", item.getModelObjectAsString())); > > } > > > > and in the markup: > > > > <p wicket:id="list"><span wicket:id="name">text goes here</span></p> > > > > Martijn > > > > > > > > On 2/23/06, Nino Wael < [EMAIL PROTECTED]> wrote: > > > > > > > > Thanks, looking at the example again I see that. > > > > > > > > However I have some difficulty seeing how I would be able to grab the > > contents of my List "forklaringer" from within the populateItem. Could you > > give an example? > > > > > > > > > > -Nino > > > > ________________________________ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Nick Heudecker > > Sent: Thursday, February 23, 2006 8:42 AM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > > > > > ListView is abstract. You must implement the populateItem(...) method: > > > > new ListView("list", forklaring) { > > public void populateItem(ListItem item) { > > // add stuff to item. > > } > > }; > > > > > > > > On 2/23/06, Nino Wael < [EMAIL PROTECTED]> wrote: > > > > Hi > > > > Im having trouble instantiateing the Listview control, I get the error > > "Cannot Instiantiate the type ListView" . This is within these lines the > > errors occur: > > > > private wicket.markup.html.list.ListView myList; > > > > … > > > > List forklaring = Arrays.asList(new String[] { "Aktuelle forl�b > > fordelt p � varighed", "antal forl�b", "Forl�b pr. ber �rt", "�", "�", "�" > > }); > > > > myList = new wicket.markup.html.list. > > ListView("list",forklaring); > > > > … > > > > This part is taken from the javadoc documentation: > > > > add(new ListView("rows", listData) > > > > which I belive is pretty similar to the code which I've written . > > > > - Nino > > > > > > > > > > > > > > -- > > Living a wicket life... > > > > Martijn Dashorst - http://www.jroller.com/page/dashorst > > > > Wicket 1.1.1 is out: > > http://wicket.sourceforge.net/wicket-1.1 > > > > > > > > > > > > > > -- > > Living a wicket life... > > > > Martijn Dashorst - http://www.jroller.com/page/dashorst > > > > Wicket 1.1.1 is out: > > http://wicket.sourceforge.net/wicket-1.1 > > > > > > > > > > > -- > Living a wicket life... > > Martijn Dashorst - http://www.jroller.com/page/dashorst > > Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 > -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�����v&��קv�^�+����j�Z����{az����^��h���n���)��{h�����ا��+h�(m�����Z��jY�w��ǥrg