Dear Timo ,
That post belongs to one of my colleagues actually !!
I asked her about it,
She claims that when the inputText is not Bound to any attributes ,it works just fine but when the code is applied on a bounded inputText the (Masked Value) cannot be set to the component.
So my opinion is that some EO Validation might prevent the masked value to be set.
But I need to check it for myself...