Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Facelets question on input validation  RSS feed

 
Sai Maddi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a scenario where I should not allow the user to enter any character other than alpha numeric on an input text box. I verfied the java script and it is working fine. I would appreciate if you can tell what I am wrong here.

input type="text" jsfc="h:inputText" id="xCode" value="#{xBean.xCode}" disabled="${displayOnly}" readonly="${displayOnly}" tabindex="#{tabindexcc+6}"

PS: I removed the key press event that runs java script in order to post this message. I couldn't post the message with that event code. Not sure why though.

Thanks in advance.
 
John Blanco
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong?
 
Sai Maddi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The input text is still taking special characters.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!