You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Uchenna Igwebuike <uc...@sbcglobal.net> on 2004/03/29 20:48:52 UTC

How to bind a multivaluefield in woody/cforms

How do I bind a multivaluefield widget to a collections object in a
bean? 
      
The form widget is:
<wd:multivaluefield id="facility" required="true">
            <wd:label>Material Facility Extension</wd:label>
            <wd:datatype base="string"/>
            <wd:selection-list type="flow-jxpath" list-path="facility"
value-path="toString(id)" label-path="concat(name,' - ',description)"/>
</wd:multivaluefield>


The bean looks like: 

private Collection facilityList;

public void getFacilityList(Collection list) {
	this.facilityList = list;
}

public Collection getFacilityList() {
	return this.facilityList;
}

Thanks in advance. 





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