Does JXForms support Collection-to-select mappings? I have a bean ~

var categories = persistenceManager.getProductCategories();
var categorizations = persistenceManager.getProductCategorizations("productIdGoesHere"); //returns List
var bean = {
categories: categories;
categorizations: categorizations,
..
...
}


and a form ~

<xf:select ref="/categorizations/productCategoryID">
<xf:itemset nodeset="/categories">
<xf:label><xf:output ref="label" /></xf:label>
<xf:value><xf:output ref="ID" /></xf:value> </xf:itemset>
</xf:select>


This works beautifully on the way in: a select list is rendered with the correct categories selected. However, when submitted the flow crashes quietly - I can find no error in the logs and a print statement positioned immediately after the form.sendView statement is never executed.
I am about to experiment with using arrays in place of collections, but it would be helpful to know whether or not JXForms supports this scenario - i.e. updating a collection from a select list


Richard Hoberman



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to