[ https://issues.apache.org/jira/browse/WW-3929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534291#comment-13534291 ]
Lukasz Lenart commented on WW-3929: ----------------------------------- Still something is wrong, I've prepared a test in TextFieldTest.java {code:java} public void testErrorPosition() throws Exception { TestAction testAction = (TestAction) action; testAction.setFoo("bar"); TextFieldTag tag = new TextFieldTag(); tag.setPageContext(pageContext); tag.setId("myId"); tag.setLabel("mylabel"); tag.setName("foo"); tag.setValue("bar"); tag.setTitle("mytitle"); tag.setErrorPosition("bottom"); testAction.addFieldError("foo", "bar error message"); tag.doStartTag(); tag.doEndTag(); verify(TextFieldTag.class.getResource("Textfield-2.txt")); } {code} and the result is: {code:html} <tr> <td class="tdLabel"> <label for="myId" class="errorLabel">mylabel:</label> </td> <td> <input type="text" name="foo" value="bar" id="myId" title="mytitle"/> <tr> <td> </td> <td> <div class="errorMessage">barerrormessage</div> </td> </tr> </td> </tr> {code} > 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-fixed.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