I use tapestry-hibernate in my apps, in one page: <t:grid source="pageList" row="page2"> <t:parameter name="pageIdcell"> <t:actionLink id="pageDelete" context="${page2.pageId}">删除</t:actionLink> <t:pageLink page="sysadm/editpage" context="${page2.pageId}">更新</t:pageLink> </t:parameter> </t:grid>
in editpage.java void onActivate(String id) { page = (Page) session.createCriteria(Page.class).add( Restrictions.eq("pageId", id)).uniqueResult(); } void onSuccess() { session.saveOrUpdate(page); } when i submit the editpage, i got a error: Illegal attempt to associate a collection with two open sessions ... anyone helps?