Hi all,
I'm trying to use an
AjaxEventSubmit to update components on the page whenever dropdown list
selections are made, probably similar to what James posted a few days
back. I'm using the online example (copied below) as a guide, but I'm
running into problems. Can anyone help?
1. First off,
the AjaxSubmitScript component referenced in the example does not exist. I
assume it's been replaced by AjaxEventSubmit?
2. In the example,
it looks like the way that you map a component's onchange event to your
AjaxEventSubmit component is via the 'eventListener' parameter of the component
that fires the event. i.e. in the example:
<select jwcid=[EMAIL PROTECTED]
...
eventListener=" />
eventListener=" />
However, as it turns
out, the 'eventListener' parameter does not exist either, not in the tapestry document or
source code. And for all I know it could have been a parameter of
PropertySelection only, which is not what I'm using.
So I'm
at a bit of a loss on how to assign the 'onchange' event of a tapestry
component to a tacos AjaxEventSubmit component that I've
defined. Any help would be appreciated.
In
my case, the dropdown list I'm using is a custom component, implemented as a tapestry component
with a .script file and a .js file doing the advanced UI. I simply need to
update other areas of the page asynchronously each time the user
selects an item in my custom dropdown, which fires an onchange event as
expected.
Without an
'eventListener' sort of parameter, how do I connect the onchange event to an
AjaxEventSubmit?
Thanks
Marc
The Tacos online
example:
<form jwcid="profileForm">
<span jwcid="[EMAIL PROTECTED]:AjaxSubmitScript"
updateComponents="ognl:{'profileInfo', 'summIf'}"
effects="template:{highlight:{any:'[255,255,184], 500, 500'}}" />
<span jwcid="@FieldLabel" field="component:search"
displayName="message:search.field" />
<input jwcid="[EMAIL PROTECTED]" value="ognl:searchText" />
<span jwcid="@FieldLabel" field="component:countrySelect"
displayName="message:country.select" />
<select jwcid="[EMAIL PROTECTED]"
model="ognl:countryModel"
value="ognl:selectedCountry"
validators="validators:required"
eventListener=" />
<span jwcid="@Any" id="profileInfo" class="note">
<span jwcid="@If" condition="ognl:selectedCountry">
<h2>Country Information</h2>
<span jwcid="@Insert" value="ognl:selectedCountry.toString()" />
</span>
</span>
</form>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 [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
