|
Re: Importing our own schema into Nuxeo using sample project - 'not a regis: msg#00297cms.nuxeo.general
Hi, Question 1: What is the correct way to reference the 'name' attribute on the 'RULE-POOL' element in 'ecm-types-contrib.xml'?You cannot bind individual sub-elements (like the RULE/name field) to a widget. When we have the API to set a sub property on a document model, maybe this will be possible. Currently we're using the current syntax: <h:inputText value="#{document.schemaName.fieldName}" /> This will trigger the document.setProperty(schemaName, fieldName, value) when setting the value. A syntax like would not be able to trigger the setProperty method on the document: <h:inputText value="#{document.schemaName.fieldName.subFieldName}" /> Question 2: Is there any documentation on the the '<widget>'s that are available to use in 'ecm-types-contrib.xml'? Specifically, I would like to know how to change the display name of this field, so it doesn't appear to the user as 'RULE-POOL:name', but something more human-readable, and would also know what types of widgets are available to display the data. There is no documentation yet as this mecanism is not done yet: the layout system is not configurable enough to address non-simple use cases. If you can, I would suggest that you change your schema for now into: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://policy.policymatter.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified"> <xsd:element name="name" type="xsd:string" use="required" /> <xsd:element name="version" type="xsd:string" use="required" /> </xsd:schema> Regards, -- Anahide Tchertchian, Nuxeo Mail: at-CQNGlVZ5l00AvxtiuMwx3w@xxxxxxxxxxxxxxxx - Tel: +33 (0)1 40 33 79 87 http://www.nuxeo.com - http://www.nuxeo.org |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Tab ordering: 00297, Sean Radford |
|---|---|
| Next by Date: | Re: Tab ordering: 00297, Anahide Tchertchian |
| Previous by Thread: | Re: Importing our own schema into Nuxeo using sample project - 'not a registered core type'i: 00297, Bogdan Stefanescu |
| Next by Thread: | Re: Importing our own schema into Nuxeo using sample project - 'not a registered core type': 00297, Craig Pugsley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |