Mens, I said it works putting the submit outside the <s:form>, but it doesn't. The button is moved to a line separated by a Horizontal Line. At least, it does execute correctly the action.
thanks, Felipe Felipe Rodrigues wrote: > > Hi mans, > I'm really so sorry to insist in this, but look at this code. How work > around this? > > <s: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> > > Using this code, when I click at Submit, the page does not work properly, > instead of refresh the listeners of this topic, it open a new blank page, > as we can expect from a simple theme submit behavior. > The form does not work, because this behavior should be provided by the > ajax theme. But when I set the submit theme as ajax it goes to the next > line. How put this form in a single line and keep using the submit theme > as ajax? > > Are you sure it is not a bug? If not, how do that? > And please, I agree that this is not the place to post user doubts, and I > could do that using a submit outside the form, > just setting the formId. But I still think it is a workaround, and should > be an easier way to do that. > What do you think? > > Regards, > > Felipe > > > > Felipe Rodrigues 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#a9744798 Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]