Thanks for the feedback, I’ve gotten
the basics working but I have two remaining problems:
This is my code excerpt so far: IColumn[] columns = new IColumn[3]; columns[0] = new
FilteredAbstractColumn(new Model("Actions")) {…..}; columns[1] = new
TextFilteredPropertyColumn(new Model("Name"),"name",
"name"); columns[2] = new
ChoiceFilteredPropertyColumn(new Model("Manufacturer"),"manufacturer",
"manufacturer", new Model((Serializable) getSpringHibernateService().getManufacturers()))
; PhonesDataProvider dataProvider = new
PhonesDataProvider(getSpringHibernateService()); DefaultDataTable phones = new
DefaultDataTable("phones", Arrays.asList(columns), dataProvider, 10); phones.addTopToolbar(new
FilterToolbar(phones, dataProvider)); add(phones); The getManufacturers() function returns a
List<Manufacturer> with manufacturer.name. I’ve tried columns[2] = new
ChoiceFilteredPropertyColumn(new Model("Manufacturer"),"manufacturer.name",
"manufacturer.name", new Model((Serializable) getSpringHibernateService().getManufacturers()))
; but that doesn’t work either. Thanks in advance, and I must admit, I’m
starting to fall in love with Wicket over here ;) -
Michiel P.S. Would someone like to help me create
a proper component for editing Sets? I’ve got a basic setup but would
like to get it ready for prime-time as practice. Michiel Trimpe| Java Developer| TomTom | [EMAIL PROTECTED] | +31
(0)6 41482341mobile From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker What about the
DefaultDataTable in wicket-extensions? I'm using Spring and Hibernate and
it works great. Hey
everybody, I've
just started a Wicket pilot as a possible web-framework to complement Spring
and Hibernate at our company and I'm going to need some help. My
first question to the list is, are there any examples of filtered tables?? I
get a list from spring with Hibernate managed objects and a list of possible
objects and so far I've only been able to add a DropDownChoice and a ListView,
but I don't know how to make them work together. Thanks
a lot already and have a nice weekend! -
michiel Michiel Trimpe | Java Developer| TomTom | [EMAIL PROTECTED]
| +31 (0)6 41482341mobile This e-mail message contains information which is confidential and may
be privileged. It is intended for use by the addressee only. If you are not the
intended addressee, we request that you notify the sender immediately and
delete or destroy this e-mail message and any attachment(s), without copying,
saving, forwarding, disclosing or using its contents in any other way. TomTom
N.V., This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information. |
- RE: [Wicket-user] Filterable ListViews Michiel Trimpe
- Re: [Wicket-user] Filterable ListViews Igor Vaynberg