Commits

Anonymous committed f13f487

errorFor attribute required

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

  • Participants
  • Parent commits 5185513

Comments (0)

Files changed (1)

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

 #if( $fieldErrors.get($parameters.name) )
   #set ($hasFieldErrors = $fieldErrors.get($parameters.name))
   #foreach ($error in $fieldErrors.get($parameters.name))
-    <tr>
+    <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