How about that? If you have some time, try this code and tell me how to keep
this form in a single line, and use the
ajax behavior to the <s:submit> button.
<div>
<table border="2" cellspacing="0" cellpadding="10">
<tr>
<td>Register Form!</td>
</tr>
<tr>
<td>
<s:form id="form" action="user!insertUser" theme="ajax">
<s:textfield name="user.name" label="Username"
size="40" theme="simple"
/>
<s:textfield name="user.email" label="E-mail"
size="40" theme="simple"
/>
<s:password name="user.password"
label="Password" size="40"
theme="simple" />
<s:datetimepicker name="user.birthday"
label="Birthday"
displayFormat="dd/MM/yyyy" theme="simple"/>
<s:submit value="Submit"
notifyTopics="listUsersTopic" theme="simple" />
</s:form>
</td>
</tr>
</table>
</div>
<p>
<s:div id="usersList" href="user!listAll.action" theme="ajax"
listenTopics="listUsersTopic" />
Anyway, thanks for the answer...
Regards,
Felipe
Dave Newton-4 wrote:
>
> --- Felipe Rodrigues <[EMAIL PROTECTED]>
> wrote:
>> Does somebody have an example about how make a form
>> using the struts tags,
>> with all of components in a single line?
>
> I believe you already got the answer to this, but for
> the sake of completeness... setting theme="simple" on
> a component will keep it from using the normal table
> stuff.
>
> <s:textfield name="any"
> size="30"
> required="true"
> theme="simple"/>
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Struts-ui-components-inside-%3Ctable%3E-in-a-single-line.-tf3489297.html#a9744831
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]