You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Laurent Etiemble (JIRA)" <ta...@jakarta.apache.org> on 2005/07/21 10:45:47 UTC

[jira] Created: (TAPESTRY-425) Foreach components cannot handle primitive arrays

Foreach components cannot handle primitive arrays
-------------------------------------------------

         Key: TAPESTRY-425
         URL: http://issues.apache.org/jira/browse/TAPESTRY-425
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
 Environment: Windows XP Pro SP2
Tomcat 5.5.9
Tapestry 4.0b2
Java 1.5.0u4
    Reporter: Laurent Etiemble
 Attachments: contrib.jar

When deploying the Hangman application from the book "Tapestry in Action", the application failed because it cannot iterate over an char array.

In the Guess page, the Spell component failed to iterate over the word to guess, which is hold by char array. Tapestry doesn't manage to coerce the char array into an Iterator to make the Foreach component happy.

The solution is to create new TypeConverter implementation class that can handle primitive array, and contribute them through the "tapestry.coerce.IteratorConverters" extension point.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (TAPESTRY-425) Foreach components cannot handle primitive arrays

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-425?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-425:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed

Well, now it can handle boolean[] and char[], which is a start.  Had to add test cases for the submitted code.

> Foreach components cannot handle primitive arrays
> -------------------------------------------------
>
>          Key: TAPESTRY-425
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-425
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: Windows XP Pro SP2
> Tomcat 5.5.9
> Tapestry 4.0b2
> Java 1.5.0u4
>     Reporter: Laurent Etiemble
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0
>  Attachments: contrib.jar
>
> When deploying the Hangman application from the book "Tapestry in Action", the application failed because it cannot iterate over an char array.
> In the Guess page, the Spell component failed to iterate over the word to guess, which is hold by char array. Tapestry doesn't manage to coerce the char array into an Iterator to make the Foreach component happy.
> The solution is to create new TypeConverter implementation class that can handle primitive array, and contribute them through the "tapestry.coerce.IteratorConverters" extension point.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (TAPESTRY-425) Foreach components cannot handle primitive arrays

Posted by "Laurent Etiemble (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-425?page=comments#action_12316414 ] 

Laurent Etiemble commented on TAPESTRY-425:
-------------------------------------------

If you are interested, I have ported the Hangman application to Tapestry 4.0. All the details are in my blog : http://www.jroller.com/page/letiemble/?anchor=looking_at_tapestry_4_0

> Foreach components cannot handle primitive arrays
> -------------------------------------------------
>
>          Key: TAPESTRY-425
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-425
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: Windows XP Pro SP2
> Tomcat 5.5.9
> Tapestry 4.0b2
> Java 1.5.0u4
>     Reporter: Laurent Etiemble
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0
>  Attachments: contrib.jar
>
> When deploying the Hangman application from the book "Tapestry in Action", the application failed because it cannot iterate over an char array.
> In the Guess page, the Spell component failed to iterate over the word to guess, which is hold by char array. Tapestry doesn't manage to coerce the char array into an Iterator to make the Foreach component happy.
> The solution is to create new TypeConverter implementation class that can handle primitive array, and contribute them through the "tapestry.coerce.IteratorConverters" extension point.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (TAPESTRY-425) Foreach components cannot handle primitive arrays

Posted by "Laurent Etiemble (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-425?page=all ]

Laurent Etiemble updated TAPESTRY-425:
--------------------------------------

    Attachment: contrib.jar

This jar contains two new TypeConverter implementation that convert char and boolean array into an Iterator. The jar also contains a Hivemind descriptor that setup the contributions.


> Foreach components cannot handle primitive arrays
> -------------------------------------------------
>
>          Key: TAPESTRY-425
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-425
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: Windows XP Pro SP2
> Tomcat 5.5.9
> Tapestry 4.0b2
> Java 1.5.0u4
>     Reporter: Laurent Etiemble
>  Attachments: contrib.jar
>
> When deploying the Hangman application from the book "Tapestry in Action", the application failed because it cannot iterate over an char array.
> In the Guess page, the Spell component failed to iterate over the word to guess, which is hold by char array. Tapestry doesn't manage to coerce the char array into an Iterator to make the Foreach component happy.
> The solution is to create new TypeConverter implementation class that can handle primitive array, and contribute them through the "tapestry.coerce.IteratorConverters" extension point.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (TAPESTRY-425) Foreach components cannot handle primitive arrays

Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-425?page=all ]

Howard M. Lewis Ship reassigned TAPESTRY-425:
---------------------------------------------

    Assign To: Howard M. Lewis Ship

> Foreach components cannot handle primitive arrays
> -------------------------------------------------
>
>          Key: TAPESTRY-425
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-425
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: Windows XP Pro SP2
> Tomcat 5.5.9
> Tapestry 4.0b2
> Java 1.5.0u4
>     Reporter: Laurent Etiemble
>     Assignee: Howard M. Lewis Ship
>  Attachments: contrib.jar
>
> When deploying the Hangman application from the book "Tapestry in Action", the application failed because it cannot iterate over an char array.
> In the Guess page, the Spell component failed to iterate over the word to guess, which is hold by char array. Tapestry doesn't manage to coerce the char array into an Iterator to make the Foreach component happy.
> The solution is to create new TypeConverter implementation class that can handle primitive array, and contribute them through the "tapestry.coerce.IteratorConverters" extension point.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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