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

 

Reply via email to