Soak the herring in water to cover overnight. Change the water once. Drain.
Dip the herring first in the milk and then in the flour (reserving the milk). Melt 2 tablespoons butter in a bakingdish and arrange the herring in it. Cover with the sliced onions. Dot with remaining butter and add reserved milk.