All, I've come across a (minor) limitation of the PropertyColumn and its subclasses. I have the need for splitting the current propertyExpression into a displayPropertyExpression and a modelPropertyExpression.
Sometimes, or possibly often times you want to display an other property than the value you will be setting in your filter state. One example is a ChoicePropertyColumn that is filled with entities from a database and which are a many-to-one association with your filter state object. Typically you don't want to display the toString() value of the many-to-one assocation, but rather a more descriptive field of the associated entity. But when the dropdown selects a value, you want to set the actual entity on the association. For instance: class SchoolYear { private Long id; private String description; private Date start; } class Course { private Long id; private String description; private SchoolYear schoolyear; } In my datatable containing all courses, I'd like to add a ChoiceFilteredPropertyColumn filled with all schoolyears (doable), and set it in my filterstate, a new Course instance, on the schoolyear property. So my ChoiceFilteredPropertyColumn constructor would become: new ChoiceFilteredPropertyColumn( new Model("Year"), "year.date", "year", /* modelProperty */ "year.description", /* displayProperty */ new SchoolYearsModel()) Any objections when I make this change? This would not affect existing clients as in the current constructors I'll assign the propertyExpression to both the modelProperty and the displayProperty. Martijn -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop