Hello Zied,
please try 10px for labelWidth instead of 10.
Regards
Bernd
Zied Hamdi wrote:
Hi,
Under facelets, I have an editable sheet in which I wanted to include dates;
there are two disfunctions:
- The date button doesn't display
- the sheet line becomes two lines high (but increasing the width
doesn't display any wrapped elements)
Here's my code:
<tc:sheet
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:tx="http://myfaces.apache.org/tobago/extension"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
columns="*;*"
value="#{contractCtrl.planning}"
var="intervention">
<tc:column>
<tc:link
id="workTaskDetailLink"
image="image/edit.PNG">
<tc:attribute
name="renderedPartially"
value="editContractForm" />
<f:facet name="popup">
<tc:popup
id="editContractForm"
height="200px"
width="200px">
<tc:box label="test"></tc:box>
</tc:popup>
</f:facet>
</tc:link>
</tc:column>
<tc:column label="|Categorie">
<tc:link
id="category"
label="#{intervention.category.name}"
action="contract" />
</tc:column>
<tc:column label="#{i18n.intervenant}">
<tc:link
id="intervenant"
label="#{intervention.intervenant.firstName} #{
intervention.intervenant.lastName}"
action="contract" />
</tc:column>
<tc:column label="#{i18n.workStartDate}">
<tx:date
id="workStartDate"
value="#{intervention.workStart}"
labelWidth="10">
<f:convertDateTime pattern="dd.MM.yyyy" />
</tx:date>
</tc:column>
<tc:column label="#{i18n.workStartTime}">
<tc:time
id="workStart"
value="#{intervention.workStart}" />
</tc:column>
<tc:column label="#{i18n.workEndTime}">
<tc:time
id="workEnd"
value="#{intervention.workEnd}" />
</tc:column>
<tc:column label="#{i18n.workEndDate}">
<tx:date
id="workEndDate"
value="#{intervention.workEnd}"
labelWidth="10">
<f:convertDateTime pattern="dd.MM.yyyy" />
</tx:date>
</tc:column>
<tc:column label="#{note}">
<tc:in value="#{intervention.note}" />
</tc:column>
</tc:sheet>
Regards,
Zied