Step 1Heat the oven to 350 degrees.
Step 2Heat the ham in a large, heavy oven-proof soup pot over medium heat. Add the carrots, cover and cook 5 minutes. Add the onion, cover and cook until soft, stirring several times so they don't stick to the bottom, about 10 more minutes. Add the beans, water, 1 teaspoon salt and bay leaves, cover and bake until the beans are quite tender, about 2 hours.
Step 3Chop the dandelion greens, remove the soup pot from the oven and stir in the greens. Replace the cover and set aside, off heat, until the greens have softened, about 10 minutes. Remove the bay leaves. Season to taste with pepper and salt, though the latter probably won't be necessary because of the ham.