Male dogs of some breeds tend to do this out of spite. For instance, a male Poodle may pee in your bed, if you were angry with him about something.
Prostate removal should take place at a very young age and I don't think that this process will influence the personality or personality of a dog, like a Poodle.
If the dog pees on the wall, you must quickly scrub the wall with chlorox ( concentrate) and anything else to eliminate the odor. When you see the dog peeing on the wall, pick the dog up and either take him outside to the lawn or put him on a paper in a caged area. Let him sit there for awhile.
Then take him out, cuddle him, give him a treat. Wait for the next pee cycle and repeat.
With Poodles remember, they're smart and very lovable. Being mean to your dog does nothing but make a dog mean. Love is the better way to go.