Or, alternately, could you build your map from the ordered List? I really think that having a single structure be ordered and keyed and expecting IoC to make sense of that is going to open up a can of ambiguities .... and that's in the substrate level of the IoC where its hard to bring to bear some of the higher powered Tapestry features to handle it. (*)
(*) I.e., on the same footing as why its so hard to contribute new coercers to TypeCoercer without triggering recursive service construction errors. On Wed, May 25, 2011 at 10:27 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > Could the contributed objects know their names and have space for > ordering values (the "before:" and "after:" strings)? In other words, > could you simple order the map value() inside your service > implementation? > > On Wed, May 25, 2011 at 9:42 AM, Kalle Korhonen > <kalle.o.korho...@gmail.com> wrote: >> I have a use case where I'd like to contribute key-value pairs but >> preserve their ordering, i.e. I'd like to contribute elements to a >> LinkedHashMap. Now, MappedConfiguration doesn't work since it doesn't >> preserve the order (or in Tapestry terms, cannot be ordered after >> elements are contributed). OrderedConfiguration would work (at least >> for my use case) if I had an access to the ids of the contributed >> elements. Would it be a complete heresy, if instead of a List, you >> could optionally specify a LinkedHashMap (or a custom Tapestry type >> for an immutable linked map)? Any better ideas for it? >> >> Kalle >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org