• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2: I want to use <s:textfield> inside <s:checkbox>, is it possible?

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Paul Michael Serrano
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks David it did work...
 
reply
    Bookmark Topic Watch Topic
  • New Topic