정말 간단합니다. <select>
이 있는데 선택에 따라 내부 상태를 업데이트하고 싶습니다. 아무 것도 다시 표시 할 필요가 없습니다. 문제는 선택 및 AJAX 요청이 이루어진 후에 목록의 내용이 손실된다는 것입니다.Seaside : 업데이트시 내용 손실 목록
renderContentOn: html
|value myId|
html form with: [
html select list: #('one' 'two' 'tree' 'four' 'five');
id: (myId := html nextId);
callback: [ :v | value := myId ];
onChange: (
html prototype updater
triggerFormElement: myId;
callback: [:h | value "do something with the value here"];
return: false
).
]