Re: [Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-28 Thread Jaime De La Jara
The problem was I copied the fragment in the ListContactsPage and it had to be included in the BasePage which is the superclass of the former page. In my code I referenced the ListContactsPage.this variable otherwise it wouldn't have compiled.Thanks.Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: you

Re: [Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-27 Thread Jaime De La Jara
I used my name page otherwise it wouldn't have compiled :).Here is the markup :wicket:extenda href="" wicket:id="createLink"Create New Contact/abr/br/table wicket:id="users" cellspacing="0" cellpadding="2" class="grid" wicket:fragment id="addr-frag" select wicket:id="dropdown"/select

[Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-26 Thread Jaime De La Jara
Hi, playing with the phonebook example app I added a collection field to Contact class, this field is a collection of instances of class Address which has two String fields : city and street. I'd like to display a drop down choice containing the street property for each address instance that a

Re: [Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-26 Thread Igor Vaynberg
dont quote me on thisin MyPage.htmlwicket:fragment id=addresses-fragselect wicket:id=dropdown/select/wicket:fragmentclass MyPage {class AddressColumn extends AbstractColumn { void populateItem(final Item cellItem, final String componentId, final IModel rowModel) { Fragment frag=new

Re: [Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-26 Thread Jaime De La Jara
I tried the code, but it throws the following exception :Exception : wicket.markup.MarkupException: Markup does not contain a fragment with id=addr-frag; Component: [MarkupContainer [Component id = cell, page = wicket.contrib.phonebook.web.page.ListContactsPage, path =

Re: [Wicket-user] rendering of a collection property in a PropertyColumn

2006-09-26 Thread Igor Vaynberg
you need to be more careful when copying code :)Fragment frag=new Fragment(componentId, addresses-frag, Mypage.this);which in your case would be Fragment frag=new Fragment(componentId, addresses-frag, ListContactsPage.this);-IgorOn 9/26/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I tried the