DropDownChoice アイテムを選択した直後に、モデルまたはオブジェクトを更新する必要があります。
ベローは私が取り組んでいるコードです:
add(new ListView[Company]("listCompanies", listData) {
override protected def onBeforeRender() {
//
// ...
super.onBeforeRender()
}
def populateItem(item: ListItem[Company]) = {
var company = item.getModelObject()
//...
val listClients: java.util.List[Client] = clientControler.listClients
item.add(new DropDownChoice("clientSelection", listClients,new ChoiceRenderer[Client]("name")))
Company オブジェクトのプロパティを含むリストビューで、DropDownChoice の name プロパティを選択すると、モデルの Company が選択された Client Name で更新されます。
どうすればこれを達成できますか?
ありがとう