[ 
https://issues.apache.org/jira/browse/WW-3929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535152#comment-13535152
 ] 

Lukasz Lenart commented on WW-3929:
-----------------------------------

Almost good ;-) I've created test to check errorPosition="top" and the result is
{code:html}
<tr errorFor="myId">
    <td align="center" valign="top" colspan="2">
        <span class="errorMessage">barerrormessage</span>
    </td>
</tr>
<tr>
    <td class="tdLabel">
        <labelfor="myId" class="errorLabel">mylabel:</label>
    </td>
    <td>
        <input type="text" name="foo" value="bar" id="myId" title="mytitle"/>
    </td>
</tr>
{code}

As you see the first row is missing one column - td tag. I was able to solve 
that, but I have question why do use <span/> for "top" and <div/> for bottom?
                
> Add errorPosition attribute to input tags
> -----------------------------------------
>
>                 Key: WW-3929
>                 URL: https://issues.apache.org/jira/browse/WW-3929
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 2.3.7
>            Reporter: James Fleischman
>            Priority: Minor
>             Fix For: 2.3.9
>
>         Attachments: struts2-error-position-fixed2.patch
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Add an errorPosition attribute to the base UI component to allow for various 
> options of how to display errors related to a field.  The given template 
> would then uses this attribute to display the error appropriately.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to