You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rice Yeh <ri...@gmail.com> on 2006/09/05 12:26:59 UTC

[cforms] How to not have the empty value rendered for enum type?

Hi,
  I have a enum class like Sex. So there are 2 values: MALE and FEMALE. But
an extra value "" is rendered by cforms. How do I get rid of this empty
value, epsecially when using radio box styling.

Regards,
Rice

Re: [cforms] How to not have the empty value rendered for enum type?

Posted by Jason Johnston <co...@lojjic.net>.
Rice Yeh wrote:
> Hi,
>   I have a enum class like Sex. So there are 2 values: MALE and FEMALE. 
> But an extra value "" is rendered by cforms. How do I get rid of this 
> empty value, epsecially when using radio box styling.

Should be able to do:

<fd:selection-list type="enum" class="..." nullable="false" />

--Jason

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