You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Eelco Hillenius (JIRA)" <ji...@apache.org> on 2007/10/16 08:43:50 UTC
[jira] Updated: (WICKET-753) mounts stored in non-ordered map
[ https://issues.apache.org/jira/browse/WICKET-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eelco Hillenius updated WICKET-753:
-----------------------------------
Fix Version/s: 1.3.0-final
Assignee: Jonathan Locke
> mounts stored in non-ordered map
> --------------------------------
>
> Key: WICKET-753
> URL: https://issues.apache.org/jira/browse/WICKET-753
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Jonathan Locke
> Assignee: Jonathan Locke
> Priority: Minor
> Fix For: 1.3.0-final
>
>
> Because WebRequestCodingStrategy now uses a map to store mounted encoders (it was meant to be a list for exactly the reason this bug is being submitted), it is no longer possible to override encoders based on subclasses. For example, if you mount Foo on "/foo" and Foo has subclasses Bar and Baz, those subclasses are also mounted on "/foo", which is good. But then mounting Bar on "/bar" does not (or at least MAY not) override this functionality even if you install it before the "/foo" mount (which i would expect to work). To resolve this issue, encoders ought to be searched for a match in the order that they were added and not in some random order defined by the map they are being stored in.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.