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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]