Zmoz,
Here's the simple circuit I described previously -
Note that the LM317t in the sketch is shown as viewed from the front, with the metal tab on the rear.
Just make certain of the polarity of the power wires from the wallwart to the circuit, and to the plug/jack battery connections, or you'll damage your batteries at the very least.
I would advise you to locate the circuit closer to the wallwart (or other DC supply) as opposed to near the end of the cord/plug.
You can connect the wires/components directly to each other, but you must make sure that there can be no accidental shorts.
You can even use that plastic tool handle dip stuff to completely coat and insulate the components/wires permanently. That's probably the simplest way I can think of to make the circuit reliable without using a circuit board or mounting everything in some sort of enclosure. Don't use silicone RTV because it can cause corrosion.
The metal tab of the LM317t must not be allowed to touch any other connections or it'll cause problems. You could, however, attach a small piece of copper or aluminum to it for a heat sink before coating everything. I don't expect it to get hot, but it might get somewhat warm.
Hope this helps - John
[EDIT] BTW, this will charge 4 "dead" 1800mAh NiMH AA's in series in about 10 hours - less if their only partially drained. I would not recommend leaving them on the charger continuously, as 184 mA is not considered a "trickle" charge rate for AA NiMH.