Ok I resolved the problem,

I went from declaring the encoder with  :
@Property
private TypeClientDtoEncoder typeClientDtoEncoder;

to :
public TypeClientDtoEncoder getTypeClientDtoEncoder() {
return new TypeClientDtoEncoder();
}

and now it works :p    strange


2014-07-15 14:58 GMT+02:00 Thiago H de Paula Figueiredo <thiag...@gmail.com>
:

> On Tue, 15 Jul 2014 07:03:32 -0300, squallmat . <squall...@gmail.com>
> wrote:
>
>  the null pointer exception comes from :
>> at org.apache.tapestry5.internal.util.SelectModelRenderer.
>> option(SelectModelRenderer.java:51)
>>
>>
>> which is, in the code of tapestry this :
>>  @SuppressWarnings("unchecked")
>>     public void option(OptionModel optionModel)
>>     {
>>         Object optionValue = optionModel.getValue();
>>
>>        * String clientValue = encoder.toClient(optionValue);   <--- line
>> 51*
>>
>
> Have you checked whether you're passing a null value to the Select's
> encoder parameter?
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to