This content has been marked as final.
Show 1 reply
-
1. Re: How to find out if text is pasted into an input field
mettehummel Jun 3, 2010 6:49 AM (in response to mettehummel)Figured out a way to solve the problem. Added the following code.
function settOnpaste(element) {
if (element.nodeType == 1){
element['onpaste'] = handlePasteEvents;
}
}
function handlePasteEvents(e, elName) {
radEndret(e);
}
<h:inputText id="inputBeskrivelse" value="#{linje.beskrivelse}"
onfocus="settOnpaste(this)">
</h:inputText>