cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: initialize MultiValueField in Action
Date Tue, 27 Apr 2004 16:03:46 GMT
On Tue, 2004-04-27 at 19:04, a_bilbao@noos.fr wrote:
> Hi
> 
> I'd like initialize a MultiValueFiel with double-listbox style in an action.
> 
> this is the definition :
> 
>     <wd:multivaluefield id="data">
>       <wd:label></wd:label>
>       <wd:datatype base="string">
>      </wd:datatype>      
>       <wd:selection-list src="cocoon://MySelectionLists/data" dynamic="true"/>
>     </wd:multivaluefield>
> 
> And this the instance :
> 
> <wt:widget id="domaine">
>       <wi:styling list-type="double-listbox">
>           <wi:available-label>Select your data: </wi:available-label>
>           <wi:selected-label/>
>       </wi:styling>
> </wt:widget>
> 
> 
> First I'm trying with 1 value. I get it from  the data base. I'm doing something like
this :
> 
> MultiValueField Act_data=(MultiValueField) form.getWidget("data");
> 
> Act_data.setValue(resultSet_data);
> 
> 
> I obtein this  error :
> 
> java.lang.RuntimeException: Cannot set the value of widget domaine

it is impossible that you get this error from the above code, simply
because there is no widget called "domaine". Are you sure the error
occurs at that location?

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


Mime
View raw message