[ https://issues.apache.org/jira/browse/VELTOOLS-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Schultz updated VELTOOLS-89: ---------------------------------------- Attachment: VELTOOLS-89.diff This patch adds to LinkTool: - Automatic additions of parameter names to ignore list when addQueryData is called (really copyWith) - Config parameter to enable auto-ignore - getKey method to QueryPair class - More unit tests This patch changes: - Default is now auto-ignore (was not to auto-ignore with last patch) - Ignore list is now a Set to prevent duplicates and speed up searches > LinkTool's addQueryData method should automatically add an 'ignore' so > addAllParameters will ignore manually-added query data > ----------------------------------------------------------------------------------------------------------------------------- > > Key: VELTOOLS-89 > URL: https://issues.apache.org/jira/browse/VELTOOLS-89 > Project: Velocity Tools > Issue Type: Improvement > Components: VelocityView > Reporter: Christopher Schultz > Priority: Trivial > Attachments: VELTOOLS-89.diff > > > Currently, the LinkTool requires that, for each parameter you intend to > override from the current request (when using addAllParameters), you do > something like this: > $link.addIgnore("foo").addQueryData("foo", "bar").addAllParameters() > It is almost always the case that the "foo" parameter should be ignored from > the current request because it's value is being explicitly set by the > addQueryData call. > This should be the default behavior, with the current behavior being > configurable via the toolbox setup. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]