You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2009/12/09 21:06:18 UTC

[jira] Closed: (TAP5-833) Component event-handler name cannot include the word "From"

     [ https://issues.apache.org/jira/browse/TAP5-833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-833.
-------------------------------------

    Resolution: Won't Fix
      Assignee: Howard M. Lewis Ship

This is a side-effect of the naming convention. If you don't like it, use the @OnEvent annotation, which removes the ambiguity about whether "from" is a seperator between the event name and the component id or (in your case) part of the event name.

> Component event-handler name cannot include the word "From"
> -----------------------------------------------------------
>
>                 Key: TAP5-833
>                 URL: https://issues.apache.org/jira/browse/TAP5-833
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Franz Amador
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> If a component event-handler method name includes the word "From", Tapestry throws an exception:
> org.apache.tapestry5.ioc.internal.util.TapestryException: Request event 'foofrombar' (on component project/DocumentHolderDocuments:documentsgridactionsbutton) was not handled; you must provide a matching event handler method in the component or in one of its containers.
> The method is being invoked via an AJAX call to this URL:
>     resources.createEventLink("fooFromBar").toAbsoluteURI();
> And the handler looks like this:
>     public Object onFooFromBar() { ... }
> If I remove the word "From", it works fine.  If I change it to "Form", it works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.