Sorry I make a big--- mistake
I see my spelling error for true.
Sorry~~~~

Johnson


----- Original Message ----- 
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 7:30 PM
Subject: Re: is it a cform field widget bug?


> That's not strictly true - you can define acceptable
> values [enumerations] for attributes if required... 
> unless 'true' and 'false' are not the only strings
> allowed in the context below (sorry, I am not
> fully into cforms yet; still working my way into
> woody!)
> 
> >>> [EMAIL PROTECTED] 2004/05/11 01:07:45 PM >>>
> On Tue, 2004-05-11 at 10:04, Derek Hohls wrote:
> > Hmm - a check with a schema would pick this up quickly -
> > does one exist?
> 
> A schema wouldn't pick this up, since a value can be anything.
> 
> > 
> > >>> [EMAIL PROTECTED] 2004/05/11 10:01:23 AM >>>
> > 
> > 
> > Johnson wrote:
> > > Hi!
> > > 
> > > I use field widget to represent a boolean field , like below
> > > 
> > >  <fd:field id="dc">
> > >       <fd:label><i18n:text key="dc">dc:</i18n:text></fd:label>
> > >       <fd:datatype base="boolean">
> > >       </fd:datatype>
> > >  <fd:selection-list>
> > >    <fd:item value="false">
> > >       <fd:label><i18n:text
> > key="single">single</i18n:text></fd:label>
> > >    </fd:item>
> > >    <fd:item value="ture">
> >                      ^^^^
> > 
> > you might want to try with 'true' in stead
> > 
> > -marc=
> > 
> > >       <fd:label><i18n:text
> > key="double">double</i18n:text></fd:label>
> > >    </fd:item>
> > >  </fd:selection-list>
> > >     </fd:field>
> > > 
> > > when I run the form,the source is below.
> > > 
> > > <select name="" id="dc" title=""><option
> > > value="false">single</option><option
> > value="false">double</option></select>
> > > 
> > > both the value is false!
> > > 
> > > is it a bug?
> > > 
> > > Best Regards
> > > 
> > > Johnson Hsu
> > > 
> -- 
> Bruno Dumon                             http://outerthought.org/ 
> Outerthought - Open Source, Java & XML Competence Support Center
> [EMAIL PROTECTED]                          [EMAIL PROTECTED] 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to