----- Original Message ----- From: "Yariel Ramos Moreno" <[EMAIL PROTECTED]> To: "Struts" <user@struts.apache.org> Sent: Thursday, September 28, 2006 6:17 AM
> I'm working in a big management system. In this struts application almost all pages have > a lot of fields with a performance like a desktop application, specially with a lot of > validations. The main problem is when, in many cases, I need to hide or disable some > visual components according to the user actions over the page or the values selected in > those components (check or uncheck of radios and checkboxes, value selected in a > combo, etc) . Consider using AJAX in your application. AJAX is a good candidate when your app needs to behave like desktop applications. >To make this, I'm using javascript, but there are a lot of field values > and/or names extracted from the data base (codifiers, entities properties, etc), wired > to the javascript functions 'cause the page's performance depends on it (eg. if I select > the value "Admin" in a combo, I need to hide Table1 and show Table2, but if I pick > value "Operator" I need to hide both tables). I know this is a bad programming practice > (using business logic in the view) and it doesn't allows to reuse the code, but I don't > have any other idea to do this. If AJAX is used wisely, business logic need not come into the view, also you can reuse the code. However AJAX primarily is JavaScript based. Check this out: http://javawebparts.sourceforge.net/ (see AjaxParts) Some articles on AJAX http://www.omnytex.com/articles/ Of course there are many other custom AJAX implementations as well. If you do not want use JavaScript and still use AJAX, http://ajaxanywhere.sourceforge.net There must be some good design patterns/ or guidelines when using AJAX. Has anyone here got some pointers to them?? > Any help is welcome, Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin Kerala - 682015 | India www.kottsoftware.com ---------------------------------------------------------------------------- ---- This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorized and unlawful. If you are not the intended recipient of the mail, kindly notify the author of the mail and delete the same. ---------------------------------------------------------------------- ---------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]