Hi all,
I am currently working with the tutorial 1 at the Tapestry 5 homepage (
http://tapestry.apache.org/tapestry5/tutorial1/hilo.html ).
Now, one of the further tasks there is "As we guess, we're identifying
ranges of valid and invalid numbers. Can you only show valid guesses to
the user?"
...so, setting a loop (which counted before simply from 1 to 10) to
count from one variable to another variable.
My guess was that I just have to replace
<t:loop source="1..10" value="guess">
(which works) with
<t:loop source="${rangeStart}..${rangeEnd}" value="guess">
Well, seems to be wrong. I get the following application exception:
org.apache.tapestry.ioc.internal.util.TapestryException
Failure writing parameter value of component Guess:loop: Coercion of
1..10 to type int (via String --> Long, Long --> Integer) failed: For
input string: "1..10"
(marked is the line shown above).
So, he DOES replace the variables right, but that doesn't seem to be the
same as "1..10" anymore.
How can I solve this problem?
Thanks in advance,
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]