Re: BUG - Struts ui components inside mess the layout.

Thu, 29 Mar 2007 12:08:51 -0800

This is no bug, but a feature :)

Either use this:
 <table>
   <tr>
     <td>some text</td>
     <td>other text</td>
     <td><s:textfield name="any" size="30" required="true"
theme="simple"/></td>
     <td><s:checkbox name="check" value="OUT" 
theme="simple"></s:checkbox></td>
     <td><s:checkbox name="check2" 
value="INV"theme="simple"></s:checkbox></td>
   </tr>
 </table>

or:

<s:form action...>
<s:textfield label="x1" name="any" size="30" required="true"/>
<s:checkbox label="x2" name="check" value="OUT"/>
<s:checkbox label="x3" name="check2" value="INV"/>
</s:form>

hth,
Rainer

>
> Hi everyone,
>
> I'm using a <table> to organize the layout of my form. I'd like to get all
> components in one line, so, I'm using this code:
> <table>
>   <tr>
>     <td>some text</td>
>     <td>other text</td>
>     <td><s:textfield name="any" size="30" required="true"/></td>
>     <td><s:checkbox name="check" value="OUT"></s:checkbox></td>
>     <td><s:checkbox name="check2" value="INV"></s:checkbox></td>
>   </tr>
> </table>
>
> But when rendering the page, struts put each component under the other. I
> checked out the generated code and found some <tr> tags lost in middle of
> my
> <td> tags. These <tr> tags was added by struts.
>
> Is that a real bug? Any idea?
>
> Regards,
>
> Felipe
> --
> View this message in context:
> http://www.nabble.com/BUG---Struts-ui-components-inside-%3Ctable%3E-mess-the-layout.-tf3488497.html#a9741411
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Rainer Hermanns
aixcept
Neupforte 16
52062 Aachen - Germany
w: http://aixcept.de/
t:    +49-241-4012247
m:  +49-170-3432912

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to