Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Java EE (Java Enterprise Edition)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Nov 5, 2012 12:56 PM by
how to refresh captcha text with JS or render?
Nov 5, 2012 11:55 AM
I am using simpleCaptcha library to display captcha using servlet. requirement is to refresh the captcha if refresh button is pressed.
<h:graphicImage value="/img/refresh-s.png" onclick="changeCaptcha()" />
<img id="myCaptcha" src="/RoyalCourtPortal-portlet/simpleImg" width="120" height="30" />
$('myCaptcha').attr('src', '/RoyalCourtPortal-portlet/simpleImg' );
Please while answering provide code example as I am very new with javascirpt.
Thanks in advance
This content has been marked as final.
Show 1 reply
Re: how to refresh captcha text with JS or render?
Nov 5, 2012 12:56 PM
in response to
You should consider using Primefaces which has a captcha component built in. Standard JSF without an extension framework is very limited in capabilities and you'll be tempted to reinvent the wheel where that is really not necessary.