Bolot Kerimbaev wrote:
> 
> Okay, for now I'm making an "intermediate" solution for multiple values for
> GET/POST fields: concatenating them with $, (comma), the way it was done in
> ColdFusion. I don't remember if it's the way some web browsers work.
> 
> Bolot

This might be okay for a temporary solution but in general I dislike
it.  At least for me this doesn't work as the fields may already contain
a comma.  I'd therefore vote for "OrderedCollection always" even if that
mean some incompatibilities for Swikis or other programs based on
Comanche.

As I also don't see why you want to distinguish getFields an postFields,
I'd like suggest this:

getFields
 ^ self formFields

postFields
  ^ self formFields

formFields
  ^ self newFormFields collect: [:each | each key -> each value first]

newFormFields
  "Answer a dictionary of key/orderedcollection of value pairs."

  ...

bye
-- 
Stefan Matthias Aust             Projektleiter/Softwareentwicklung
Baltic Online Computer GmbH,    Alter Markt 1-2,        24103 Kiel
Fon: +49 (0) 431-54003-0 Fax: -99      http://www.baltic-online.de

Reply via email to