You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ben Dotte (JIRA)" <de...@tapestry.apache.org> on 2008/01/22 01:20:34 UTC
[jira] Resolved: (TAPESTRY-2038) AbstractSubmit does not handle
parameters that are Object[] correctly
[ https://issues.apache.org/jira/browse/TAPESTRY-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Dotte resolved TAPESTRY-2038.
---------------------------------
Resolution: Fixed
This was fixed on TAPESTRY-2039.
> AbstractSubmit does not handle parameters that are Object[] correctly
> ---------------------------------------------------------------------
>
> Key: TAPESTRY-2038
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2038
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.3
> Reporter: Patrick Moore
> Priority: Minor
> Fix For: 4.1.4
>
>
> AbstractSubmit
> line 73 (on) is:
> if (parameters != null)
> {
> if (parameters instanceof Collection)
> {
> cycle.setListenerParameters(((Collection) parameters).toArray());
> }
> else
> {
> cycle.setListenerParameters(new Object[] { parameters });
> }
> }
> It should be:
> if (parameters != null)
> {
> if (parameters instanceof Collection)
> {
> cycle.setListenerParameters(((Collection) parameters).toArray());
> }
> else if (parameters instanceof Object[]) {
> cycle.setListenerParameters((Object[])parameters);
> }
> else
> {
> cycle.setListenerParameters(new Object[] { parameters });
> }
> }
--
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