A dispenser for dispensing a detergent solution from a solid detergent into a dishwasher, the dispenser comprising a liquid inlet, a detergent chamber, and a liquid outlet in fluid communication with each other, wherein the dispenser is configured to collect liquid sprayed within the dishwasher using the inlet, to pass the collected liquid from the liquid inlet to the detergent chamber to form the detergent solution by dissolving a portion of the solid detergent in the detergent chamber, to pass the detergent solution from the detergent chamber to the liquid outlet, and to allow continuous release of the formed detergent solution, and the liquid inlet is configured to be exchangeable for varying a clear opening space of the liquid inlet.