<!-- --><style type="text/css">@import url(https://www.blogger.com/static/v1/v-css/navbar/3334278262-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d7256432\x26blogName\x3dThe+Frustrated+Programmer\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLACK\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://frustratedprogrammer.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://frustratedprogrammer.blogspot.com/\x26vt\x3d5012862196962223429', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
| Tuesday, June 15, 2004

Struts is an excellent framework for simple forms with a static number of fields on them, but when you need to present a fairly dynamic form, struts starts to stumble pretty quickly.

Today the customer came to me with a change request to add text inputs next to what had previously just been a dynamic list of 'options' from the database:

(*new column*)
[x] Option 1 ______________
[ ] Option 2 ______________
[ ] Option N ______________

Before the text input change request came in, struts multibox handled the form perfectly. But now, there now a good choice in the struts tool box to solve this. Here is a decent reference to the a similar problem:

http://www.developer.com/java/other/article.php/2233591

Their solution seems like a little overkill for this problem.