Hi all:

I'm writing 'cause I need a suggestion about the best way to face an issue in a 
project.

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) .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.

Any help is welcome,

Thanks in advance...
__________________________________________

XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion

Reply via email to