【发布时间】:2011-08-29 15:41:00
【问题描述】:
我想要一个 inputTextarea 来显示附加到某个文本文件的行。我想象它是这样的:用户单击一个执行 AJAX 调用的命令按钮。
我的问题是:文本只会在动作返回时呈现。但是,我的操作应该是这样的:
while(true) {
String newData = getSomeMoreDataFromServer();
// append the new data to a textarea and the user should see it immediately
if(blabla) { break; }
}
这甚至可能吗?被注释掉的部分是困扰我的部分。
用户甚至可以在表单中设置中断条件吗?
我正在使用 JSF 2 (MyFaces) + Tomahawk。
【问题讨论】: