You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/11/12 12:20:43 UTC
DO NOT REPLY [Bug 32176] -
warn if Boolean or String[] are not reset() i.e. checkbox and multibox tag
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32176>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32176
warn if Boolean or String[] are not reset() i.e. checkbox and multibox tag
hauser@acm.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|remove "scope" from element |warn if Boolean or String[]
|"action" in struts- |are not reset() i.e.
|config_1_2.dtd |checkbox and multibox tag
------- Additional Comments From hauser@acm.org 2004-11-12 11:20 -------
summary was "remove "scope" from element "action" in struts-config_1_2.dtd"
James, apologies for having overlooked the warning you reference.
(The corresponding warning for multibox is
http://struts.apache.org/userGuide/struts-html.html#multibox)
General thoughts:
- good documentation is certainly good and should be followed meticulously by
developers.
- but it is even better if there is a system-provided protection or at least
warning against similar oversight/misbehaviour
- I assume http://strutstestcase.sourceforge.net/ doesn't help solving that
problem. Nor do I think the IDE plugins help (they might help on errors for
struts-config.xml, but I guess not here).
===> best would be an ant-task that parses the forms and complains if the reset
doesn't work on the (check|multi)box-like private fields of the Form?
So, no run-time impact, just the build of a struts-based application takes a few
seconds longer.
As per http://mail-archive.objectweb.org/asm/2003-09/msg00030.html, I do already
use such an ant task based on ASM (http://asm.objectweb.org/) to keep the
field/property names in my jsp files in line with the ones of my ActionForms and
other beans/business objects that might be referenced in the jsp's.
Does anybody use a tool to do such checks?
similar warning RFE on field/property initialization is Bug 24119
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org