You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nacho Jimenez <na...@gmail.com> on 2005/07/14 18:56:34 UTC

Re: cannot use enum in a fd:multivaluefield?

Any progress here?

I've been trying to use an enum in a multivaluefield to no avail...


2005/6/7, Owen Tallman <ow...@gmail.com>:
> I have succeeded in using a typesafe enum class as the back end of a
> fd:selection-list, so that it automatically populates the list and
> returns the selected value as an enum instance. That feature of
> fd:selection-list does not seem to work when you use one within a
> fd:multivaluefield - I get an exception saying it won't work.
> 
> I can see how it might work to leave out the <fd:selection-list
> type="enum" class="com.etc.EnumType"> that triggers the auto-loading,
> and populate the form directly with instances of the enum type, but
> before I go off on a wild chase in that direction, I thought I would
> ask if
> someone could confirm for me that the enum auto-loading approach
> simply will not work, and also whether you can use an enum type as the
> selection-list datatype within a fd:multivaluefield.
> 
> I hope that's not too obscure a question.
> 
> Thanks.
> 
> Owen
> 
> ---------------------------------------------------------------------
> 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