1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <%
request.setAttribute("dyndecorator", new TableDecorator()
{
public String addRowClass()
{
String status = null;
if ((String)((Lecture)getCurrentRowObject()).getStatus() == "Ouvert"){
status = "open";
} else if ((String)((Lecture)getCurrentRowObject()).getStatus() == "Ferme") {
status = "close";
} else {
status = "wait";
}
return status;
}
});
%>
<display:table name="lectureForm.listNow"
requestURI="/lecture.do" class="dataTable3" id="lecture" export="false" decorator="dyndecorator">
<display:column title="Titre" sortable="true" media="html">
<html:link action="lectureInformation" paramId="id" paramName="lecture"
paramProperty="id">
<bean:write name="lecture" property="title" />
</html:link>
</display:column>
<display:column title="Places totales" sortable="true" media="html" property="placeNumber" />
<display:column title="Places libres" sortable="true" media="html" property="freePlaceNumber" />
<display:column title="Statut" sortable="true" media="html" property="status" class="status" />
<display:column title="Inscription" sortable="true" media="html" property="userInscription" class="trie" />
</display:table> |
Partager