All, Nathan and I have just added "addAllParameters" capability to the LinkTool (including explicit ignoring of current-request parameters) and I started thinking about the Struts 2 behavior which is to automatically ignore any parameter from the current request that has already been set on the LinkTool.
Is anyone interested in this capability? I kind of like it. I find from looking at my own code that everywhere I used it, I always ignored the same parameters that I was already adding manually using addQueryData() calls. It makes sense that in many (but perhaps not all) cases, users will want this behavior. I propose that we add the S2 behavior as the default option, but allow the tool to be configured in the toolbox to support the explicit-ignore capability as well. The only necessary changes would be: - Support a new configuration parameter - If "auto-ignore" is set, all addQueryData (and friends) calls will add a corresponding "ignore" parameter to the list - Ignore list should probably become a Set Any thoughts? Thanks, -chris
signature.asc
Description: OpenPGP digital signature
