Hi, you can construct a link using both a reference to ListView item's model and the form, so when clicked it gets the new form value from the selected item.
cheers e.g. populateItem(item){ item.add(new SelectItemLink("id", item.getDefaultModel(), form)); } class SelectItemLink{ onClick(){ form.setDefaultModelObject(itemModel.getObject()); } } Pedro Santos On Sat, Sep 17, 2016 at 3:05 PM, Iamuser <superbiss...@gmail.com> wrote: > Hello, > > I have a page with a : > 1. a listview > 2. an input form > > When first entering the page, the listview displays all the rows from a > table, and the input form is empty. > One of the columns inside the listview is a link component, that when > clicked should refresh the model of the form and show the data for that row > in order to be able to edit it. > > Could you please give me some guidance on how to refresh the model of the > form and show the data for the selected row? > > Thank you. > > > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/Wicket-6-How-to-fill-form-based-on-listview- > selected-row-tp4675519.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >