Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Java EE (Java Enterprise Edition)
This discussion is archived
on Nov 5, 2012 6:56 PM by gimbal2
how to refresh captcha text with JS or render?
Nov 5, 2012 5:55 PM
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
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: how to refresh captcha text with JS or render?
Nov 5, 2012 6: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.