Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

div show/hide with struts2

 
Mike Nason
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using struts2 and need to show/hide some textboxes in my <s:form>.
I did this by using JS code:

The problem that these method doesn't work with default xhtml theme, and I need to set <s:form theme="simple"> and use custom layout to make that works.
Using simple theme broke my UI on that page, because I am using default struts2 layout on others.
Does anybody have any ideas of how to show/hide textboxes by using default html theme with struts2 layout???
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You either need to hide/show individual form elements, or modify a theme to give you more control over what appears.

I don't recall if someone has done the work to give for rows IDs yet--it's been on my list of things to do and now that I have some time hopefully I'll finally get around to it if nobody's done it yet (especially since I have the code sitting on my local machine already :/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic