continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r366178 - in /maven/continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/view/jsp/ui/ resources/localization/ resources/template/default/ webapp/ webapp/WEB-INF/
Date Thu, 05 Jan 2006 13:38:19 GMT
Author: evenisse
Date: Thu Jan  5 05:38:07 2006
New Revision: 366178

URL: http://svn.apache.org/viewcvs?rev=366178&view=rev
Log:
Remove all <tr>, <th> and <td> from jsp and use continuum data tag instead
for presentation, so it will be more easy to update jsps without need to know html to use
for rendering

Added:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
  (with props)
    maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm   (with
props)
Modified:
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
    maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/file.vm
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld
    maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenOneProject.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenTwoProject.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/addProject.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/configuration.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp

Added: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java?rev=366178&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
(added)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
Thu Jan  5 05:38:07 2006
@@ -0,0 +1,37 @@
+package org.apache.maven.continuum.web.view.jsp.ui;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import com.opensymphony.webwork.views.jsp.ui.AbstractUITag;
+
+/**
+ * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
+ * @version $Id$
+ */
+public class DataTag
+    extends AbstractUITag
+{
+    /**
+     * The name of the default template for the SubmitCancelTag
+     */
+    final public static String TEMPLATE = "data";
+
+    protected String getDefaultTemplate()
+    {
+        return TEMPLATE;
+    }
+}

Propchange: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DataTag.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
Thu Jan  5 05:38:07 2006
@@ -17,6 +17,7 @@
 workingCopy = Working&nbsp;Copy
 builds = Builds
 info = Info
+or = OR
 
 // ----------------------------------------------------------------------
 // Page: Top

Added: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm?rev=366178&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm (added)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm Thu
Jan  5 05:38:07 2006
@@ -0,0 +1 @@
+#parse("/template/default/controlheader.vm")#if ($parameters.nameValue) $!webwork.htmlEncode($parameters.nameValue)
#end#parse("/template/default/controlfooter.vm")

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/data.vm
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/file.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/file.vm?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/file.vm (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/file.vm Thu
Jan  5 05:38:07 2006
@@ -1 +1,2 @@
+#if (!$parameters.size) #set ($parameters.size = '100') #end
 #parse("/template/default/controlheader.vm")#parse("/template/simple/file.vm")#parse("/template/default/controlfooter.vm")

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld Thu Jan 
5 05:38:07 2006
@@ -10,7 +10,7 @@
 		<name>date</name>
 		<tagclass>org.apache.maven.continuum.web.view.jsp.ui.DateTag</tagclass>
 		<bodycontent>JSP</bodycontent>
-		<info>visitor tag</info>
+		<info>date tag</info>
 		<attribute>
 			<name>name</name>
 			<required>true</required>
@@ -25,6 +25,23 @@
 			<name>nice</name>
 			<required>false</required>
 			<rtexprvalue>true</rtexprvalue>
+		</attribute>
+	</tag>
+
+	<tag>
+		<name>data</name>
+		<tagclass>org.apache.maven.continuum.web.view.jsp.ui.DataTag</tagclass>
+		<bodycontent>JSP</bodycontent>
+		<info>data tag</info>
+        <attribute>
+            <name>label</name>
+            <required>false</required>
+            <rtexprvalue>true</rtexprvalue>
+        </attribute>
+		<attribute>
+			<name>name</name>
+			<required>false</required>
+			<rtexprvalue>false</rtexprvalue>
 		</attribute>
 	</tag>
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/about.jsp Thu Jan  5 05:38:07 2006
@@ -1,4 +1,5 @@
 <%@ taglib uri="webwork" prefix="ww" %>
+<%@ taglib uri="continuum" prefix="c1" %>
 <html>
   <ww:i18n name="localization.Continuum">
     <head>
@@ -9,10 +10,9 @@
         <h3><ww:text name="about.section.title"/></h3>
         <div class="axial">
           <table border="1" cellspacing="2" cellpadding="3" width="100%">
-            <tr class="b">
-              <th><ww:text name="about.version.label"/></th>
-              <td><ww:text name="about.version.number"/></td>
-            </tr>
+            <c1:data label="%{getText('about.version.label')}">
+                <ww:param name="after"><ww:text name="about.version.number"/></ww:param>
+            </c1:data>
           </table>
         </div>
       </div>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenOneProject.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenOneProject.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenOneProject.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenOneProject.jsp Thu Jan
 5 05:38:07 2006
@@ -11,28 +11,15 @@
             <h3><ww:text name="add.m1.project.section.title"/></h3>
                 <div class="axial">
                     <ww:form method="post" action="addMavenOneProject.action" name="addMavenOneProject"
enctype="multipart/form-data">
-                        <table border="1" cellspacing="2" cellpadding="3" width="100%">
-                        <tr class="b">
-                            <th><ww:text name="add.m1.project.m1PomUrl.label"/>
</th>
-                            <td>
-                                <input type="text" name="m1PomUrl" value="" size="100"/>
-                                <p><ww:text name="add.m1.project.m1PomUrl.message"/></p>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th>&nbsp;</th>
-                            <td>
-                                <strong>OR</strong>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="add.m1.project.m1PomFile.label"/></th>
-                            <td >
-                                <input type="file" name="m1PomFile" value="" size="100"/>
-                                <p><ww:text name="add.m1.project.m1PomFile.message"/></p>
-                            </td>
-                        </tr>
-                        </table>
+                        <ww:textfield label="%{getText('add.m1.project.m1PomUrl.label')}"
name="m1PomUrl">
+                            <ww:param name="desc"><p><ww:text name="add.m1.project.m1PomUrl.message"/></p></ww:param>
+                        </ww:textfield>
+                        <c1:data label="">
+                            <ww:param name="after"><strong><ww:text name="or"/></strong></ww:param>
+                        </c1:data>
+                        <ww:file label="%{getText('add.m1.project.m1PomFile.label')}"
name="m1PomFile">
+                            <ww:param name="desc"><p><ww:text name="add.m1.project.m1PomFile.message"/></p></ww:param>
+                        </ww:file>
                         <c1:submitcancel value="%{getText('add')}" cancel="%{getText('cancel')}"/>
                     </ww:form>
                 </div>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenTwoProject.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenTwoProject.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenTwoProject.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/addMavenTwoProject.jsp Thu Jan
 5 05:38:07 2006
@@ -11,28 +11,15 @@
                 <h3><ww:text name="add.m2.project.section.title"/></h3>
                 <div class="axial">
                     <ww:form method="post" action="addMavenTwoProject.action" name="addMavenTwoProject"
enctype="multipart/form-data">
-                        <table border="1" cellspacing="2" cellpadding="3" width="100%">
-                        <tr class="b">
-                            <th><ww:text name="add.m2.project.m2PomUrl.label"/></th>
-                            <td >
-                                <input type="text" name="m2PomUrl" value="" size="100"/>
-                                <p><ww:text name="add.m2.project.m2PomUrl.message"/></p>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th>&nbsp;</th>
-                            <td>
-                                <strong>OR</strong>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="add.m2.project.m2PomFile.label"/></th>
-                            <td >
-                                <input type="file" name="m2PomFile" value="" size="100"/>
-                                <p><ww:text name="add.m2.project.m2PomFile.message"/></p>
-                            </td>
-                        </tr>
-                        </table>
+                        <ww:textfield label="%{getText('add.m2.project.m2PomUrl.label')}"
name="m2PomUrl">
+                            <ww:param name="desc"><p><ww:text name="add.m2.project.m2PomUrl.message"/></p></ww:param>
+                        </ww:textfield>
+                        <c1:data label="">
+                            <ww:param name="after"><strong><ww:text name="or"/></strong></ww:param>
+                        </c1:data>
+                        <ww:file label="%{getText('add.m2.project.m2PomFile.label')}"
name="m2PomFile">
+                            <ww:param name="desc"><p><ww:text name="add.m2.project.m2PomFile.message"/></p></ww:param>
+                        </ww:file>
                         <c1:submitcancel value="%{getText('add')}" cancel="%{getText('cancel')}"/>
                     </ww:form>
                 </div>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/addProject.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/addProject.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/addProject.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/addProject.jsp Thu Jan  5 05:38:07
2006
@@ -26,50 +26,24 @@
                 <div class="axial">
                     <ww:form method="post" action="addProject.action">
                         <input type="hidden" name="projectType" value="<ww:property
value="projectType"/>">
-                        <table border="1" cellspacing="2" cellpadding="3" width="100%">
-                        <tr class="b">
-                            <th><ww:text name="projectName.label"/></th>
-                            <td >
-                                <input type="text" name="projectName" value="" size="100"/>
-                                <p><ww:text name="projectName.message"/></p>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="projectVersion.label"/></th>
-                            <td >
-                                <input type="text" name="projectVersion" value="" size="100"/>
-                                <p><ww:text name="projectVersion.message"/></p>
-                             </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="projectScmUrl.label"/></th>
-                            <td >
-                                <input type="text" name="projectScmUrl" value="" size="100"/>
-                                <p><ww:text name="projectScmUrl.message"/></p>
-                             </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="projectScmUsername.label"/></th>
-                            <td >
-                                <input type="text" name="projectScmUsername" value=""
size="100"/>
-                                <p><ww:text name="projectScmUsername.message"/></p>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="projectScmPassword.label"/></th>
-                            <td >
-                                <input type="password" name="projectScmPassword" value=""
size="100"/>
-                                <p><ww:text name="projectScmPassword.message"/></p>
-                            </td>
-                        </tr>
-                        <tr class="b">
-                            <th><ww:text name="projectScmTag.label"/></th>
-                            <td >
-                                <input type="text" name="projectScmTag" value="" size="100"/>
-                                <p><ww:text name="projectScmTag.message"/></p>
-                            </td>
-                        </tr>                                                     
                                                          
-                        </table>
+                        <ww:textfield label="%{getText('projectName.label')}" name="projectName">
+                            <ww:param name="desc"><p><ww:text name="projectName.message"/></p></ww:param>
+                        </ww:textfield>
+                        <ww:textfield label="%{getText('projectVersion.label')}" name="projectVersion">
+                            <ww:param name="desc"><p><ww:text name="projectVersion.message"/></p></ww:param>
+                        </ww:textfield>
+                        <ww:textfield label="%{getText('projectScmUrl.label')}" name="projectScmUrl">
+                            <ww:param name="desc"><p><ww:text name="projectScmUrl.message"/></p></ww:param>
+                        </ww:textfield>
+                        <ww:textfield label="%{getText('projectScmUsername.label')}" name="projectScmUsername">
+                            <ww:param name="desc"><p><ww:text name="projectScmUsername.message"/></p></ww:param>
+                        </ww:textfield>
+                        <ww:password label="%{getText('projectScmPassword.label')}" name="projectScmPassword">
+                            <ww:param name="desc"><p><ww:text name="projectScmPassword.message"/></p></ww:param>
+                        </ww:password>
+                        <ww:textfield label="%{getText('projectScmTag.label')}" name="projectScmTag">
+                            <ww:param name="desc"><p><ww:text name="projectScmTag.message"/></p></ww:param>
+                        </ww:textfield>
                         <c1:submitcancel value="%{getText('add')}" cancel="%{getText('cancel')}"/>
                     </ww:form>
                 </div>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp Thu Jan  5 05:38:07
2006
@@ -25,33 +25,28 @@
 
         <div class="axial">
           <table border="1" cellspacing="2" cellpadding="3" width="100%">
-            <tr class="b">
-              <th><ww:text name="buildResult.startTime"/></th>
-              <td><c1:date name="buildResult.startTime"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="buildResult.endTime"/></th>
-              <td><c1:date name="buildResult.endTime"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="buildResult.buildTrigger"/></th>
-              <td>TODO<ww:property value="buildResult.trigger"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="buildResult.state"/></th>
-              <td>TODO<ww:property value="buildResult.state"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="buildResult.buildNumber"/></th>
-              <td>
-                <ww:if test="buildResult.buildNumber != 0">
-                    <ww:property value="buildResult.buildNumber"/>
-                </ww:if>
-                <ww:else>
-                    &nbsp;
-                </ww:else>
-              </td>
-            </tr>
+            <c1:data label="%{getText('buildResult.startTime')}">
+                <ww:param name="after"><c1:date name="buildResult.startTime"/></ww:param>
+            </c1:data>
+            <c1:data label="%{getText('buildResult.endTime')}">
+                <ww:param name="after"><c1:date name="buildResult.endTime"/></ww:param>
+            </c1:data>
+            <c1:data label="%{getText('buildResult.buildTrigger')}">
+                <ww:param name="after">TODO<ww:property value="buildResult.trigger"/></ww:param>
+            </c1:data>
+            <c1:data label="%{getText('buildResult.state')}">
+                <ww:param name="after">TODO<ww:property value="buildResult.state"/></ww:param>
+            </c1:data>
+            <c1:data label="%{getText('buildResult.buildNumber')}">
+                <ww:param name="after">
+                    <ww:if test="buildResult.buildNumber != 0">
+                        <ww:property value="buildResult.buildNumber"/>
+                    </ww:if>
+                    <ww:else>
+                        &nbsp;
+                    </ww:else>
+                </ww:param>
+            </c1:data>
           </table>
         </div>
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/configuration.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/configuration.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/configuration.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/configuration.jsp Thu Jan  5 05:38:07
2006
@@ -1,4 +1,5 @@
 <%@ taglib uri="webwork" prefix="ww" %>
+<%@ taglib uri="continuum" prefix="c1" %>
 <html>
   <ww:i18n name="localization.Continuum">
     <head>
@@ -10,41 +11,22 @@
 
         <div class="axial">
           <table border="1" cellspacing="2" cellpadding="3" width="100%">
-            <tr class="b">
-              <th><ww:text name="configuration.guest.label"/></th>
-              <td>
-                <ww:text name="configuration.guest.value">
-                    <ww:param>
-                        <ww:if test="guestAccountEnabled"><ww:text name="enabled"/></ww:if>
-                        <ww:else><ww:text name="disabled"/></ww:else>
-                    </ww:param>
-                </ww:text>
-              </td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.workingDirectory.label"/></th>
-              <td><ww:property value="workingDirectory"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.buildOutputDirectory.label"/></th>
-              <td><ww:property value="buildOutputDirectory"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.baseUrl.label"/></th>
-              <td><ww:property value="baseUrl"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.companyName.label"/></th>
-              <td><ww:property value="companyName"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.companyLogo.label"/></th>
-              <td><ww:property value="companyLogo"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="configuration.companyUrl.label"/></th>
-              <td><ww:property value="companyUrl"/></td>
-            </tr>
+            <c1:data label="%{getText('configuration.guest.label')}">
+                <ww:param name="after">
+                    <ww:text name="configuration.guest.value">
+                        <ww:param>
+                            <ww:if test="guestAccountEnabled"><ww:text name="enabled"/></ww:if>
+                            <ww:else><ww:text name="disabled"/></ww:else>
+                        </ww:param>
+                    </ww:text>
+                </ww:param>
+            </c1:data>
+            <c1:data label="%{getText('configuration.workingDirectory.label')}" name="workingDirectory"/>
+            <c1:data label="%{getText('configuration.buildOutputDirectory.label')}" name="buildOutputDirectory"/>
+            <c1:data label="%{getText('configuration.baseUrl.label')}" name="baseUrl"/>
+            <c1:data label="%{getText('configuration.companyName.label')}" name="companyName"/>
+            <c1:data label="%{getText('configuration.companyLogo.label')}" name="companyLogo"/>
+            <c1:data label="%{getText('configuration.companyUrl.label')}" name="companyUrl"/>
           </table>
           <ww:form action="configuration!edit.action" method="post">
               <ww:submit value="%{getText('edit')}"/>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp?rev=366178&r1=366177&r2=366178&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp Thu Jan  5 05:38:07
2006
@@ -1,6 +1,7 @@
 <%@ taglib uri="webwork" prefix="ww" %>
 <%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
+<%@ taglib uri="continuum" prefix="c1" %>
 <html>
   <ww:i18n name="localization.Continuum">
     <head>
@@ -20,22 +21,10 @@
             
         <div class="axial">
           <table border="1" cellspacing="2" cellpadding="3" width="100%">
-            <tr class="b">
-              <th><ww:text name="projectView.project.name"/></th>
-              <td><ww:property value="project.name"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="projectView.project.version"/></th>
-              <td><ww:property value="project.version"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="projectView.project.scmUrl"/></th>
-              <td><ww:property value="project.scmUrl"/></td>
-            </tr>
-            <tr class="b">
-              <th><ww:text name="projectView.project.group"/></th>
-              <td><ww:property value="project.projectGroup.name"/></td>
-            </tr>
+            <c1:data label="%{getText('projectView.project.name')}" name="project.name"/>
+            <c1:data label="%{getText('projectView.project.version')}" name="project.version"/>
+            <c1:data label="%{getText('projectView.project.scmUrl')}" name="project.scmUrl"/>
+            <c1:data label="%{getText('projectView.project.group')}" name="project.projectGroup.name"/>
           </table>
           <ww:form action="projectEdit!edit.action" method="post">
               <input type="hidden" name="projectId" value="<ww:property value="project.id"/>"/>



Mime
View raw message