>From what I can see the fact that context becomes and array of Objects in
the end causes the issue, anyone seen something like this before?

On Sat, Sep 13, 2014 at 3:20 PM, Boris Horvat <horvat.z.bo...@gmail.com>
wrote:

> Hi Lance,
>
> yea it finds the encoder. As previously mentioned the first time I hit the
> url I can see that data is properly set, but after I submit the form this
> is broken.
>
> Thiago, by "doesn't" work, I mean the same thing as before. The same error.
>
>
>    - org.apache.tapestry5.runtime.ComponentEventException
>    Could not find a coercion from type java.lang.String to type
>    com.thefloorabove.kove.blackbox.domain.project.shot.Scene.
>    context
>       - 4
>    eventTypeactivate
>
> The events happen as this. I first hit the url
> http://localhost:8080/shots/3 all 3 selectedObjects are set (the first
> one selectedScene is set based on the context, the other 2 default to some
> object value), then I submit the form and I can see that onActivate is
> properly triggered as the conetxt now contains all 3 objects
>
>
>    - values = {java.lang.String[3]@10890}
>    - [0] = {java.lang.String@10908}"4"
>    - [1] = {java.lang.String@10909}"19"
>    - [2] = {java.lang.String@10910}"88"
>
>
> Following this is the form success event, and then again onActivate event
> is triggered but this time with wrong context
>
>
>    - values = {java.lang.Object[1]@10926}
>    - [0] = {java.lang.String@10940}"4"
>
>  And there we triggered the exception that is shown above
>
> Thanks for all of the help you guys try as I am really confused by this
> now :)
>
> On Fri, Sep 12, 2014 at 3:24 PM, Lance Java <lance.j...@googlemail.com>
> wrote:
>
>> tapestry-hibernate will only create ValueEncoder's for entities that are
>> in
>> the "basepackage.entities" package (configurable). What packages are your
>> entities in?
>>
>> Try @Inject ValueEncoderSource and call getValueEncoder(Scene.class)
>>
>> Does it find a ValueEncoder?
>>
>
>
>
> --
> Sincerely
> *Boris Horvat*
>



-- 
Sincerely
*Boris Horvat*

Reply via email to