ValueChangeListener in Radio Button not acting after first time

Hi,
I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
Radio Buttons
<af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
layout="horizontal"
id="metallurgistRadioBtn"
autoSubmit="true"
valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
<af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
<af:selectItem label="Approved" value="Approved"/>
<af:selectItem label="Rejected" value="Rejected"/>
</af:selectOneRadio>
Function to Open the Window
public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
// Add event code here...
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
HashMap properties = new HashMap();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
Javscript for resetting the Radiob button
function closeWindowOnCancel()
if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
Please suggest what can be the possible cause.
Regards,
Neeraj

Hi,
I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
Radio Buttons
<af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
layout="horizontal"
id="metallurgistRadioBtn"
autoSubmit="true"
valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
<af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
<af:selectItem label="Approved" value="Approved"/>
<af:selectItem label="Rejected" value="Rejected"/>
</af:selectOneRadio>
Function to Open the Window
public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
// Add event code here...
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
HashMap properties = new HashMap();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
Javscript for resetting the Radiob button
function closeWindowOnCancel()
if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
Please suggest what can be the possible cause.
Regards,
Neeraj

Similar Messages

  • Radio buttons not working after resetting

    I have a form with two radio buttons for each question.  Each question is in its own frame "Q1," "Q2," etc.  I also have a btn_Reset created to reset the form, i.e. reset all radio buttons and return to "Q1" frame.  All buttons work as they should, including resetting the radio buttons, however, once I reset the radio buttons and return to "Q1" to start over, the actions associated with each radio button upon clicking on them do not work.  Here's my code:
    //Frame "Begin"
    gotoAndStop("Q1")  //I also define my variables in frame "Begin"
    //Frame "Q1"
    rbtn_YESQ1.onPress = function():Void
         attachMovie("btnReset", "btn_Reset", 1, {_x:0, _y:0});
         btn_Reset.onRelease = function():Void
              xfa.host.resetData("radioGroupQ1"); //this resets my radio buttons in "Q1" frame
              gotoAndPlay("Begin");
    //Once I return to "Begin" frame, my variables are reset to their initial value since that's where I originally defined them, and I go to "Q1" because that's what the code in frame "Begin" says.  Here is where I click on rbtn_YESQ1 again and even though the button does fill in, it does not attach btn_Reset to the stage as defined by rbtn_YESQ1.onRelease function.
    What am I doing wrong?

    Here's the full code for the radio buttons:
    ////Code in frame "Q1"////
    //rbtn_YESQ1 code
    yesListener = new Object();
    yesListener.click = function (evt)
        mc_EmptyReset.attachMovie("btnReset", "btn_Reset", 1);
        mc_EmptyReset.btn_Reset.onRelease = function():Void
            //Places "Reset Confirmation" window on top
            attachMovie("mcResetConfirmation", "mc_ResetConfirmation", getNextHighestDepth(), {_x:24.0, _y:56.0});
            resetConfirmationTween = new Tween(mc_ResetConfirmation, "_alpha", easeNone, 0, 100, .5, true);
            mc_ResetConfirmation.btn_No.onRelease = function():Void
                mc_ResetConfirmation.btn_No.enabled = false;
                mc_ResetConfirmation.btn_Yes.enabled = false;
                resetConfirmationTween.yoyo();
                resetConfirmationTween.onMotionFinished = function():Void
                    removeMovieClip(mc_ResetConfirmation);
            mc_ResetConfirmation.btn_Yes.onRelease = function():Void
                mc_ResetConfirmation.btn_No.enabled = false;
                mc_ResetConfirmation.btn_Yes.enabled = false;
                resetConfirmationTween.yoyo();
                resetConfirmationTween.onMotionFinished = function():Void
                    removeMovieClip(mc_ResetConfirmation);
                    gotoAndPlay("Begin");
    rbtn_YESQ1.addEventListener("click", yesListener);
    //Same code as above btn_NOQ1
    noListener = new Object();
    noListener.click = function (evt)
         //same code as above...
    rbtn_NOQ1.addEventListener("click", noListener);
    ////Code in frame "Begin"////
    gotoAndStop("Q1");

  • Content not appearing after first time

    I could really do with some help on this one.
    I have a screen (State) in my application that displays some
    custom mxml components using a repeater. The first time I come to
    this screen, all the data appears correctly. However if I navigate
    away from this screen to another screen (State), then return to it,
    all that appears is a scroll bar, with no custom components
    appearing.
    I would appreciate if anyone can take a peek at my code below
    to try and identify the problem. Perhaps this is a problem others
    have experienced?
    The relevant code is as follows:
    <mx:State name="ComponentFolderScreen"
    basedOn="QualificationSummaryScreen">
    <mx:RemoveChild
    target="{qualificationSummaryScreenDG}"/>
    <mx:AddChild relativeTo="{vbox1}"
    position="lastChild">
    <mx:Tile autoLayout="true" width="740" height="230"
    id="tile1" borderStyle="none">
    <mx:Repeater id="productsRepeater"
    dataProvider="{this.category1}" >
    <local:ComFolderItem
    mouseOver="CFSMouseOver_Folder(event)"
    click="CFSClick_Folder(event)"
    studentName='{productsRepeater.currentItem.productName + "(" +
    productsRepeater.currentItem.productPrice + ")"}'
    componentStatus='{productsRepeater.currentItem.componentStatus}'
    >
    </local:ComFolderItem>
    </mx:Repeater>
    </mx:Tile>
    </mx:AddChild>
    </mx:State>
    And here is the code that populates the ArrayCollection that
    is the dataprovider
    var ComponentFolderData:ArrayCollection = new
    ArrayCollection();
    ComponentFolderData =
    _dataManager.returnComponentFolderData(componentCode);
    var howManyObjects:uint = ComponentFolderData.length;
    var objectInstance:Object = new Object();
    category1 = new ArrayCollection();
    for (var objectIndex:uint = 0; objectIndex <
    howManyObjects; objectIndex++) {
    objectInstance.productName =
    ComponentFolderData.getItemAt(objectIndex).productName;
    objectInstance.componentStatus =
    ComponentFolderData.getItemAt(objectIndex).componentStatus;
    category1.addItem(objectInstance);

    Hi there
    600 seconds? Seriously? OMG, that's ten minutes!
    Personally, I would never recommend having a slide longer
    than maybe ten
    seconds. I'm not sure how you even manage a timeline that
    long.
    At any rate, whatever floats your boat I suppose. My guess is
    that you have some object (Click Box, Button or Text Entry Box)
    that is sitting on the timeline and pausing things before the
    button you wish to see has a chance to appear.
    Cheers... Rick

  • Airplay sound not mirroring after first time until restart

    Anyone else seeing this issue?
    When we connect either the iMac or the MacBook Pro to our 2nd generation apple tv via airplay the first time, the sound goes to the tv as expected.
    If we try to use airplay a second time, the sound stays on the computer, though the picture shows up on the tv. If we try to change the sound in preferences to the apple tv, the airplay connection is broken. Once we restart the computer, the sound works as expected.
    All of the latest system software updates have been applied.

    That is right - upgrade to Mac as in purchase a Mac which now have Intel processors and the ability to also install and use Windows XP or Vista along with OS X on the same computer.
    I wonder if u have gone thru Apple's OS X license agreement recently?
    I have gone through the Apple website recently but I don't need to. Regardless, the answer remains the same and will not change. If you want to run OS X, you need to purchase a Mac.

  • Buttons not appearing after given time

    Captivate is driving me absolutely mad...
    I am attempting to make an elearning app with audio narration
    on some slides, and some quiz slides and branching. I have set the
    default slide display time to 600 sec. I am using audio files for
    narration and want captions to appear at strategic points in the
    slide. I made the captions and positioned them where I want them on
    the timeline, then changed their properties to "Display for rest of
    slide".
    When I preview the slide in the Captivate interface, it works
    fine, but when I publish the project (or do a full preview), the
    audio plays but the captions don't appear unless I click on the
    "Play" button in the Flash player controls underneath.
    I have downloaded Captivate 4, as I was having similar
    problems in version 3 (except that in version 3 the audio didn't
    play either!) Was surprised to find the same problem - surely this
    is a really standard thing to do... so what am I doing wrong?

    Hi there
    600 seconds? Seriously? OMG, that's ten minutes!
    Personally, I would never recommend having a slide longer
    than maybe ten
    seconds. I'm not sure how you even manage a timeline that
    long.
    At any rate, whatever floats your boat I suppose. My guess is
    that you have some object (Click Box, Button or Text Entry Box)
    that is sitting on the timeline and pausing things before the
    button you wish to see has a chance to appear.
    Cheers... Rick

  • HT204370 Downloaded movie not playing after first time

    Purchased and downloaded a movie yesterday (have confirmation email of purchase).  Able to watch movie once.  Tried to watch again, but received message "You do not have permission to access the requested resource".  Why am I getting message if I have proof of purchase?

    Trashed the video file and redownloaded.
    Exact same thing.  Doesn't play for more than a couple seconds. 
    Infuriating, and zero responses yet.  Is there a point to posting on here when 99% of the questions I see are unsolved or completely ignored?

  • IPhone Home Button not working after upgrade to ios 5.1.1

    Hey everyone,
    I'm pretty sure this is a software failure due to the symtoms the iPhone is showing;
    0 - the home button does not work at all when the phone is turned on and running ios 5.1.1, well it used to work okay when i had ios 5.0.1, I upgraded to 5.1.0 and started working randomly, upgraded to 5.1.1 to see if it was fixed with no luck at all.
    1 - When locked the screen does sometime light up, like when you press the home button and don't slide the unlock button. but it does not exit apps anytime, I mean it doesn't act like it's pressing the home button randomly but only when the phone is locked.
    2- The button does work perfectly when iOS is not running: I can get in and get out of recovery and dfu mode at will, that wouldn't be possible if the button were broke.
    3- what else? Oh yea, not really a symtom: Tried the 'home button calibration' several times.
    4 - It's not filthy, since I really cleaned it thoroughly with a powerful tiny nozed air blower I got and gave a rubbing alcohol treatment too.
    5 - when I shut the phone down it instantly turns back on, I can interrupt the turning on for turning the phone into dfu mode (i'm sure It's in DFU mode because the tinyumbrella log monitor tells me)
    I'm now using the 'soft' home button that goes in the accesibility options, but hey, I didn't pay a ton of money for a phone that the same Apple is gonna break down.
    It's out of warranty and I don't have apple stores where I live.
    I'd downgrade to 5.0.1 in a snap if I could but I'm not into jailbreaking, so the shsh blob thingie is not a possibility.
    Any apple dev around that can give me a workaround?
    thanks a lot in advance
    Added more info ~ 

    I had the same problem with Home button not responding after upgrading from iOS 5.1 to iOS 5.1.1 on an iPhone4.   I solved it but not sure exactly what fixed it.   Here is what I did.
    1.  Took it local Apple store Genius appointment.   They used a special tool and took some lint out of the connector opening.   The Home button started working.   They said even though the phone was out of warranty, I could buy a new replacement one without a contract for $150. 
    2.   The Home button stopped working when I got home.   I got some compressed air in a can and blew the air through the connector to try and clean out more dust.   I now keep the phone with the connector opening facing down in my pocket.   I also struck the phone downward on my hand or other soft surface to force as much dust out as possible.
    3.  The Home button still was intermittent.  I then tried to do a hard reset by holding the power on key and the Home button simultaneously for about 10 seconds.  This doesn't work if the Home button doesn't respond.
    4.  I connected the iphone to Itunes via the USB to sync the phone.  While connected, I did a Hard Reset by Holding the Power button and Home button simultaneously.  I noticed the Home button responded better when connected to ITUNES via the USB.
    5.  I did a backup of the iphone4 by highlighting the iphone 4 while connected to ITunes and right mouse click and selecting BACKUP.    I was prepared to reset my phone4 in iTUNES and restore it from the backup.
    The phone worked consistently before I had to do this.
    6.  As a last resort which I didn't need to do, I was going to copy all my settings for the iphone by selecting the phone in iTUNES and looking at all the sync settings.   I would then have restored the iphone to original factory settings and then sync the phone using the copied settings.  This would have made sure that the backup didn't include the bug.
    Fortunately, I didn't have to do step 5 and 6.   Things started working after Step 4.  So I don't really know if it was the iOS 5.1.1 upgrade or pure coincidence that the Home button stopped working immediately after the upgrade.

  • Volume button not working after update ios..

    My iphone 4s volume down button not working after i upgrade to ios 6.0...and then i update to ios 6.0.1 its still not working...plz help...what happen...???

    Settings > Sounds > Change with Buttons... Make sure this is set to ON.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If none of the above resolves the issue, take the device to Apple for evaluation or possible replacement.

  • Internet Radio is NOT missing after all, hooray!

    OK, Internet Radio is NOT missing after all. Its placement  just has been made so illogical that as long as you try to find it by logic you will fail.
    This is what and where it used to be: an item "Radio" under "LIBRARY" in the side bar, its showing toggleable on-off in Preferences by checking/uncheking the corresponding checkbox. You click on "Radio" under "LIBRARY" and you see a list of internet radio stations in the browser frame.
    Here is what and where it is now: a button "Internet" in a button bar over the browser frame when item  "Music" is selected under "LIBRARY" in the side bar. You click on "Internet" and you see a list of internet radio stations in the browser frame just as in the happy olden days. The word "Radio" (as a button) now refers to a service where you can make up your own "stations" a la Pandora, I guess.  At the same time nothing whatsoever has changed in Preferences, there is still an "Internet Radio" checkbox  but unless you are looking at the buttons over the browser frame you will never know what it does. Not only that, there is no corresponding "Internet Radio" library item or button anywhere, there is "Radio" and an "Internet" button, and it just so happens that the checkbox will toggle the "Internet" button on-off.
    The end result of all of this is that all items under "Show" in Preferences toggle items under "LIBRARY"  in the side bar except the "Internet Radio" item which will toggle the "Internet" (i.e. internet radio) button in the button bar of "Music". This also means that the only button that can be toggled on/off in the button bar is the "Internet" button, all others are fixed.
    Messing with it for messing's sake, trying to be fancy.

    Hi Sarah, thanks for ur reply.
    I did not use toad to kill session.
    I use form application to kill session,
    e.g. user id 1111 log in to the application in PC 1
    at the same time, same user id 1111 log in to the application in PC 2
    So when the user log in into PC 2, i kill the session in PC 1 (in form application).
    So when i log out from PC 2, i close the applet, in the next hour, i need to log in again using PC 2 without close the IE.
    So the IE is not responding.
    Is there any way to refresh IE without re open again to connect to the application ?
    Thanks,
    Iwan

  • Iphone 4 Home button not working after upgrade to OS 4.3.5

    Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • Radio button not getting cleared

    Dear Freinds,
           I  have 3 radio buttons on my slection screen i can see that even though they are group . I can see in debugging
    when i toggle from radio button to another the first button radio button value is still X when you have changed to antoher radio button in the run time . How to clear the first  radio button when you have moved to second radio button.
    rgds
    divya.

    Got the solution
    Thank you

  • Is anyone having trouble with the "home" button not responding after upgrading to 5.1.1 OS?

    Is anyone having problems with the "home" button not responding after upgrading to 5.1.1?

    You will not belive how I accidently solved this - !!!
    Yes I had the problem immediately after the 5.1.1 'cloud' upgrade, the problems started (on my iphone 4) ... I followed the 'get power down button, then hold HOME for 30 secs' solution, but no result, nothing seemed to work and I was starting to get a bit agressive with the keep it pushed, multiple double click frustrations, icopybot multigesture solutions etc. and paid money ... but this comedy solution now works ...
    I discovered it because I ordered a waterproof case for my iphone for my motorcycle ... I've just fitted it to my iphone and all the problems have gone ??? what! ... so wondering why I looked at what the home button on the casing was doing - it was pressing ACROSS the home button i.e. it converted my finger point into a wider 'PRESS
    so taking the new case off, instead of using the point of my thumb to press HOME, I used the flat of my thumb to emulate it ....and initially nothing, so I wondered if it wa making better 'cross button' contacts, so I licked my thumb, wiped it and then tried again! - it worked!
    I can't explain it but it seems to work - try it! if the double click on HOME doesn't work lick your thumb dry it and try again! I've just done it again
    what a mad techno world we live in! :-)
    Dave

  • Elements 13 Organizer will not open on first time after downloading

    @ ! ! !Why will Elements 13 not open after first downloading?

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • HT4623 my phone main button not working after installed new version software 7.0.6

    my phone main button not working after installed new version software 7.0.6

    Arrange some liquid like petrol spirit and w 40
    two drops in to home button.
    30 times press slowly slowly and then restart your apply iphone.
    You will get ready.
    I am sure. Thanking you...

  • HT4623 Anyone having trouble with App Store install and cloud store buttons not working after 6.1 update?

    Anyone having trouble with App Store install and cloud store buttons not working after 6.1 update? I go to install an app. I hit install and nothing happens. About a minute later it asks me for my password and then it does nothing. The install button goes back to saying install. However the app shows up in my installed list and in cloud but no app installed.

    OK - I found a helpful post - closed app store app and under Settings/General/Date and Time I reset the date and time by switching off "Set Automatically" and then switching it on again. Went back to App Store, launched it and Updatesseems to be working again.
    Go figure? Logical, No!

Maybe you are looking for

  • How many domains can Prime Collaboration Advanced manage with the BE6000?

    The BE6000 Administration guide states that "Most BE6K deployments have a single domain as part of a Standard Prime installation. Multiple domains are available with Prime Collaboration Advanced (available for purchase) that can be used for complex B

  • Pictures too dark - not a monitor calibration problem

    I believe this is some kind of color space or EXIF data issue I'm having. The jist of it is this: if I view one of my pictures (they're in jpg format) in Windows Explorer, they look fine. But when Lightroom opens the picture or displays it in the lib

  • How long to burn a DVD

    I am trying to transition from Windows to Mac using FCP and DVD Studio Pro on a G5 (twin 2.7 processors, not the new Quad). I was surprised to find a 42 minute DVD took almost 90 minutes to encode and burn to disc. The steps I took were: Exported Qui

  • Settlement rule not created automatically

    HI All, Every time when i create a maintenance order , system did not create settlement rule automatically ,  when i click on settlement rule it ask with default or without default and cancel , when i click on with default the only settlement rule ge

  • Novice:  how do I determine which OS version I'm on?

    How do I determine which OS version is on my iMac?