Sounds like this may be a caching issue - I'm not sure. Can you send me your beanprops file directly? -Dan
On 9/15/07, Zenrique Steckelberg <[EMAIL PROTECTED]> wrote: > > > I was trying to create an editable table of Products but ran into the > following problem: the Product class has a Make field, which is supposed > to > show as a dropdown list of options from "Make" table in database. The > first > time I open the page the table shows all the products with their make > correctly selected, as they exist in the product table in database, but > when > I press the add row button to create a new entry in the table, suddenly > all > make fields in all table rows get unselected. The funny thing is that I > have > another dropdown field as part of Product information, this time based on > an > enum, which is working ok. The biggest difference between both dropdowns > is > that the "Make" field takes is list of options from the database. > Here follows my MarcaField ("marca" is "make" in portuguese!): > > public class MarcaField extends EnumField { > public MarcaField(String id, IModel model, ElementMetaData metaData, > boolean viewOnly) { > super(id, model, metaData, viewOnly, > (List<Marca>) new HibernateListModel(Marca.class) > .getObject(null)); > } > } > > Is there something missing anywhere? > -- > View this message in context: > http://www.nabble.com/Re%3A-Wicket-Web-Beans-1.0-rc1-Released-tf4431603.html#a12693570 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >