I just added an Ajax version of ImageSubmit: AjaxImageSubmit, in case
anyone wants to try it out.
It's in CVS stable.
(and no, an image submit button is not the same as a link with a
rollover or even a normal button with a background image!).
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Web Application Design and Programming
http://www.dtqsoftware.com
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
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel