tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Kuhnert <jkuhn...@gmail.com>
Subject Re: Meta data and HiveMind?
Date Thu, 01 Sep 2005 14:51:21 GMT
There are tons of different ways to coerce values built in to hivemind, but 
I think using the set-property element combined with a value of "ognl:true" 
might work? 

On 9/1/05, Kevin Menard <kmenard@servprise.com> wrote:
> 
> Hi,
> 
> I've just created my first service and am trying to tie it in with
> HiveMind. I have a boolean property in this service for indicating
> whether or not to run in debug mode. In my app spec I have a meta
> property called "debug" with a current value of "true". In my
> <invoke-factory block> I have a <set-object> that uses the value "app-
> property:debug". Anyway, the problem is that HiveMind is calling my
> setter with a String argument rather than the boolean I'm expecting;
> i.e., there's no type coercion. Is there anyway to coerce the
> types? I'd really rather not have the setter accept strings or write
> some mediator to convert the data types. At that point, it hardly
> seems like I've saved myself any effort or complexity.
> 
> Any help would be appreciated.
> 
> Thanks,
> Kevin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message