Wasn't this answered 2 days ago? Use @Rollover or @Image instead of @ImageSubmit
Jonathan Bullkich wrote: > Hi, > > > > I'm trying to create a component that will contain an AjaxForm > > and some ImageSubmit buttons. > > > > The component code is as follows: > > <form name="filterForm" jwcid="@tacos:AjaxForm" > > delegate="ognl:delegate"> > > <a jwcid="@tacos:AjaxLinkSubmit" listener="ognl:filterListener" > > updateComponents="ognl:allFilterUpdateComponents"> > > <input jwcid="@ImageSubmit" image="ognl:filterImage" > disabledImage="ognl:filterImageDisabled"/> > > </a> > > </form> > > > > And the html page just contains this component. > > > > When I click the button I get the following exception: > > _org.apache.tapestry.StaleLinkException_: Rewind of form > MyAjaxPage/filter.$AjaxForm expected 1 more form elements, starting > with id 'ImageSubmit'. > [classpath:/com/monolith/web/components/filter/Filter.html, line 33] > > at > net.sf.tacos.ajax.components.AjaxFormSupportImpl.rewind(_AjaxFormSupportImpl.java:624_) > > at > net.sf.tacos.ajax.components.AjaxForm.renderComponentDelegate(_AjaxForm.java:348_) > > at > net.sf.tacos.ajax.components.AjaxForm.renderComponent(_AjaxForm.java:111_) > > at $AjaxForm_7.renderComponent($AjaxForm_7.java) > > at > org.apache.tapestry.AbstractComponent.render(_AbstractComponent.java:617_) > > at net.sf.tacos.ajax.components.AjaxForm.rewind(_AjaxForm.java:188_) > > at > org.apache.tapestry.engine.RequestCycle.rewindForm(_RequestCycle.java:439_) > > at > net.sf.tacos.ajax.components.AjaxForm.trigger(_AjaxForm.java:455_) > > at > net.sf.tacos.ajax.impl.AjaxDirectServiceImpl.triggerComponent(_AjaxDirectServiceImpl.java:337_) > > at > net.sf.tacos.ajax.impl.AjaxDirectServiceImpl.service(_AjaxDirectServiceImpl.java:243_) > > at > $AjaxDirectService_10a7017de12.service($AjaxDirectService_10a7017de12.java) > > > > Am I doing something wrong? How can this be done properly? > > > > Thanks, > > > > Jonathan Bullkich > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Tacos-devel mailing list Tacos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tacos-devel