Recently I took a photograph at an aperture of f/1.8, but there was very little bokeh. The shot was of a wave with a few boats in the background. Everything seems to be clear even at f/1.8.
Can someone explain this ?
Depth of field depends not only on aperture but also on distance to the subject. Depth of field increases as the subject gets farther away. If the wave and boats were all relatively far from the camera, but not terribly far from each other, then it's not surprising that they were all reasonably sharp.
You can use DOFMaster to run the numbers yourself. Some examples using a 50mm lens at f/1.8 on a full frame camera:
at 15m (50 feet) to the subject, you get a total of 11m (36 feet) of depth of field
at 30.5m (100 feet) to the subject, you get 68.5m (225 feet) of depth of field
To achieve that effect of a blur gackground or enhance the bokeh effect we needs to take in consideration three parameters: aperture size, distance from the lens, and the focal length of the lens. From your question it seems that you was pretty far from the objects; the farther away an object is and focused on, the deeper the DOF is.
Here is a great post about the topic: Focusing Basics: Understanding Depth of Field in Photography. It is visually explained. Hope you like it.
My experience has been, that in addition to not having the proper configuration of the lens, the distance was not the necessary to create the effect as Caleb mentioned in his answer.