Hi, I want to use this widget in a view jsf but I dont know how to configure this without nuxeo studio. I have defined a document in nuxeo studio and it has a schema "myschema" and field "myfield". Now I want show this field in my view view.xhtml but without use documentLayout tag because only have to show one field and field has to be a list widget.
My configurations:
-myschema:telefonos multi valued in nuxeo studio
-mydocument type in nuxeo studio
-In my plugin:
layout definition:
<layout name="telefonos">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml
</template>
</templates>
<rows>
<row>
<widget>listArrayWidget</widget>
</row>
</rows>
<widget name="listArrayWidget" type="list">
<labels>
<label mode="any">Teléfonos</label>
</labels>
<translated>false</translated>
<fields>
<field>data.telefonos</field>
</fields>
<properties widgetMode="edit">
<property name="required">true</property>
</properties>
<properties widgetMode="any">
<property name="hideSubLabels">true</property>
</properties>
<subWidgets>
<widget name="listItem" type="text">
<fields>
<field></field>
</fields>
<labels>
<label mode="any"></label>
</labels>
<properties widgetMode="edit">
<property name="required">true</property>
<property name="validator">#{dmValidatorBean.validateTelefono}</property>
</properties>
</widget>
</subWidgets>
</widget>
</layout>
-In my view xhtml:
<a4j:outputPanel ajaxRendered="true">
<nxl:layout name="telefonos" mode="edit" value="#{mySolicitud.currentDocNuxeo}" />
</a4j:outputPanel>
This is showed well in my wizard but when press save button, the changes are not saved. Only are saved the fields text, datetime ...
Someone can help me?