webwork/src/resources/web/template/xhtml table.jsp,1.2,1.3

[email protected] Thu, 13 Nov 2003 14:50:52 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/resources/web/template/xhtml
In directory sc8-pr-cvs1:/tmp/cvs-serv7128/src/resources/web/template/xhtml

Modified Files:
	table.jsp 
Log Message:
Add table id if specified

Index: table.jsp
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/resources/web/template/xhtml/table.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- table.jsp	28 Mar 2003 08:01:12 -0000	1.2
+++ table.jsp	13 Nov 2003 22:50:50 -0000	1.3
@@ -14,7 +14,10 @@
 <webwork:if test=". != null">
 	<webwork:if test="model != null">
 		<p align="center">
-			<table bgcolor="white" border="0" cellpadding="1" cellspacing="0" >
+			<table bgcolor="white" border="0" cellpadding="1" cellspacing="0"
+         <webwork:property value="parameters['id']">
+            <webwork:if test=".">id="<webwork:property value="."/>"</webwork:if>
+         </webwork:property> >
 				<tr>
 					<td>
 						<table  border="0" cellpadding="2" cellspacing="1">
@@ -108,7 +111,10 @@
 	</webwork:if>
 	<webwork:else>
 		<center>
-			<table border="1">
+			<table border="1"
+          <webwork:property value="parameters['id']">
+            <webwork:if test=".">id="<webwork:property value="."/>"</webwork:if>
+         </webwork:property> >
 				<tr><th><font color="red">ERROR</font></th></tr>
 				<tr><td>no model was available</td></tr>
 			</table>




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/