sommeralex wrote
> 
> Hi!
> 
> I was upgrading vom Tapestry 2.6 to 3.0 and have one issue:
> 
>               if(encoder == null){
>                       encoder = new EnumValueEncoder<E>(enumType); 
>               }
>               return encoder;
> 
> the EnumValueEncoder does not exist anymore as a contructor with one
> parameter. Now, I need a TypeCoercer as the first paramter, but have no
> idea for what. 
> 
TypeCoercer is a service so just @Inject it.
Documentation can be found at
http://tapestry.apache.org/typecoercer-service.html


sommeralex wrote
> 
> There are no examples. This is really one thing which demotivates me using
> tapestry. Rather than bringing easy examples, new methods occur quickly. 
> 
There are many examples of different use cases at JumpStart:
http://jumpstart.doublenegative.com.au/home.html



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TypeCoercer-Example-tp5687042p5687584.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to