struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (WW-4634) Centre alignment doesn't seem to work in Velocity tags
Date Tue, 24 May 2016 15:47:12 GMT


ASF GitHub Bot commented on WW-4634:

Github user victorsosa commented on the pull request:
    @aleksandr-m  You mean something like <td class="tdInput"> in controlheader.ftl
and .tdInput {text-align:left;} in styles.css. <-- This is for 2.5.
    THat means **drop align attribute completely** from S2 tags; So from now on the only way
to set the align to _center_ for example is to overwrite the css class _tdInput_ in 2.5, right?
    I will change to that code.

> Centre alignment doesn't seem to work in Velocity tags
> ------------------------------------------------------
>                 Key: WW-4634
>                 URL:
>             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

View raw message