Date: 2004-09-24T10:49:46 Editor: SteveRaeburn <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: StrutsCatalogFiveMultipleButtonSolutions URL: http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions
no comment Change Log: ------------------------------------------------------------------------------ @@ -5,11 +5,11 @@ This presentation is somewhat detailed, so we begin with a Table of Contents for your ease in navigating the presentation. Enjoy! There is a comment section at the very end. -The desire of people to add to this wiki is extremely gratifying. In order to better accommodate this need and to maintain some "order" and "look" to this presentation, I have added a section at the end for links to other solutions. Please do feel free to add your own ideas there. Please follow the "look and feel" and format of the wiki. - === Discussion === -Presently there are two somewhat popular and different solutions to buttons in Struts and generally. They are the ImageButtonBean solution and the DispatchAction solutions. Both suffer from over-engineering in serious ways. +Presently there are two somewhat popular and different solutions to buttons in Struts and generally. They are the ImageButtonBean solution and the DispatchAction solutions. Both suffer from over-engineering in serious ways. + +''Note: Michael's opinion's on this page are his own, and not official Struts project guidelines. Of course, this also applies to any other personal opinions expressed on the Wiki by anyone, including myself :-) (Steve Raeburn)'' The initial problem was to determine which of multiple tags in a from was pressed, e.g. @@ -690,7 +690,7 @@ From Ted Husted's Tips: [http://www.husted.com/struts/tips/001.html Use an ImageButtonBean to represent an image button] -'''COMMENT:'''This is an old heavy solution which was proposed here originally as an option to Ted's solution using JavaScript. The guts of this solution came from '''Antonio Lagnada''' +'''COMMENT:'''This is an old heavy solution (in Michael's opinion) which was proposed here originally as an option to Ted's solution using JavaScript. The guts of this solution came from '''Antonio Lagnada''' http://j2ee-01.lagnada.com/struts/html-buttons.htm @@ -723,7 +723,7 @@ Open Source Struts Extension [http://kenfitzpatrick.dnsalias.org:8080/imageButtonBeanManager Image Button Bean Manager] -'''COMMENT:''' This solution is, I would suggest, seriously over-engineered. +'''COMMENT:''' This solution is, I would suggest, seriously over-engineered. However, there is one thing about this solution I really, really, really like. That thing is that it creates an extension to struts rather than trying to be part of struts itself. This is the way to go, in my opinion. I admire this restraint and good sense. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]