xautlx / s2jh

A Java/J2EE development framework for enterprise system based on Struts/Spring/JPA/Hibernate and jquery/bootstrap
GNU Lesser General Public License v3.0
321 stars 242 forks source link

如何通过点击主表某一行记录加载其对应的从表-index.jsp到右侧动态tab上 #61

Open flanliulf opened 10 years ago

flanliulf commented 10 years ago

情形如下:有两个主从表关系的对象,比如ProduceBill(Head表)和produceConsume(Detail表),通过之前的issue已经搞定,在produce-bill-index.js上使用operations选项来加载页面到动态的tab中,例如在a标签上配置produce-bill!edit?id=xxx可以实现,现在我想根据headId来查找detail对象列表,如果a标签上配置produce-consume!findByPage?head.id==xxx,但是页面没有加载到右侧tab上 qq20140611-1 qq20140611-3 qq20140611-2

flanliulf commented 10 years ago

在firefox中跟踪了一下,如果是正常访问某个列表页面xx-index.jsp,会依次出现以下调用: qq20140611-4 qq20140611-5 而加载子表列表页面到tab页签中,则只会出现如下调用: qq20140611-6