tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Westgate (JIRA)" <...@tapestry.apache.org>
Subject [jira] Updated: (TAPESTRY-1696) Event handlers should be able to receive all parameters as a List (rather than only as Object[])
Date Wed, 08 Aug 2007 11:08:59 GMT

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

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

          Component/s: tapestry-core
          Description: 
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.
    Affects Version/s: 5.0.5
              Summary: Event handlers should be able to receive all parameters as a List (rather
than only as Object[])  (was: Event handlers should treat List like the "special)

Oops, hit return.

> 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
>
> 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


Mime
View raw message