Struts2: I want to use <s:textfield> inside <s:checkbox>, is it possible?
Paul Michael Serrano
Ranch Hand
Joined: Nov 22, 2004
Posts: 59
posted
0
I do have a snippet of code for my jsp....
I tried to change the line enclosed with <!-- need help for this line-->
<s:checkbox name="dueDate" >Test due <s:textfield name="repTimeDueDays" size="3"/> days prior to due date.</s:checkbox>
but the page is distorted, it seems that <s:checkbox> creates a new <tr></tr> within my jsp page.
The default "xhtml" theme uses table rows. Use the simple theme if you want to have complete control over your layout--but be aware you'll lose some functionality like showing error messages (which you can do manually).
That said, there's no reason to nest anything here.