[
https://issues.apache.org/jira/browse/WW-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299961#comment-15299961
]
ASF GitHub Bot commented on WW-4634:
------------------------------------
Github user lukaszlenart commented on the pull request:
https://github.com/apache/struts/pull/95#issuecomment-221556014
Tests are failing :(
```
Error Message
expected:<...bel:</label></td><td[]><labelid="myname"ti...> but
was:<...bel:</label></td><td[class="tdInput"]><labelid="myname"ti...>
Stacktrace
junit.framework.ComparisonFailure:
expected:<...bel:</label></td><td[]><labelid="myname"ti...> but
was:<...bel:</label></td><td[class="tdInput"]><labelid="myname"ti...>
at junit.framework.Assert.assertEquals(Assert.java:100)
at junit.framework.Assert.assertEquals(Assert.java:107)
at junit.framework.TestCase.assertEquals(TestCase.java:269)
at
org.apache.struts2.views.jsp.AbstractUITagTest.verify(AbstractUITagTest.java:246)
at
org.apache.struts2.views.jsp.ui.LabelTest.testSimple(LabelTest.java:49)
```
> Centre alignment doesn't seem to work in Velocity tags
> ------------------------------------------------------
>
> Key: WW-4634
> URL: https://issues.apache.org/jira/browse/WW-4634
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.5
> Reporter: Jon Juaristi
> Priority: Minor
> Fix For: 2.5.1
>
>
> When using a tag in a Velocity template, for instance
> {{#stextfield("label=Foo" "align=center")}} with the default xhtml theme,
> inputs are prepended with just <td> instead of <td align="center"> (as it
> happens in 2.3.x) in the generated HTML. A form where you want to centre some
> of the inputs simply doesn't render as intended.
> I'm using Velocity 1.7 and Velocity Tools 2.0, if that helps.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)