directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny" <elecha...@gmail.com>
Subject Re: [Boolean Valued Attributes] Should Java's "true" work?
Date Fri, 22 Jun 2007 22:08:50 GMT
Oh, very TRUE, Martin.

The syntax checker will throw an exception if you inject 'true' or 'false'.

This is compliant with the RFC...

Thanks Martin !

On 6/23/07, Martin Alderson <martin.alderson@salfordsoftware.co.uk> wrote:
> 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
>


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
View raw message