Here is another example you can use:

http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+4.1.1+Simple+Selection+Model+Update+using+AJAX

I also remember having trouble using that example.
The html should have:

<span jwcid="projectSelection" />


On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote:
I'm also having trouble getting the eventlistener triggered when
somthing is selected.


On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> I believe the eventlistener documentation contains some bugs.  I
> copied the following code:
>
>
> The relevant html:
>
> ....
>
> <form jwcid="[EMAIL PROTECTED]" clientValidationEnabled="true">
>         <fieldset>
>            Select a project:
>            <span jwcid="projectSelect" />
>         </fieldset>
> </form>
>
> ....
>
> The java page class snippet:
>
> ....
> @Component(bindings = { "model=projectModel", "value=selectedProject",
>         "displayName=message:choose.project", "filterOnChange=true",
>         "validators=validators:required"})
> public abstract Autocompleter getProjectSelection();
>
> @EventListener(targets = "projectChoose", events = "selectOption")
> public void projectSelected()
> {
>         // do something
> }
> ....
>
>
>
> And get a TemplateParseException: unknown component id 'projectSelected'
> This componentid in the html page should be projectSelection correct?
>
> --
> ~chris
>


--
~chris

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



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

Reply via email to