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

Thu, 29 Mar 2007 14:11:21 -0800

Of course it was ok to ask first before filing a bug. For the docs you pointed out, there is an annotation in a green box right in the middle:

"The xhtml theme renders out a two-column table. If a different layout is needed, do not write your own HTML. Create a new theme or utilize the simple theme."

Thanks anyway,
- Rene

Felipe Rodrigues schrieb:
Hi Philip,

We are look guys, since I asked here, before create an issue at Jira, isn't
it?

By the way I read the documentation at http://cwiki.apache.org/WW/form-tags.html http://cwiki.apache.org/WW/form-tags.html but it don't tell anything about
this hidden "feature".

I posted here, because I really think that if it is not a bug, it can be
improved.

I imagined that it could be a feature, to put each component in a diferent
line.

But how about when we want all them in a single line and use the theme ajax
to some components?
A little confuse, don't you think?

xhtml theme extends simple, but if I want to use my components without a
label and all of them in a single line, I must set hte theme as simple. Hum... How could we improve that?

Anyway, could you give me a example about how to work around this feature?
The FAQ link you sent me have no example. :-)

Best Regards,

Felipe


Philip Luppens wrote:
You might want to read the documentation of Struts 2 (hint, under FAQ
[1]) before you shout 'BUG'.

Plus, you should use the user mailing list for questions like this,
the dev list is for the development of Struts 2.

[1]
http://cwiki.apache.org/WW/why-do-the-form-tags-put-table-tags-around-controls.html

Thank you,

Phil

On 3/29/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
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]



--
iDTV System Engineer
"Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live." - John F. Woods

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






--
Rene Gielen  | http://it-neering.net/
Aachen       | PGP-ID: BECB785A
Germany      | gielen at it-neering.net

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

Reply via email to