directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Alderson <martin.alder...@salfordsoftware.co.uk>
Subject Re: [Boolean Valued Attributes] Should Java's "true" work?
Date Fri, 22 Jun 2007 22:05:12 GMT
Ole Ersoy wrote:
> Emmanuel Lecharny wrote:
>> System.out.println( true ) will *always print "true"/
>>
>> Ok, which attributeType are you using ? It seems that it might be an
>> H/R attribute, so in tis case, you must do :
>> attributes.put( "yourHRattribute", Boolean.TRUE.toString() );
> 
> Hmmm - now that you mention it, it's a custom attributeType entry.  
> Maybe when adding AttributeType entries that have the Boolean syntax I 
> should set human readable attribute to false.  I'll give it a shot.

I think that would have to be attributes.put( "yourHRattribute", 
Boolean.TRUE.toString().toUpperCase() ); too.

Martin

Mime
View raw message