In HiveMind, the <set> element (of <construct>, with BuilderFactory) will do simple string->primitive conversions.
Alas, the <set-object> element does no conversion at all. This is really a HiveMind bug ... it should see if the object result is java.lang.String and to a simple conversion for it. Tapestry has a much more involved data-type-conversion system in place, used to convert properties of any type to any desired type (or explain why it can't). It's simple, but works. I've heard of systems that can forward- and back-chain conversions until it finds a way to convert ... that's probably overkill for Tapestry. On 9/1/05, Kevin Menard <[EMAIL PROTECTED]> wrote: > > On Sep 1, 2005, at 11:30 AM, Kent Tong wrote: > > > Try: > > > > <set property="debug" value="true"/> > > > > It will try to convert it automatically. > > Hmm . . . but as far as I know, <set> doesn't allow prefixes. Please > correct me if I'm wrong. I'd ideally be pulling this value out of my > app spec. > > Thanks, > Kevin > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
