|
[
Permlink
| « Hide
]
John R. Fallows added a comment - 22/Aug/06 06:06 AM
Please review the attached patch which implements a resolution to this issue.
This patch adds support for filter attribute in Struts EL html:option tag.
There's a design choice to be made here, consistency with 1.3.5 API for filter=true default vs. consistency with 1.3.5 behavior for <html:option value="..." /> when value contains special chars like ampersand.
Since i don't know the policy, i chose not to break compatibility, so filtered=false is the default. But, I'd be happy to re-work the patch to make filtered=true the default, if the Struts community decides this is the way to go. Perhaps the change in behavior is not such a big deal, since it will only affect option values that contain special characters. Those option values cannot be properly sent back to the server anyway, since they will be in their unescaped form during postback. As was indicated in the dev list discussion, this (newly added) filter attribute for OptionTag has the opposite default behaviour when compared to the same thing in OptionsTag. Not sure whether this needs a point relase or higher before the behaviour can be matched up between the two.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||