On Tue, 2004-04-27 at 19:04, [EMAIL PROTECTED] 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
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]