This error looks familiar. Can you post some source?
(I can't get to it myself for a couple of days though.)

Cheers,
Nick.



redijedi wrote:
> 
> I've suddenly run into what seems to be a bug that appears when I pass
> an integer to a custom component that itself contains a radiogroup
> that uses the inherit:value as its own value. For some reason it will
> only take a string. If the value is an int, for example, it throws the
> exception below. I find it odd that it is not converting this for me
> as I might expect. Nor do I know where to manually convert this
> myself.
> 
> 
> Caused by: java.lang.IllegalArgumentException: No adapter from type
> int to type org.apache.tapestry.services.ValueEncoderFactory is
> available (registered types are java.lang.Enum, java.lang.String).
>       at
> org.apache.tapestry.ioc.util.StrategyRegistry.findMatch(StrategyRegistry.java:125)
>       at
> org.apache.tapestry.ioc.util.StrategyRegistry.get(StrategyRegistry.java:102)
>       at
> org.apache.tapestry.internal.services.ValueEncoderSourceImpl.createEncoder(ValueEncoderSourceImpl.java:48)
>       at
> $ValueEncoderSource_1146231daef.createEncoder($ValueEncoderSource_1146231daef.java)
>       at
> org.apache.tapestry.corelib.components.RadioGroup.defaultEncoder(RadioGroup.java:84)
>       at
> org.apache.tapestry.corelib.components.RadioGroup.containingPageDidLoad(RadioGroup.java)
>       at
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run(ComponentPageElementImpl.java:92)
>       at
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:923)
>       ... 38 more
> ... Removed 22 stack frames
> 
> 
> Any ideas?
> 
> Thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-Type-to-ValueEncoderFactory-tf4264856.html#a12142597
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to