webwork/src/resources/web/template/standard table.jsp,1.2,1.3
[email protected] Mon, 17 Jun 2002 05:46:33 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/resources/web/template/standard In directory usw-pr-cvs1:/tmp/cvs-serv6457 Modified Files: table.jsp Log Message: made it xhtml compliant Index: table.jsp =================================================================== RCS file: /cvsroot/webwork/webwork/src/resources/web/template/standard/table.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- table.jsp 8 May 2002 21:14:58 -0000 1.2 +++ table.jsp 17 Jun 2002 12:46:31 -0000 1.3 @@ -13,13 +13,13 @@ <webwork:if test=". != null"> <webwork:if test="model != null"> - <CENTER> - <TABLE bgcolor="000000" border="0" cellpadding="1" cellspacing="0" > - <TR> - <TD> - <TABLE border="0" cellpadding="2" cellspacing="1"> + <p align="center"> + <table bgcolor="white" border="0" cellpadding="1" cellspacing="0" > + <tr> + <td> + <table border="0" cellpadding="2" cellspacing="1"> - <TR BGColor=yellow> + <tr bgcolor="yellow"> <%/* Show the visible column names. Use the display name that can * be set in the jsp. @@ -27,32 +27,32 @@ <webwork:property value="columns"> <webwork:iterator id="curColumn"> <webwork:if test="visible == true"> - <TH> + <th> <webwork:if test="sortable == true"> - <table border=0 cellspacing='0' cellpadding='0'> + <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> - <webwork:property value="displayName"/> + <webwork:property value="displayName" escape="false"/> </td> <td> - <table border=0 cellspacing='0' cellpadding='0'> + <table border="0" cellspacing="0" cellpadding="0"> <tr> - <td valign='bottom'> + <td align="bottom"> <webwork:if test="(sortColumn == offset) && (sortOrder == 'ASC')"> - <img src='images/sorted_asc.gif' border='0' valign='bottom'/> + <img src="images/sorted_asc.gif" border="0" align="bottom"/> </webwork:if> <webwork:else> - <a href='<webwork:url><webwork:param name="sortColumnLinkName" value="offset"/><webwork:param name="sortOrderLinkName" value="'ASC'"/></webwork:url>'><img src='images/unsorted_asc.gif' border='0' valign='bottom'/></a> + <a href="<webwork:url><webwork:param name="sortColumnLinkName" value="offset"/><webwork:param name="sortOrderLinkName" value="'ASC'"/></webwork:url>"><img src="images/unsorted_asc.gif" border="0" align="bottom"/></a> </webwork:else> </td> </tr> <tr> - <td valign='top'> + <td align="top"> <webwork:if test="(sortColumn == offset) && (sortOrder == 'DESC')"> - <img src='images/sorted_desc.gif' border='0' valign='top'/> + <img src="images/sorted_desc.gif" border="0" align="top"/> </webwork:if> <webwork:else> - <a href='<webwork:url><webwork:param name="sortColumnLinkName" value="offset"/><webwork:param name="sortOrderLinkName" value="'DESC'"/></webwork:url>'><img src='images/unsorted_desc.gif' border='0' valign='top'/></a> + <a href="<webwork:url><webwork:param name="sortColumnLinkName" value="offset"/><webwork:param name="sortOrderLinkName" value="'DESC'"/></webwork:url>"><img src="images/unsorted_desc.gif" border="0" align="top"/></a> </webwork:else> </td> </tr> @@ -62,13 +62,13 @@ </table> </webwork:if> <webwork:else> - <webwork:property value="displayName"/> + <webwork:property value="displayName" escape="false"/> </webwork:else> - </TH> + </th> </webwork:if> </webwork:iterator> </webwork:property> - </TR> + </tr> <%/*counter used to alternate background row colors*/%> <webwork:bean name="'webwork.util.Counter'" id="rowCount"> @@ -84,31 +84,31 @@ * I haven't looked to see if there is a cleaner way * but there must be */%> - <TR + <tr <webwork:if test="@rowCount/next == 1"> - BGCOLOR="#EEEEFF" + bgcolor="#EEEEFF" </webwork:if> <webwork:if test = "@rowCount/next == 0"/> <webwork:if test = "@rowCount/next == 2"> - BGCOLOR="#FFFFFF" + bgcolor="#FFFFFF" </webwork:if> > <%/*show the actual cell contents. It is generated by the renderer for the columns*/%> <webwork:iterator> <td><webwork:property value="." escape="false"/></td> </webwork:iterator> - </TR> + </tr> </webwork:iterator> </webwork:property> - </TABLE> - </TD> - </TR> - </TABLE> - </CENTER> + </table> + </td> + </tr> + </table> + </p> </webwork:if> <webwork:else> <center> - <table border=1> + <table border="1"> <tr><th><font color="red">ERROR</font></th></tr> <tr><td>no model was available</td></tr> </table> _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/