Hi,

A new module has been created to handle view related features within the Nuxeo platform: NXWebPlatform.

It basically defines jsf components, and taglibs we would like to keep control on so that we can add features there without changing too many templates using these tags.

Please try to use tags defined in there instead of using some basic html (h:) and tomahawk (t:) tags.

see:
NXWebPlatform/WEB-INF/nxweb-fn.taglib.xml
NXWebPlatform/WEB-INF/nxweb-html.taglib.xml
NXWebPlatform/WEB-INF/nxweb-util.taglib.xml

fn usage example: (xmlns:nxf="http://nuxeo.org/nxweb/function";)
itemStyleClass="#{nxf:test(webActions.currentTabAction == tab, 'selected', '')}"

Feel free to add other useful methods there.

html usage: xmlns:nxh="http://nuxeo.org/nxweb/html";
all basic html tags

util usage: xmlns:nxu="http://nuxeo.org/nxweb/util";

The util taglib holds several tomahawk tags redefinition, feel free to add there missing ones (unless they're anyway too specific like the tomahawk tree2 tag).
It holds specific tags to handle file input and output:

<nxu:inputFile value="#{document.file.content}" filename="#{document.file.filename}" editFileName="true">

<nxu:outputFile value="#{document.file.content}" filename="#{document.file.filename}" />

It also holds a selectItems tag that gives control on what should be used for ids and labels.

<nxu:selectItems value="documentList" var="document" itemValue="#{document.ref}" itemLabel="#{document.dublincore.title}" />

Some features are currently added to handle multi selection within a table, more info on this later :)

anahide.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to