cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [Cforms] Java Selection List
Date Thu, 16 Jun 2005 14:23:30 GMT
On Thu, 2005-06-16 at 10:51 +0200, Ron van de Ven wrote:
> Hi (Sylvain),
>  
> I have to set a selection list on a field, based on success or failure
> of a validation.
>  
> When I use the following fragment:
>  
>   TntCformsJavaSelectionList mySelectionList = new
> TntCformsJavaSelectionList(true);
>   mySelectionList.setDatatype(new StringType());
>   myField.setSelectionList(mySelectionList);
>  
> I get an error: Tried to assign a SelectionList that is not associated
> with this widget's datatype.
<snip/>

then why not do:

mySelectionList.setDatatype(myField.getDatatype());

?

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message