Could it have something to do with the fact that I am using a CompoundPropoertyModel? I can't think of a simpler example, here is the code:
public class PublishItem extends WebPage { private AddItemForm form; public PublishItem() { form = new AddItemForm("addItemForm"); add(form); add(new FeedbackPanel("feedback")); } public final class AddItemForm extends Form { private RequiredTextField title; public AddItemForm(final String componentName) { super(componentName, new CompoundPropertyModel<Item>(new Item())); add(new RequiredTextField("title")); } public void onSubmit() { Item item = (Item)getModelObject(); User user = UserLoggedInSession.get().getUser(); item.setUser(user); ItemDAO.persist(item); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org