How to refresh captcha without full page refresh

Hi,
I am using simple captcha implementation using the following link.
[http://www.oracle.com/technetwork/developer-tools/jdev/captcha-099103.html|http://www.oracle.com/technetwork/developer-tools/jdev/captcha-099103.html]
Captcha image refreshes page reload but if i set partialSubmit=true It does not changes the image of the servlet . What is the way to refresh image .
           <af:image  id="iCaptcha"     
                                        source="/captchaservlet"
                                        inlineStyle="width:122px; height:49.0px;"
                                        partialTriggers="cil2"
                                        binding="#{AfProMSDSSearchAction.captchaImage}"/>When I reset the image source by reseting it by javascript it does not refreshes .
  <af:resource type="javascript">
          function loadCaptchaImage() {          
            var captchaURL = "/captchaservlet?rand=" + Math.random();           
            parent.document.getElementById("pt1:s12:iCaptcha").src=captchaURL;
        </af:resource>

Hi frank,
I got the solution I can change the Captcha image without full page refresh by just adding temparary request parameter to that image so that url changes and it calls servlet again.
Below code will add random number as a request parameter to the servlet url so that url changes everytime.
                RichImage image = (RichImage)JSFUtils.findComponentInRoot("iCaptcha");
                String randomString= String.valueOf(Math.random());
                image.setSource("/captchaservlet?rand="+randomString);          
                RichPanelGroupLayout capImgPGL = (RichPanelGroupLayout)JSFUtils.findComponentInRoot("capImgPGL");
                AdfFacesContext.getCurrentInstance().addPartialTarget(image);
                AdfFacesContext.getCurrentInstance().addPartialTarget(capImgPGL);

Similar Messages

  • How can I create a full page on Adobe Muse (without side space)?

    How can I create a full page with Adobe Muse (without side space)?

    Muse uses Fixed width Layouts so that is not 100% possible. You can extend images and box elements to full width but not actual content.

  • When I print a PDF it always prints as a booklet, how can I print 1 full page?

    When I print a PDF it always prints as a booklet, how do I print a full page?

    In the Print dialog box you should be able to indicate which page you want to print and that page will print.  For instance, if you are viewing page 4, in the Print dialog, select "current page" and page 4 prints. This won't work if your page is actually a 2-page spread.  What size is the booklet?

  • How can i avoid printing full pages?

    How can I avoid printing full pages when printing a photo from my iphone to my hp envy?

    Hi,
    While pritning with Apple Airprint, the image will print as is..
    You may find some more customization steps by using the HP Print Home & Biz app which allow some more customization of the printout:
    Follow the steps below to find how to get the app:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02775166&cc=us&dlc=en&lc=en&product=3692888&tmp...
    Below you may find some more customization options of the app:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01930282&cc=us&dlc=en&lc=en&product=3692888&tmp...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How to see themes on full page of firefox like chrome and not only on the top bar

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/876505]]</blockquote>
    how to see themes on full page of firefox like chrome and not only on the top bar

    Personas or Lightweight Themes are the ones that just put a background on the toolbars.
    You can look for the real (original style) themes here:
    : https://addons.mozilla.org/en-US/firefox/themes/
    :and you should be able to easily identify them by their pictures. I would suggest that you pick a theme that is identified under the version information to also run in Firefox 8, so you will be able to continue when you upgrade to 6.0.2 and above.
    I am on 6.0.2 and I would be shown 450 themes.
    Another method is to install a style using the "Stylish" extension, specifically a global style is what you are interested in. There are 3,697 global styles which is one [http://userstyles.org/categories category] of styles. Styles are not programs but you can put up a background picture of your choosing or color areas. But instead of hundreds to choose from you have thousands and they are mostly variations of another style. One advantage of a style is that you can modify a style to suit yourself with little or no programming experience.
    : http://userstyles.org/styles/browse/global

  • How can I scroll one full page at a time using the mouse wheel?

    I've had this problem for 3 years now. When I nudge my scroll wheel (IntelliMouse Optical) one notch forward or back, Safari moves 1/4 of a page up or down. How can I get one nudge of the scroll wheel to move one full page up or down? Firefox has an add-on, SmoothWheel, that can be set to a full page. Are there any options for doing this in Safari, without having to go to the keyboard? I tried Smart Wheel, no setting for that.
    Any ideas? thanks
    p.s. Please don't tell me to get another mouse, I've tried dozens of them and the old IntelliMouse Optical is the best one for me. (I'm also stuck on an ancient Apple M2980 keyboard. I love those old keyboards.)
    Mac Pro 2X-Quad-Core Intel Xeon 2.8 GHz  MA970LL/A
      OS X 10.8.3
      Memory: 10 GB
      ATI Radeon HD 2600 XT
    Safari 6.03

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

  • How can I scroll one full page with IntelliMouse Optical?

    When I nudge my scroll wheel one notch forward or back, Safari moves 1/2 of a page up or down. How can I get one nudge of the scroll wheel to move one full page? Firefox has an add-on that can be set to a full page. What are the options for Safari?
    The latest Microsoft Intellipoint software (for mac) that comes with the mouse seems to have messed up my scrolling in Safari and Navigator.
    I've tried USB Overdrive, playing with settings in system preferences, etc, nothing helps. In Intellipoint I created a Safari preference and set it to scroll one full page, but it doesn't.
    Any ideas? thanks
    p.s. Please don't tell me to get another mouse, I've tried dozens of them and IntelliMouse Optical is the best one for me. (I'm also stuck on an ancient Apple M2980 keyboard. I love them.)
    Safari 4.0.4
    IntelliMouse Optical
    Mac Pro 2X-Quad-Core Intel Xeon 2.8 GHz
    OS X 10.6.3
    Memory: 6 GB
    ATI Radeon HD 2600 XT

    HI,
    Open System Preferences/Appearance.
    You may be able to tweak the scroll functions that way.
    Carolyn

  • How can I print a full page of a single mailing label from Contacts

    I am trying to use Contacts to print a full page of avery labels for a single contact.  The only thing I can get it to do is print one label in the upper left corner of a page of Avery Labels.  I can print a full page of DIFFERENT contacts, but not a full page of a Single contact.  Any ideas?

    Are you using DesignPro from Avery? You should.
    It gives you the option to print individual labels or all the same:

  • I set YAHOO as my home page, but it is only in the center with a white screen on both sides, how do I set to full page view without loosing my toolbars?

    I set yahoo as my home page, but it only appears in the center with white screen on each side. I have tried to change to full view, but then loose my toolbar. Is there a way to change YAHOO to full screen and keep my toolbars?

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can ignore the RFC 5746, see CVE-2009-3555 error message in the Tools > Error Console<br />
    That message is for site Administrators to alert them to update their server software.

  • SQL Query (report region) without full page reset

    Hello,
    I have a page with several items, some of them with default values, and a report region, performing SQL query based on one of the items – text field (always submits page when Enter pressed). When the page submits, the HTML DB engine performs and display the query, but at the same time, reset the other page items to their default values.
    Is it possible to run the query without the HTML DB reset the item values to their default state?
    Thanks,
    Arie.

    Hi Peter,
    Well, this is not exactly the case. I have an Item – File Browse – which defined as "Only when current value in session state is null", and a HTML text region, which contain Iframe, with default src tag (which I'm changing, using JavaScript, prior to the running of the SQL query). After running the query – in a report region – both the item and the Iframe reset to their original state.
    Any Ideas on how to prevent that?
    Thanks,
    Arie.

  • How can restore IMAC without deleting Pages and Keynote, which were loaded by Apple at order?

    I bought an IMAC OS X Mountain Lion in Dec 2012.  I am trying to prepare it for sale, and would like to clear off my personal information.  I see different questions about restoring to factory settings, but I'm unclear if this includes leaving Pages and Keynote on the IMAC.  These applications were installed by Apple when I order the IMAC, and I don't want them cleared off.  How can I clear my personal information without deleting this programs?
    Thanks so much!

    If you had the applications install, the software license belongs to you and isn't transferable. Information.
    Selling old Mac
    Selling old Mac (2)
    Selling old Mac (3)

  • How can i print a full page of mailing labels using the same contact in numerous times/my mailing address

    how can i print out a full sheet of labels using the same contact info numerous times, mailing labels

    Are you using DesignPro from Avery? You should.
    It gives you the option to print individual labels or all the same:

  • How can i take the full page off and go back to the regular page

    When I go to my to my web pages, I have a full screen. That means I can't see my toolbar.. I would like to see my toolbar at the top at all time.. Can you please help me... Also, I am having trouble with popups all the time.. I downloaded the Ad-blocker from your add ons but still get them... Do I need to restart computer to make it work.. Thank you for you help...

    Hello,
    You can press F11 to exit screen. I think there is an option in the View menu as well, and under the three bar menu:
    * [[Image: New Fx Menu]] > Fullscreen Mode
    Which adblocking extension did you install? Adblock Plus?

  • How to read file WITHOUT full path using TEXT_IO?

    We have a scenario like this:
    -- We have a Telco application.
    -- That has 3 types of installations. English and Spanish
    -- We have 2 App Servers (Eng & Spa) for the 2 installation types.
    -- But there is only ONE DB. I.e. users logging into Eng or Spa AS versions login to the same DB.
    -- We have to maintain 2 login forms because of Eng and Spa, because the menu labels have to come in 2 langs.
    -- I am trying to have one tree menu for this.
    -- To do this I did this.
    -- Put a text file in the Forms directory of the AS.
    -- The file has just one line. ENGLISH or SPANISH.
    -- I read this file and find out the language and then show labels according the language.
    Problem is that when I used TEXT_IO and gave file name like this filename:=GET_FILE_NAME('Avabill_AS_Language.txt', File_Filter=>'Text Files (*.txt)|*.txt|');
    I get a error saying file not found.
    I found out that with TEXT_IO you need FULL PATH of the file. Thing is path of the installation depends of installation to installation. I cannot create a parameter in the DB since the DB is COMMON. I HAVE TO use a text file in the AS directory.
    Is there any other way like reading the Default.env file or FormsWeb.cfg? Is there a parameter in any of these files which specifies the forms directory absolute path. I studied both file but could not find an entry.
    Any workaround would be greatly appreciated.

    Thanks BaiG for the quick response.
    U r right about that GET_FILE_NAME.
    I removed that and put the file name only and tried. Still get the same error.
    FUNCTION Avabill_Deployment_Type RETURN VARCHAR2 IS
    v_language VARCHAR2(100);
    in_file Text_IO.File_Type;
    BEGIN
    in_file := Text_IO.Fopen( *'Avabill_AS_Language.txt'* , 'r');
    Text_IO.Get_Line(in_file, v_language );
    Text_IO.Fclose(in_file);
    RETURN v_language;
    EXCEPTION
    WHEN OTHERS THEN
    Text_IO.Fclose(in_file);
    ALERT_MESSAGE(1,'FILE NOT FOUND: ' || SQLERRM);
    RETURN 'Normal';
    END;
    I get this error:
    *302000: non-ORACLE exception*
    As for you query:
    -- We have 2 app servers. One English and One Spanish.
    -- So we have 2 sets of forms. One English with English labels in the forms and the other with Spanish Labels.
    -- So we HAVE to have 2 menu forms as well, don't we? When the menu form is run how does it know whether the app server is English or Spanish.
    -- There is no way to find out. We cannot use a DB variable since BOTH use the same DB (at the same time). Eng users will enter in English while Spanish users will enter in Spanish.
    I don't see how we can have one menu form for this purpose. Can u elaborate your method further please?

  • How can I print a full page 8.5x11 photo using mg2520? My operating system in windows 8

    I am currently running windows 8 and using a canon pixma mg 2520 and cannot print full size 8.5x11 prints.  I can print 4x6 but would like to print full size pictures...please help!!!!!!!!!!1

    Hi kvsalazar24,
    There is a program that comes with the printer named Easy-PhotoPrint EX that can assist you with printing photos.  If you do not have the program installed, it can be downloaded from the Canon USA website.  Please click here to go to the Drivers and Software page for the PIXMA MG2520.  Once on the initial download page for your model, please do the following:
    1. Verify that the operating system detected in the "OPERATING SYSTEM" drop-down menu is correct, and if it is not, please click the drop-down menu to select your operating system.
    2. Next, please click on the red arrow next to the "SOFTWARE" section and click the Easy-PhotoPrint EX file.  When you do, a red DOWNLOAD button will appear. Please click on the checkbox below the DOWNLOAD button, then click the red DOWNLOAD button to begin the download. The time for the download process may vary depending on the speed of your Internet connection and the size of the file being downloaded.
    Once you have downloaded the file, please double-click on it and follow the prompts to install the program on your computer.  
    Once the program is installed, please follow these steps to print a photo:
    1. Open Easy-PhotoPrint EX.
    2. Once inside of the application, you will see a folder structure on the left-hand side where you can select a photo or image. Please navigate to the location of the photo/image you would like to print. When you do, all available images in that location should appear in the right pane of the window. Please note: If a screen appears with options to Photo-Print, Create an Album, Sticker Print, etc., please select the PHOTO-PRINT option to view the area with the folder structure.
    3. Underneath each of the photos appearing in the right pane of the window, you will see a n up and down arrow, as well as a "0". Please click the UP arrow once underneath the image you would like to select, then click the PAPER SELECTION tab at the top of the window.
    4. On the PAPER SELECTION TAB, please select the PRINTER, PAPER SOURCE, PAPER SIZE, and MEDIA TYPE, then click the LAYOUT/PRINT tab at the top of the window.
    5. Please select the desired layout from the left-hand pane of the window. When you do, a preview of what the image should look like when printed will appear in the right-hand pane of the window.
    6. Once you have selected a layout, please click the PRINT button. The photo/image should print.
    If you still experience difficulty, please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • Multiple Apache Servers tied to CF8/JRUN?

    I've got CF6 experience over J2EE, but now I'm trying to deploy CF8 over embedded JRUN 4.0 on an OS X Tiger Server (10.4.10) and running into some headaches. From what I can see in the JRUN 4 documentation I need to enable Proxy Service so that I can

  • Fnd.mk file usage ....

    Hi, What is the use of fnd.mk file. Thanks & Regards, Srikanth

  • Is there a size limit on the iPod for the song database file ?

    I have been running into the same issue for the last 2 weeks: Once I exceed 110 GB on my iPod Classic 160 GB, iTunes is no longer able to update the database file on the iPod. When clicking (on the iPod) on Settings/About, the iPod displays the wrong

  • Audio book download from iTunes

    I tried to download an audio book to my 2 week old, IPOD Classic....and it won't download and I get a message "The book was not copied to IPOD because it cannot be played on this IPOD.....I don't understand, are there different audiobooks for differe

  • Why is the 5th generation Black IPod touch being discontinued?

    The guy at the store told us Apple wouldn't be making them any longer, does anyone know why?