On Fri, 22 Jun 2012 02:30:12 -0300, Athneria, Mahendra
<mahendra.athne...@atos.net> wrote:
Hi,
Hi!
"Could not find a coercion from type java.lang.String to type
[addressUsageValue] Available coercions:.........."
First - I am not able to understand why encoder is required when using
loop??
It's just required when the Loop is inside a Form and the value of the
Loop's formState parameter is different from LoopFormState.NONE. So you
don't need to provide a ValueEncoder when you add formState="none" to your
Loop.
And if it is required to submit the form then why it is not Mandatory
parameter??
It is because Loop is trying to submit values inside it.
Second - I have just implemented the Encoder without any logic. I am not
able to understand where toValue() and toClient() method is used and
what is the purpose?
It's used by Loop in order to restore the objects during form submission
and apply the submitted values to them.
Third - when I submit the Page why form required Encoder??
Answered above.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org