Hello,
I would like to use the new layout system to define my content forms, but one
of my properties is a complex type of its own.
I have the following type definitions
<xs:schema ...>
<xs:complexType name="i18nstring">
<xs:sequence>
<xs:element name="en" type="xs:string" />
<xs:element name="nl" type="xs:string" />
<xs:element name="fr" type="xs:string" />
<xs:element name="de" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="url" type="banner:i18nstring"/>
</xs:schema>
In the old layout sytem I am able to access the language specific fields using
<widget jsfcomponent="h:inputText" schemaname="banner" fieldname="url/en" />
But in the new layout system I don't know how to access the subfields (en, fr,
...). I have created a custom widget template with the following code. The
widget shows up fine, but the field value is empty and is never saved. I left
out some of the requirements of my system so I do not overcomplicate this post,
but it's important to me I can create a custom widget that can access the
subfields. What would be the right approach?
<c:if test="#{widget.mode == 'create' or widget.mode == 'edit'}">
<h:inputText id="#{widget.id}_inputText"
value="#{field_0['en']}"
class="#{widget.properties['styleClass']}"
required="#{widget.required}"/>
...
</c:if>
Thanks.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm