Affichage version sur liste de documents
----------------------------------------
Key: NXP-2315
URL: http://jira.nuxeo.org/browse/NXP-2315
Project: Nuxeo Enterprise Platform 5
Issue Type: Question
Reporter: Nicolas Lecart
Assignee: Thierry Delprat
Priority: Major
on surcharge le fichier documents_table.xhtml afin d'afficher une colonne
version, mais le libellé de la version n'apparait jamais ou alors affiche 0.0
selon la méthode utilisée, pourriez vous nous donner une solution.
voici les 2 méthodes utilisées :
<nxh:outputText value="#{documentVersioning.getVersionLabel(row.data)}" />
// celle ci affiche "0.0"
<h:outputText
value="#{row.data.uid.major_version}.#{row.data.uid.minor_version}" /> // celle
ci affiche "."
on les utilise ds le cadre du nouvel colonne :
<!-- Version -->
<h:column>
<f:facet name="header">
<h:panelGroup>
<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"
rendered="#{provider.sortable}" >
<h:outputText value="#{messages['label.content.header.version']}" />
<f:param name="providerName" value="#{providerName}" />
<f:param name="sortColumn" value="uid:major_version" />
<h:panelGroup rendered="#{provider.sortInfo.sortColumn ==
'uid:major_version' }" >
<h:graphicImage value="/icons/arrow_down.gif"
rendered="#{provider.sortInfo.sortAscending}" />
<h:graphicImage value="/icons/arrow_up.gif"
rendered="#{!provider.sortInfo.sortAscending}" />
</h:panelGroup>
</h:commandLink>
<!-- <h:outputText value="#{messages['label.content.header.version']}"
rendered="#{!provider.sortable}" />-->
</h:panelGroup>
</f:facet>
<nxh:outputText value="#{documentVersioning.getVersionLabel(row.data)}"
/>
<h:outputText
value="#{row.data.uid.major_version}.#{row.data.uid.minor_version}" />
</h:column>
merci.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets