看了一下webwork的文档和wiki.
上面有一个类似的例子.配置与action同名的properties文件.
KeyProperty_playactor=id
Element_playactor=a.b.c.User
CreateIfNull_playactor=true
在页面上用
<input name="playactors[0].username">
<input name="playactors[0].category"><input name="playactors[1].username">
<input name="playactors[1].categor">这样的方式到是可以实现.但是问题是,因为
<input name="playactors[1].categor"> 这个东西是js动态产生的.
用js产生这样的方式比较困难.不太好做.
能不能
变成
<input name="playactors.categor">这样的方式同样可以自动转行呢?
不太清楚.个人认为可能无法实现.webwork没有办法知道哪两个为一组.所以要加index.请问过的朋友指点一下.