Anonymous avatar Anonymous committed 1dc9928

WW-1076: simple and xhtml themes

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@1940 573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (43)

src/java/template/archive/simple/checkbox.vm

+<input type="checkbox" name="$!webwork.htmlEncode($parameters.name)" value="$!webwork.htmlEncode($parameters.fieldValue)"
+#if ($parameters.nameValue)        checked="checked"                                        #end
+#if ($parameters.disabled && $parameters.disabled == true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)"    #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/>

src/java/template/archive/simple/checkboxlist.vm

+#set( $items = $parameters.list )
+#if( $items )
+    #set( $itemCount = 0 )
+    #foreach( $item in $items )
+        #set( $itemCount = $itemCount + 1)
+        $stack.push($item)
+        #if( $parameters.listKey )
+            #set( $itemKey = $stack.findValue($parameters.listKey) )
+        #else
+            #set( $itemKey = $item )
+        #end
+        #if( $parameters.listValue )
+            #set( $itemValue  = $stack.findValue($parameters.listValue) )
+        #else
+            #set( $itemValue = $item )
+        #end
+        <input type="checkbox" name="$!webwork.htmlEncode($parameters.name)" value="$!webwork.htmlEncode($itemKey)"
+        #parse("/$parameters.templateDir/simple/scripting-events.vm")
+        id="$!webwork.htmlEncode($parameters.name)-$itemCount" #if( $tag.contains($parameters.nameValue, $itemKey) ) checked="checked" #end/>
+        <label for="$!webwork.htmlEncode($parameters.name)-$itemCount" class="checkboxLabel">$!webwork.htmlEncode($itemValue)</label><br />
+        #set ($trash = $stack.pop())
+    #end
+#else
+  &nbsp;
+#end

src/java/template/archive/simple/combobox.vm

+<input type="text"
+                                   name="$!webwork.htmlEncode($parameters.name)"
+#if ($parameters.size)             size="$!webwork.htmlEncode($parameters.size)"            #end
+#if ($parameters.maxlength)        maxlength="$!webwork.htmlEncode($parameters.maxlength)"  #end
+#if ($parameters.nameValue)        value="$!webwork.htmlEncode($parameters.nameValue)"      #end
+#if ($parameters.disabled && $parameters.disabled == true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.readonly)         readonly="readonly"                                      #end
+#if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)"    #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/><br/>
+
+#if ($parameters.list)
+<select onChange="this.form.elements['$!webwork.htmlEncode($parameters.name)'].value=this.options[this.selectedIndex].value"
+     #if ($parameters.disabled == true) disabled="disabled" #end
+>
+#foreach ($param in $parameters.list)
+    <option value="$!webwork.htmlEncode($param)"#if ($parameters.name == $param) selected="selected"#end>$!webwork.htmlEncode($param)</option>
+#end
+</select>#end

src/java/template/archive/simple/debug.vm

+<script language="JavaScript" type="text/javascript">
+<!--
+    function toggleDebug(debugId) {
+        var debugDiv = document.getElementById(debugId);
+        if (debugDiv) {
+            var display = debugDiv.style.display;
+            if (display == 'none') {
+                debugDiv.style.display = 'block';
+            } else if (display == 'block') {
+                debugDiv.style.display = 'none';
+            }
+        }
+    }
+-->
+</script>
+#set ($id = $parameters.id)
+#if ($id) #else #set ($id = 'debug') #end
+<p/>
+<a href="#" onclick="toggleDebug('$id')">[Debug]</a>
+<div style="display:none" id="$id">
+<h2>WebWork ValueStack Debug</h2>
+<p/>
+#set($contextMap = $stack.context)
+<h3>Stack Context</h3>
+<i>These items are available using the #key notation</i>
+<table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="#DDDDDD">
+<tr>
+<th>Key</th><th>Value</th>
+</tr>
+#set ($index = 1)
+#foreach ($contextKey in $contextMap.keySet())
+<tr bgcolor="#if (($index % 2) == 0)#BBBBBB#else#CCCCCC#end">
+<td>$contextKey</td><td>$contextMap.get($contextKey)</td>
+</tr>
+#set ($index = $index + 1)
+#end
+</table>
+<p/>
+<h3>Value Stack Contents</h3>
+#set ($stackContents = $parameters.stackValues)
+<table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="#DDDDDD">
+<tr><th>Object</th><th>Property Name</th><th>Property Value</th></tr>
+#set ($index = 1)
+#foreach ($stackObject in $stackContents)
+<tr>
+<td rowspan="$stackObject.value.size()">$stackObject.key</td>
+#set ($renderRow = false)
+#set ($propertyMap = $stackObject.value)
+#foreach ($propertyName in $propertyMap.keySet())
+#if ($renderRow == true)<tr>#else #set ($renderRow = true) #end
+<td bgcolor="#if (($index % 2) == 0)#BBBBBB#else#CCCCCC#end">$propertyName</td>
+<td bgcolor="#if (($index % 2) == 0)#BBBBBB#else#CCCCCC#end">$!propertyMap.get($propertyName)</td>
+</tr>
+#set ($index = $index + 1)
+#end
+#end
+</table>
+</div>

src/java/template/archive/simple/doubleselect.vm

+`#parse("/$parameters.templateDir/simple/select.vm")
+#set ( $startCount = 0)
+#if ($parameters.headerKey && $parameters.headerValue)
+    #set ( $startCount = $startCount + 1)
+#end
+#if ($parameters.emptyOption)
+    #set ( $startCount = $startCount + 1)
+#end
+
+<br/>
+<select name="$!webwork.htmlEncode($parameters.doubleName)"
+    #if ($parameters.disabled)         disabled="disabled"                                         #end
+    #if ($parameters.doubleTabindex)   tabindex="$!webwork.htmlEncode($parameters.doubleTabindex)" #end
+    #if ($parameters.doubleId)         id="$!webwork.htmlEncode($parameters.doubleId)"             #end
+    #if ($parameters.multiple)         multiple="multiple"                                         #end
+    #if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"          #end
+    #if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"          #end
+>
+</select>
+<script type="text/javascript">
+#set( $itemCount = $startCount )
+var $!webwork.htmlEncode($parameters.name)Group = new Array($!{parameters.listSize} + $startCount);
+for (i = 0; i < ($!{parameters.listSize} + $startCount); i++)
+$!webwork.htmlEncode($parameters.name)Group[i] = new Array();
+#foreach( $item in $items )
+    $stack.push($item)
+    #if( $parameters.listKey )
+        #set( $itemKey = $stack.findValue($parameters.listKey) )
+    #else
+        #set( $itemKey = $item )
+    #end
+    #if( $parameters.listValue )
+        #set( $itemValue  = $stack.findValue($parameters.listValue) )
+    #else
+        #set( $itemValue = $item )
+    #end
+    #set( $doubleItems = $stack.findValue($parameters.doubleList) )
+    #set( $doubleItemCount = 0 )
+    #if( $doubleItems )
+        #foreach( $doubleItem in $doubleItems )
+            $stack.push($doubleItem)
+            #if( $parameters.doubleListKey )
+                #set( $doubleItemKey = $stack.findValue($parameters.doubleListKey) )
+            #else
+                #set( $doubleItemKey = $doubleItem )
+            #end
+            #if( $parameters.doubleListValue )
+                #set( $doubleItemValue  = $stack.findValue($parameters.doubleListValue) )
+            #else
+                #set( $doubleItemValue = $doubleItem )
+            #end
+            $!webwork.htmlEncode($parameters.name)Group[$itemCount][$doubleItemCount] = new Option("$doubleItemKey", "$doubleItemValue");
+            #set( $doubleItemCount = $doubleItemCount + 1 )
+            #set ($trash = $stack.pop())
+        #end
+        #set( $itemCount = $itemCount + 1 )
+    #end
+    #set ($trash = $stack.pop())
+#end
+var $!webwork.htmlEncode($parameters.name)Temp = document.$!webwork.htmlEncode(${parameters.formName}).$!webwork.htmlEncode(${parameters.doubleName});
+#set( $itemCount = $startCount )
+#set( $redirectTo = 0 )
+#foreach( $item in $items )
+    $stack.push($item)
+    #if( $parameters.listValue )
+        #set( $itemValue  = $stack.findValue($parameters.listValue) )
+    #else
+        #set( $itemValue = $item )
+    #end
+    #if( $tag.contains($parameters.nameValue, $itemKey) )
+        #set( $redirectTo = $itemCount )
+    #end
+    #set( $itemCount = $itemCount + 1 )
+    #set ($trash = $stack.pop())
+#end
+$!{webwork.htmlEncode($parameters.name)}Redirect($redirectTo);
+function $!{webwork.htmlEncode($parameters.name)}Redirect(x) {
+    for (m = $!{webwork.htmlEncode($parameters.name)}Temp.options.length - 1; m >= 0; m--)
+        $!{webwork.htmlEncode($parameters.name)}Temp.options[m] = null;
+
+    for (i = 0; i < $!{parameters.name}Group[x].length; i++) {
+        $!{webwork.htmlEncode($parameters.name)}Temp.options[i] = new Option($!{webwork.htmlEncode($parameters.name)}Group[x][i].text, $!{webwork.htmlEncode($parameters.name)}Group[x][i].value);
+    }
+
+    if ($!{parameters.name}Temp.options.length > 0)
+        $!{webwork.htmlEncode($parameters.name)}Temp.options[0].selected = true;
+}
+</script>
Add a comment to this file

src/java/template/archive/simple/empty.vm

Empty file added.

src/java/template/archive/simple/file.vm

+<input type="file"
+                                   name="$!webwork.htmlEncode($parameters.name)"
+#if ($parameters.size)             size="$!webwork.htmlEncode($parameters.size)"            #end
+#if ($parameters.nameValue)        value="$!webwork.htmlEncode($parameters.nameValue)"      #end
+#if ($parameters.disabled && $parameters.disabled == true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.accept)           accept="$!webwork.htmlEncode($parameters.accept)"        #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/>

src/java/template/archive/simple/form-close.vm

+</form>

src/java/template/archive/simple/form.vm

+<form
+#if ($parameters.namespace) namespace="$!parameters.namespace"                  #end
+#if ($parameters.id)        id="$!webwork.htmlEncode($parameters.id)"           #end
+#if ($parameters.name)      name="$!webwork.htmlEncode($parameters.name)"       #end
+#if ($parameters.action)    action="$!webwork.htmlEncode($parameters.action)"   #end
+#if ($parameters.target)    target="$!webwork.htmlEncode($parameters.target)"   #end
+#if ($parameters.method)    method="$!webwork.htmlEncode($parameters.method)"   #end
+#if ($parameters.enctype)   enctype="$!webwork.htmlEncode($parameters.enctype)" #end
+#if ($parameters.cssClass)  class="$!webwork.htmlEncode($parameters.cssClass)"  #end
+#if ($parameters.cssStyle)  style="$!webwork.htmlEncode($parameters.cssStyle)"  #end
+>
+
+#if ($parameters.isPortlet) <input type="hidden" name="wwAction" value="$!webwork.htmlEncode($parameters.wwAction)"/> #end

src/java/template/archive/simple/hidden.vm

+<input
+    type="hidden"
+    #if ($parameters.name)      name="$!webwork.htmlEncode($parameters.name)"       #end
+    #if ($parameters.nameValue) value="$!webwork.htmlEncode($parameters.nameValue)" #end
+    #if ($parameters.cssClass)  class="$!webwork.htmlEncode($parameters.cssClass)"  #end
+    #if ($parameters.cssStyle)  style="$!webwork.htmlEncode($parameters.cssStyle)"  #end
+    #if ($parameters.id)        id="$!webwork.htmlEncode($parameters.id)"           #end
+/>

src/java/template/archive/simple/label.vm

+<label
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#if ($parameters.for)              for="$!webwork.htmlEncode($parameters.for)"              #end
+>#if ($parameters.nameValue)$!webwork.htmlEncode($parameters.nameValue)#end</label>

src/java/template/archive/simple/password.vm

+<input type="password"
+                                   name="$!webwork.htmlEncode($parameters.name)"
+#if ($parameters.size)             size="$!webwork.htmlEncode($parameters.size)"            #end
+#if ($parameters.maxlength)        maxlength="$!webwork.htmlEncode($parameters.maxlength)"  #end
+#if ($parameters.nameValue && $parameters.showPassword && $parameters.showPassword == true)
+                                   value="$!webwork.htmlEncode($parameters.nameValue)"      #end
+#if ($parameters.disabled && $parameters.disabled == true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.readonly)         readonly="readonly"                                      #end
+#if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)"    #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/>

src/java/template/archive/simple/radiomap.vm

+#set( $items = $parameters.list )
+#if( $items )
+    #foreach( $item in $items )
+        $stack.push($item)
+
+        #if( $parameters.listKey )
+            #set( $itemKey = $stack.findValue($parameters.listKey) )
+        #else
+            #set( $itemKey = $item )
+        #end
+
+        #if( $parameters.listValue )
+            #set( $itemValue  = $stack.findValue($parameters.listValue) )
+        #else
+            #set( $itemValue = $item )
+        #end
+
+        <input
+            type="radio"
+            #if( $tag.contains($parameters.nameValue, $itemKey) )checked="checked"#end
+            #if ($parameters.name)
+                                        name="$!webwork.htmlEncode($parameters.name)"
+                                        id="$!webwork.htmlEncode($parameters.name)$!webwork.htmlEncode($itemKey)"
+            #end
+            #if ($itemKey)              value="$!webwork.htmlEncode($itemKey)"                #end
+            #if ($parameters.disabled)  disabled="disabled"                                   #end
+            #if ($parameters.tabindex)  tabindex="$!webwork.htmlEncode($parameters.tabindex)" #end
+            #if ($parameters.cssClass)  class="$!webwork.htmlEncode($parameters.cssClass)"    #end
+            #if ($parameters.cssStyle)  style="$!webwork.htmlEncode($parameters.cssStyle)"    #end
+            #parse("/$parameters.templateDir/simple/scripting-events.vm")
+        /><label for="$!webwork.htmlEncode($parameters.name)$!webwork.htmlEncode($itemKey)">$!itemValue</label>
+
+        #set ($trash = $stack.pop())
+    #end
+#end

src/java/template/archive/simple/scripting-events.vm

+#if ($parameters.onclick)     onclick="$!webwork.htmlEncode($parameters.onclick)"         #end
+#if ($parameters.ondblclick)  ondblclick="$!webwork.htmlEncode($parameters.ondblclick)"   #end
+#if ($parameters.onmousedown) onmousedown="$!webwork.htmlEncode($parameters.onmousedown)" #end
+#if ($parameters.onmouseup)   onmouseup="$!webwork.htmlEncode($parameters.onmouseup)"     #end
+#if ($parameters.onmouseover) onmouseover="$!webwork.htmlEncode($parameters.onmouseover)" #end
+#if ($parameters.onmousemove) onmousemove="$!webwork.htmlEncode($parameters.onmousemove)" #end
+#if ($parameters.onmouseout)  onmouseout="$!webwork.htmlEncode($parameters.onmouseout)"   #end
+#if ($parameters.onfocus)     onfocus="$!webwork.htmlEncode($parameters.onfocus)"         #end
+#if ($parameters.onblur)      onblur="$!webwork.htmlEncode($parameters.onblur)"           #end
+#if ($parameters.onkeypress)  onkeypress="$!webwork.htmlEncode($parameters.onkeypress)"   #end
+#if ($parameters.onkeydown)   onkeydown="$!webwork.htmlEncode($parameters.onkeydown)"     #end
+#if ($parameters.onkeyup)     onkeyup="$!webwork.htmlEncode($parameters.onkeyup)"         #end
+#if ($parameters.onselect)    onselect="$!webwork.htmlEncode($parameters.onselect)"       #end
+#if ($parameters.onchange)    onchange="$!webwork.htmlEncode($parameters.onchange)"       #end

src/java/template/archive/simple/select.vm

+<select name="$!webwork.htmlEncode($parameters.name)"
+    #if ($parameters.size)             size="$!webwork.htmlEncode($parameters.size)"         #end
+    #if ($parameters.disabled)         disabled="disabled"                                   #end
+    #if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)" #end
+    #if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"             #end
+    #if ($parameters.multiple)         multiple="multiple"                                   #end
+    #if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"    #end
+    #if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"    #end
+    #parse("/$parameters.templateDir/simple/scripting-events.vm")
+>
+
+#if ($parameters.headerKey && $parameters.headerValue)
+    <option value="$!webwork.htmlEncode($parameters.headerKey)">$!webwork.htmlEncode($parameters.headerValue)</option>
+#end
+
+#if ($parameters.emptyOption)
+    <option value=""></option>
+#end
+
+#set( $items = $parameters.list )
+#if( $items )
+    #foreach( $item in $items )
+        $stack.push($item)
+
+        #if( $parameters.listKey )
+            #set( $itemKey = $stack.findValue($parameters.listKey) )
+        #else
+            #set( $itemKey = $item )
+        #end
+
+        #if( $parameters.listValue )
+            #set( $itemValue = $stack.findValue($parameters.listValue) )
+        #else
+            #set( $itemValue = $item )
+        #end
+
+        <option value="$!webwork.htmlEncode($itemKey)"#if( $tag.contains($parameters.nameValue, $itemKey) ) selected="selected"#end>$!webwork.htmlEncode($itemValue)</option>
+
+        #set ($trash = $stack.pop())
+    #end
+#end
+
+</select>

src/java/template/archive/simple/submit.vm

+<input type="submit"
+#if ($parameters.name)       name="$!webwork.htmlEncode($parameters.name)"           #end
+#if ($parameters.nameValue)  value="$!webwork.htmlEncode($parameters.nameValue)"     #end
+#if ($parameters.cssClass)   class="$!webwork.htmlEncode($parameters.cssClass)"      #end
+#if ($parameters.cssStyle)   style="$!webwork.htmlEncode($parameters.cssStyle)"      #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/>

src/java/template/archive/simple/tabbedpane.vm

+#*
+  -- WebWork, Web Application Framework
+  --
+  -- Distributable under LGPL license.
+  -- See terms of license at opensource.org
+  --
+  --
+  -- tabbedpane.jsp
+  --
+  -- Required Parameters:
+  --   * contentName      - The name of the data map to be used.
+  --
+  -- Optional Parameters:
+  --   * tabAlign 	-	 The Alignment of the tabs. Default is the CENTER of the control.
+  --   * id  				- 	 Id of the control.
+  --
+  *#
+
+#bean ("com.opensymphony.webwork.util.Counter" $tabIndex)
+#set ($tabIndex.first = 0)
+#set ($tabIndex.last = $tag.content.size())
+
+<table border="1" cellspacing="0" cellpadding="5" id="$!webwork.htmlEncode($tag.id)">
+
+	<tr valign="bottom" align="$!webwork.htmlEncode($tag.tabAlign)">
+
+	#if ($tabAlign == 'CENTER' || $tabAlign == 'RIGHT')
+        <th colspan ="1" width="*"></th>
+    #end
+
+    #foreach ($c in $tag.content)
+        $stack.push($c)
+
+        <th width="10%"
+            #if ($tag.compareNumbers($tag.selectedIndex, $tabIndex.current))
+                #set ($isCur = 'true')
+                bgcolor="#A0B3FC"
+            #else
+                #set ($isCur = 'false')
+                bgcolor="#C0C0C0"
+            #end
+        >
+
+        #url ($url)
+        <a href="$url.addParameter($tag.indexLink, $tabIndex.next)">
+
+        #if ($isCur == 'true')
+            <em>
+        #end
+        $!webwork.htmlEncode($key)
+        #if ($isCur == 'true')
+            </em>
+        #end
+
+        </a>
+
+        </th>
+
+        #set ($trash = $stack.pop())
+    #end
+
+    #if ($tabAlign == 'CENTER' || $tabAlign == 'LEFT')
+        <th colspan ="1" width="*"></th>
+    #end
+
+    </tr>
+	<tr>
+		<td bgcolor="#E1EAE8" colspan="$tag.colSpanLength" width="100%">
+			#includeservlet ($tag.selectedUrl)
+		</td>
+	</tr>
+
+</table>

src/java/template/archive/simple/table.vm

+#set($webTable=$tag)
+#set($tableModel=$webTable.Model)
+
+
+#if($tableModel)
+		<p align="center">
+			<table bgcolor="white" border="0" cellpadding="1" cellspacing="0" >
+				<tr>
+					<td>
+						<table  border="0" cellpadding="2" cellspacing="1">
+
+                            <tr bgcolor="yellow">
+
+                            #*
+                                Show the visible column names.  Use the display name that can
+                                be set in the jsp.
+                            *#
+                            #foreach($curColumn in $webTable.Columns)
+                                #if($curColumn.isVisible())
+                                        <th>
+
+                                            #if($webTable.isSortable())
+                                                <table border="0" cellspacing="0" cellpadding="0">
+												<tr>
+												    <td>
+												        $curColumn.DisplayName
+												    </td>
+												    <td>
+												        <table border="0" cellspacing="0" cellpadding="0">
+												            <tr>
+                                                                <td align="bottom">
+
+                                                                    #if(($webTable.sortColumn == $curColumn.offset) && ($webTable.sortOrder == 'ASC'))
+                                                                        <img src="#tag( URL "value='/images/sorted_asc.gif'")" border="0" align="bottom"/>                                                                    #else
+                                                                        <a href="#bodytag( URL )
+                                                                                    #param( $webTable.sortColumnLinkName $curColumn.offset)
+                                                                                    #param( $webTable.sortOrderLinkName 'ASC')
+                                                                                 #end">
+                                                                       <img src="#tag( URL "value='/images/unsorted_asc.gif'")" border="0" align="bottom"/></a>
+                                                                    #end
+                                                                </td>
+												            </tr>
+												            <tr>
+
+                                                                <td align="top">
+                                                                    #if(($webTable.sortColumn == $curColumn.offset) && ($webTable.sortOrder == 'DESC'))
+                                                                        <img src="#tag( URL "value='/images/sorted_desc.gif'")" border="0" align="top"/>
+                                                                    #else
+                                                                        <a href="#bodytag( URL )
+                                                                                    #param( $webTable.sortColumnLinkName $curColumn.offset)
+                                                                                    #param( $webTable.sortOrderLinkName 'DESC')
+                                                                                  #end"><img src="#tag( URL "value='/images/unsorted_desc.gif'")" border="0" align="top"/></a>
+                                                                    #end
+                                                                </td>
+                                                            </tr>
+												        </table>
+
+												    </td>
+												</tr>
+												</table>
+                                            #else
+                                                $curColumn.DisplayName
+                                            #end
+                                        </th>
+                                #end
+                            #end
+                            </tr>
+                             #foreach($curRow in $webTable.RowIterator)
+                                <tr #if($velocityCount % 2 == 1) bgcolor="EEEEFF" #else bgcolor="FFFFFF" #end/>
+                                #foreach($curColumn in $curRow)
+                                <td>$curColumn</td>
+
+                                #end
+                             #end
+						</table>
+					</td>
+				</tr>
+			</table>
+		</p>
+
+#end

src/java/template/archive/simple/text.vm

+<input type="text"
+                                   name="$!webwork.htmlEncode($parameters.name)"
+#if ($parameters.size)             size="$!webwork.htmlEncode($parameters.size)"            #end
+#if ($parameters.maxlength)        maxlength="$!webwork.htmlEncode($parameters.maxlength)"  #end
+#if ($parameters.nameValue)        value="$!webwork.htmlEncode($parameters.nameValue)"      #end
+#if ($parameters.disabled && $parameters.disabled == true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.readonly)         readonly="readonly"                                      #end
+#if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)"    #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+/>

src/java/template/archive/simple/textarea.vm

+<textarea name="$!webwork.htmlEncode($parameters.name)"
+          cols="$!webwork.htmlEncode($parameters.cols)"
+          rows="$!webwork.htmlEncode($parameters.rows)"
+#if ($parameters.wrap)             wrap="$!webwork.htmlEncode($parameters.wrap)"            #end
+#if ($parameters.disabled && $parameters.disabled== true)
+                                   disabled="disabled"                                      #end
+#if ($parameters.readonly)         readonly="readonly"                                      #end
+#if ($parameters.tabindex)         tabindex="$!webwork.htmlEncode($parameters.tabindex)"    #end
+#if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
+#if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
+#if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
+#parse("/$parameters.templateDir/simple/scripting-events.vm")
+>#if ($parameters.nameValue)$!webwork.htmlEncode($parameters.nameValue)#end</textarea>

src/java/template/archive/simple/token.vm

+<input type="hidden" name="$!{parameters.tokenNameField}" value="$webwork.htmlEncode($!parameters.name)"/>
+<input type="hidden" name="$!parameters.name" value="$webwork.htmlEncode($!parameters.token)"/>

src/java/template/archive/xhtml/checkbox.vm

+#if( $fieldErrors.get($parameters.name) )
+  #set ($hasFieldErrors = $fieldErrors.get($parameters.name))
+  #foreach ($error in $fieldErrors.get($parameters.name))
+    <tr>
+        <td align="left" valign="top" colspan="2"><span class="errorMessage">$!error</span></td>
+    </tr>
+  #end
+#end
+
+<tr>
+    <td valign="top" colspan="2">
+#* Use an extra table so that the checkbox doesn't align with the other columns. *#
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+    <tr>
+        <td valign="middle">#parse("$!{tag.templateDir}/simple/checkbox.vm")</td>
+        <td width="100%" valign="middle"><label #if ($parameters.id) for="$!webwork.htmlEncode($parameters.id)"#end#if ($hasFieldErrors) class="checkboxErrorLabel"#else class="checkboxLabel"#end>$!webwork.htmlEncode($parameters.label)</label></td>
+    </tr>
+</table>
+#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/checkboxlist.vm

+#parse( "/$parameters.templateDir/xhtml/controlheader.vm" )
+#parse( "/$parameters.templateDir/simple/checkboxlist.vm" )
+#parse( "/$parameters.templateDir/xhtml/controlfooter.vm" )

src/java/template/archive/xhtml/combobox.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/combobox.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/controlfooter.vm

+$!{parameters.after}</td>
+</tr>

src/java/template/archive/xhtml/controlheader.vm

+## Only show message if errors are available.
+## This will be done if ActionSupport is used.
+#if( $fieldErrors.get($parameters.name) )
+  #set ($hasFieldErrors = $fieldErrors.get($parameters.name))
+  #foreach ($error in $fieldErrors.get($parameters.name))
+    <tr errorFor="$parameters.id">
+        #if ($parameters.labelposition == 'top')<td align="left" valign="top" colspan="2">#else<td align="center" valign="top" colspan="2">#end<span class="errorMessage">$!webwork.htmlEncode($error)</span></td>
+    </tr>
+  #end
+#end
+## if the label position is top,
+## then give the label it's own row in the table
+<tr>
+#if ($parameters.labelposition && $parameters.labelposition == 'top')<td align="left" valign="top" colspan="2">#else<td align="right" valign="top">#end#if ($parameters.label)<label #if ($parameters.id) for="$!webwork.htmlEncode($parameters.id)"#end#if ($hasFieldErrors) class="errorLabel"#else class="label"#end>#if ($parameters.required)<span class="required">*</span>#end$!webwork.htmlEncode($parameters.label):</label>#end</td>
+## add the extra row
+#if ($parameters.labelposition && $parameters.labelposition == 'top')
+</tr>
+<tr>
+#end
+#if ($parameters.form.validate && $parameters.form.validate == true)
+    #if ($parameters.onblur)
+        #set ($parameters.onblur = "validate(this);${parameters.onblur}")
+    #else
+        #set ($parameters.onblur = "validate(this)")
+    #end
+#end
+    <td>

src/java/template/archive/xhtml/debug.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/debug.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/doubleselect.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/doubleselect.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")
Add a comment to this file

src/java/template/archive/xhtml/empty.vm

Empty file added.

src/java/template/archive/xhtml/file.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/file.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/form-close.vm

+</table>
+#parse("/$parameters.templateDir/simple/form-close.vm")

src/java/template/archive/xhtml/form.vm

+#if ($parameters.validate && $parameters.validate == true)
+<script src="${base}/webwork/validationClient.js"></script>
+<script src="${base}/dwr/interface/validator.js"></script>
+<script src="${base}/dwr/engine.js"></script>
+<script src="${base}/webwork/template/xhtml/validation.js"></script>
+#end
+#parse("/$parameters.templateDir/simple/form.vm")
+<table class="wwFormTable">

src/java/template/archive/xhtml/hidden.vm

+#parse("/$parameters.templateDir/simple/hidden.vm")

src/java/template/archive/xhtml/label.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/label.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/password.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/password.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/radiomap.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/radiomap.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/select.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/select.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/submit.vm

+<tr>
+    <td colspan="2"><div #if ($parameters.align) align="$!webwork.htmlEncode($parameters.align)" #end
+>#parse("/$parameters.templateDir/simple/submit.vm")</div>#parse( "/$parameters.templateDir/xhtml/controlfooter.vm" )

src/java/template/archive/xhtml/tabbedpane.vm

+#parse("/$parameters.templateDir/simple/tabbedpane.vm")

src/java/template/archive/xhtml/table.vm

+#parse("/$parameters.templateDir/simple/table.vm")

src/java/template/archive/xhtml/text.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/text.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")

src/java/template/archive/xhtml/textarea.vm

+#parse("/$parameters.templateDir/xhtml/controlheader.vm")#parse("/$parameters.templateDir/simple/textarea.vm")#parse("/$parameters.templateDir/xhtml/controlfooter.vm")
+

src/java/template/archive/xhtml/token.vm

+#parse("/$parameters.templateDir/simple/token.vm")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.