Jesse - thanks for the fix!

On 5/14/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Are you sure the event name is correct?  I use "onchange".  I've never
used "selectOption" before.

Daniel

On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> Well this is the code i have, unfortuntately the eventlister does not
> seem to get triggered:
>
> HTML page:
>
> <td class="tableinfo">
>        <span jwcid="projectSelection" style="width: 200px; height: 18px;"/>
> </td>
>
> Java Class:
>
>         @Component(id="projectSelection", bindings = {"model=clientModel",
> "value=clientName",
>                 "displayName=message:choose.project", "filterOnChange=true",
>                 "validators=validators:required"})
>         public abstract Autocompleter getProjectSelection();
>
>         @EventListener(targets = "projectSelection", events = "selectOption")
>         public void projectSelected()
>         {
>                 log.info("Selected Option triggered event");
>         }
>
> When an option has been selected I am not seeing any events in my log
> file.  Does something look wrong with this code?
>
> Thanks
>
> On 5/14/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
> > 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]
> >
> >
>
>
> --
> ~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]




--
~chris

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

Reply via email to