Hi guys,

I alway get the following exception for the following code:

============= PAGE SPEC =================
<component id="PageEditForm" type="Form">
        <binding name="delegate" value="page.getValidationDelegate()" />
        <binding name="focus" value="true"/>
</component>

<component id="AllocableAppFunctionSelect" type="Select">
        <binding name="multiple" value="true" />
        <binding name="disabled" value="isAllocableAppFunctionSelectDisabled()" 
/>
</component>

<component id="AllowedAppFunctionOptGroup" type="For">
        <binding name="source" value="ognl:{'1x','2x'}" />
        <binding name="element" value="literal:optgroup" />
</component>

<component id="InvisibleRemoveAppFunction" type="InvisibleSubmit">
        <binding name="function" value="literal:removeApplicationFunctions" />
        <binding name="action" value="listener:removeApplicationFunctions" />
</component>



============= HTML TEMPLATE ===================
<form jwcid="PageEditForm" action="#">
        <select jwcid="AllowedAppFunctionSelect" class="w350" size="5" 
multiple="multiple">
                <optgroup jwcid="AllowedAppFunctionOptGroup">
                </optgroup>
        </select>
</form>


When I submit the form, the following stale link exception occurs:

org.apache.tapestry.StaleLinkException: Rewind of form 
AdministrationOperatorFunctionRights/PageEditForm expected 1 more form 
elements, starting with id 'AllowedAppFunctionOptGroup'. 
[context:/WEB-INF/pages/secure/administrationPages/administrationOperatorFunctionRights/AdministrationOperatorFunctionRights.page,
 line 17, column 43]
        at 
org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:585)
        at org.apache.tapestry.form.Form.renderComponent(Form.java:226)
        at $Form_6.renderComponent($Form_6.java)
        at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
        at org.apache.tapestry.form.Form.rewind(Form.java:327)
        at 
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:439)
        at org.apache.tapestry.form.Form.trigger(Form.java:338)
        at 
org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:146)
        at 
org.apache.tapestry.engine.DirectService.service(DirectService.java:132)
        at $IEngineService_11224df909b.service($IEngineService_11224df909b.java)
        at 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:66)
        at 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
        at 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
        at 
$WebRequestServicer_11224df906f.service($WebRequestServicer_11224df906f.java)
        at 
$WebRequestServicer_11224df906b.service($WebRequestServicer_11224df906b.java)
        at 
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
        at 
$ServletRequestServicer_11224df905d.service($ServletRequestServicer_11224df905d.java)
        at 
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
        at 
$ServletRequestServicerFilter_11224df9059.service($ServletRequestServicerFilter_11224df9059.java)
        at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
        at 
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
        at 
$ServletRequestServicerFilter_11224df9057.service($ServletRequestServicerFilter_11224df9057.java)
        at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
        at 
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
        at 
$ServletRequestServicerFilter_11224df905b.service($ServletRequestServicerFilter_11224df905b.java)
        at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
        at 
$ServletRequestServicer_11224df9051.service($ServletRequestServicer_11224df9051.java)
        at 
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
        at 
org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:168)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)


I cannot figure out where the problem is, because the @For should be 'form 
save' especially if the source binding is static. I really need a quick 
solution. 

Thanks

Mit lieben Grüßen aus dem eWerk

  |  Holger Stolzenberg
  |  Softwareentwickler
  |
  |  Geschäftsführer: 
  |  Frank Richter, Erik Wende, Hendrik Schubert
  |
  |  eWerk IT GmbH
  |  Markt 16
  |  Leipzig 04109
  |  http://www.ewerk.com
  |  HRB 9065, AG Leipzig
  |  Hauptniederlassung Leipzig
  |
  |  fon +49.341.4 26 49-0
  |  fax +49.341.4 26 49-88
  |  mailto:[EMAIL PROTECTED]
  |
  |  Support:
  |  fon 0700 CALLME24 (0700 22556324)
  |  fax 0700 CALLME24 (0700 22556324)
  |
  | Auskünfte und Angebote per Mail
  | sind freibleibend und unverbindlich. 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to