10) How do I make it use USA date formats? (m/d/y)
Should be a simple JSF configuration.
I grepped for JSF in my nuxeo install directory, and got a bunch of jars, but
nothing that looked editable...
I'm afraid this is not a simple config. One would have to search through the
xhtml files for date formats:
<f:convertDateTime pattern="dd/MM/yyyy" />
and change them. I have to admit that this is not very nice.
11) Can I define pulldown lists for fields other than Coverage?
Yes, that what hierarchical vocabularies are made for.
I guess the question is: how to tie a particular vocabulary to a particular
field? What happens to fields with existing data when a particular entry in
the vocabulary with that data goes away?
This is done in the presentation layer, in the xhtml files.
If you have defined two or more vocabularies (d1, d2, etc) you need to write
smth like this:
<nxdir:chainSelect value="#{currentDocument.schema.field}">
<nxdir:chainSelectListbox directoryName="d1" ../>
<nxdir:chainSelectListbox directoryName="d2" ../>
..
</nxdir:chainSelect>
This will initialize the vocabulary from the document field value and will
eventually save the modified values back.
Note that all vocabularies except the first must use schema xvocabulary
(extended) which also has a parent field.
In the coverage case, this binding is done here:
http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/tabs/document_metadata_edit.xhtml:
<nxdir:chainSelect
size="2"
value="#{currentDocument.dublincore.coverage}"
id="coverage"
>
If an entry in a vocabulary is removed and that value is still used by a field, nothing happens until you edit the
document. When the page is displayed, the chainSelect wont be able to match the value from the field to an entry in the
vocabulary (it needs to do that in order to retrieve the label), so that value would be silently discarded. When saving,
values from removed entries will disappear.
Thanks again to everyone for your help. This looks like a great community,
and I apologize for being so Java-impaired.
-- John
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm