stale link..Exception

一个纠结许久的问题终于被解决!
Tapestry学习资料真难找,很多问题只有自己去悟,官方的文档还真是翻译不了,网上也是少之甚少.(也许是我没找着)...

来看看勒哥让人蛋疼的stale link...

(略写)页面代码:

<form name="Form0" jwcid="Form0@Form" listener="listener:forSubmit"
id="Form0">

<table xxxx>
<tr>
	<th scope="col">xxxx</th>
        <th scope="col">xxxx</th>	
</tr>

<tr jwcid="@For" source="ognl:resultList" value="ognl:tempJO" element="tr">
	<td>
             <span>jwcid="@Insert"value="ognl:tempJO.tiaoma">xx</span>
        </td>
	<td>
            <span>jwcid="@Insert"value="ognl:tempJO.tiaoma">xx</span>
        </td>
        <td>
	    <button type="button" jwcid="@Button">xxx</button>
	</td>
</tr>
</table>
</form>


如上,代码是没什么问题,经过测试也成功.不过勒只是插上百来行数据,如果数据超过1000,或是更多,stale link 便出来勒。。在网上面找勒很多资料,似乎都没介绍如何处理这种情况的,我也是抱着试一试的心态,为For组件所在tr内 加勒一个属性: volatile=“true”.
重启服务器,http:localhost....
stale link消失。。。页面正常显示.
关于这个属性的具体内容,可以查看Tapestry4.1官方提供的组件API http://tapestry.apache.org/tapestry4.1/ 。本人英语水平有限,不能给出非常准确的翻译。这个我想等回家以后静下心来提高这篇文章的质量。到时候何大家分享!

你可能感兴趣的:(apache,tapestry)