You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Nick Westgate (JIRA)" <de...@tapestry.apache.org> on 2007/09/12 12:36:33 UTC

[jira] Updated: (TAPESTRY-1696) Event handlers should be able to receive all parameters as a List (rather than only as Object[])

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

Nick Westgate updated TAPESTRY-1696:
------------------------------------

    Priority: Minor  (was: Major)

> Event handlers should be able to receive all parameters as a List (rather than only as Object[])
> ------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1696
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1696
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Nick Westgate
>            Priority: Minor
>
> A context can be passed to a component as a List, but an event handler must currently use Object[] instead.
> For example, the following handler will receive all context parameters:
>     void onEventFromComponent(Object[] things) { ... }
> But this next handler will receive a List containing only the first parameter:
>     void onEventFromComponent(List things) { ... }
> This happens because Object[] is explicitly coded as "special" in OnEventWorker.java, buildMethodParameters().
> It would be nice to accord List the same "special" status.
> Cheers,
> Nick.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org