struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Witbeck, Shane" <>
Subject extending Struts taglibs to indicate form field states
Date Thu, 31 Jul 2003 16:51:49 GMT
Im considering extending the Struts taglibs (specfically the form object
tags). What Im thinking about doing is adding a "formStateObject" to my
ActionForm beans and having it dictate the "state" of specifc elements of a
form. For example, if a particular field should be disabled, then I would
add disable="true" to the parsed form tag. Other properties of my
formStateObject include changing the css class of the object (to indicate
which fields are required) and whether or not to display a form object. My
intention is to clean up the JSP's that currently have logic tags wrapping
code according to the values set in formStateObject.

Has anyone else extended the taglibs in such a way? 
Opinions on this type of approach?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message