tapestry3.0 Form提交抛出异常!

being 2006-12-15

.html页面。

<formjwcid="@Form"listener=listeners.formSubmit>

<table>

<trjwcid="@Foreach"element="tr"source="ognl:resultList"value="ognl:item">

<td>

<inputjwcid="@Checkbox"selected="ognl:item.flag"id="ognl:item.id"/>

</td>

.

.

.

</tr>

</table>

</form>

.page文件

<property-specificationname="resultList"

type="java.util.List"/>

<property-specificationname="item"

type="com.ors.manage.vo.impl.OrgSortVo"/>

.java文件

get/set方法

//查询数据库填充LIST列表.

this.setResultList(this.getVorgSort().listVorgSort(this.getPdid()));

出现以下异常

org.apache.tapestry.StaleLinkException:RewindofformOrgSort/$Formexpected4moreformelements,startingwithid'$Checkbox'.

atorg.apache.tapestry.form.Form.renderComponent(Form.java:411)

atorg.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)

atorg.apache.tapestry.form.Form.rewind(Form.java:568)

atorg.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:432)

atorg.apache.tapestry.form.Form.trigger(Form.java:582)

atorg.apache.tapestry.engine.DirectService.service(DirectService.java:169)

atorg.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:889)

atorg.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:198)

atorg.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:327)

atjavax.servlet.http.HttpServlet.service(HttpServlet.java:709)

atjavax.servlet.http.HttpServlet.service(HttpServlet.java:802)

atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

atorg.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

atorg.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

atorg.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

atorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

atjava.lang.Thread.run(Thread.java:534)

相关推荐