You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johnson <jo...@soho.club.tw> on 2004/05/11 09:45:12 UTC

is it a cform field widget bug?

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">
      <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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: is it a cform field widget bug?

Posted by Johnson <jo...@soho.club.tw>.
I think it should work too! But not-<
I try it all this afternoon,still the same.
general field widget's list is ok,and boolean field widget(check box) is ok
too.
but field with boolean type list seems ok(element ok but value not), but
when you see the html source....

Johnson


----- Original Message ----- 
From: "Bruno Dumon" <br...@outerthought.org>
To: <us...@cocoon.apache.org>
Sent: Tuesday, May 11, 2004 7:06 PM
Subject: Re: is it a cform field widget bug?


> On Tue, 2004-05-11 at 11:36, Johnson wrote:
> > change to <fd:item value='true'> ? the same
>
> This should work. Make sure you're editing the correct file, and that
> you begin a new flow (if unsure, restart servlet container).
>
> > change to <fd:item true='true'> ? the both option value change to ""
>
> of course, where do you got that from?
>
> >
> > Best Regards
> >
> > Johnson Hsu
> >
> > ----- Original Message ----- 
> > From: "Marc Portier" <mp...@outerthought.org>
> > To: <us...@cocoon.apache.org>
> > Sent: Tuesday, May 11, 2004 4:01 PM
> > Subject: Re: is it a cform field widget bug?
> >
> >
> > >
> > >
> > > 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
> bruno@outerthought.org                          bruno@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: is it a cform field widget bug?

Posted by Bruno Dumon <br...@outerthought.org>.
On Tue, 2004-05-11 at 11:36, Johnson wrote:
> change to <fd:item value='true'> ? the same

This should work. Make sure you're editing the correct file, and that
you begin a new flow (if unsure, restart servlet container).

> change to <fd:item true='true'> ? the both option value change to ""

of course, where do you got that from?

> 
> Best Regards
> 
> Johnson Hsu
> 
> ----- Original Message ----- 
> From: "Marc Portier" <mp...@outerthought.org>
> To: <us...@cocoon.apache.org>
> Sent: Tuesday, May 11, 2004 4:01 PM
> Subject: Re: is it a cform field widget bug?
> 
> 
> >
> >
> > 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
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: is it a cform field widget bug?

Posted by Johnson <jo...@soho.club.tw>.
change to <fd:item value='true'> ? the same
change to <fd:item true='true'> ? the both option value change to ""

Best Regards

Johnson Hsu

----- Original Message ----- 
From: "Marc Portier" <mp...@outerthought.org>
To: <us...@cocoon.apache.org>
Sent: Tuesday, May 11, 2004 4:01 PM
Subject: Re: is it a cform field widget bug?


>
>
> 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
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> -- 
> Marc Portier                            http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog at                http://blogs.cocoondev.org/mpo/
> mpo@outerthought.org                              mpo@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: is it a cform field widget bug?

Posted by Marc Portier <mp...@outerthought.org>.

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
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org