Hope you all will be fine. The scenerio is I have a form on which there is name inputText field. I want that if user type ' in the name then it is replaced by //. I have made the replace function. But I don't know that how can I do it using ajax.
Like if I have input field like this
<h:inputText id="name" value="#{user.name}">
<f:ajax event="blur" render="nameError name"/>
</h:inputText>
<h:message for="name" id="nameError" style="color: red" />
Now I want that if user types 'Basit'Mahmood'Ahmed' in the name field then on focus looses the value becomes //Basit//Mahmood//Ahmed//. So when user presses on submit button then the //Basit//Mahmood//Ahmed// should be posted to the server, not the 'Basit'Mahmood'Ahmed'.
How can I do it in JSF 2.0?