You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Li Ying <li...@gmail.com> on 2010/11/01 02:48:10 UTC

Re: s:textfield or s:select with button

Try put them in same row of a table:

<table>
    <tr>
        <td><s:textfield /></td>
        <td><s:submit /></td>
    </tr>
</table>


2010/11/1 cellterry <ce...@gmail.com>:
>
> Dear all,
>
> I have a question about s:textfield or s:select with a command button just
> following it.
>
> For example, I have tried this:
>
> <s:textfield name="name" key="emp" />
> <s:submit name="selectEmp" value="..." />
>
> I found that the button "..." is not following the selection box but is on
> the next line.
>
> Do anyone know how to correct the position so that it is just beside the
> select box?
>
> I think it should be very common.
>
> Terry.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: s:textfield or s:select with button

Posted by Dave Newton <da...@gmail.com>.
On Sunday, October 31, 2010, Li Ying wrote:
> Try put them in same row of a table:

This will only work if you're not using a theme that renders layout,
as the default "xhtml" theme does.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org