Problem in getting the current value of the drop down while calling value change listener

I have 2 drop down list. I am trying to get the value of first drop down from other drop downs value change listener. Initially one drop down contains a default value. First time I got the value while calling the value change listener. But if I change the default value to other in the first drop down and call the value change listener of the second drop down then I got the old value in the bean. Can anyone suggest a process

If I use the following code it gives me the current index.
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            System.out.println(valueChangeEvent.getNewValue());
This is also giving me current index.
BindingContainer container = BindingContext.getCurrent().getCurrentBindingsEntry();
AttributeBinding attrIdBinding = (AttributeBinding)container.getControlBinding("PersonTypeId1");
if(attrIdBinding.getInputValue()!=null)
               System.out.println(attrIdBinding.getInputValue().toString());
But at last I got some help from Shay Shmeltzer's Weblog.
BindingContainer bindings =
                BindingContext.getCurrent().getCurrentBindingsEntry();
                // Get the sepecific list binding
                JUCtrlListBinding listBinding =
                (JUCtrlListBinding)bindings.get("PersonTypeId1");
                // Get the value which is currently selected
                Object selectedValue = listBinding.getSelectedValue();
                  long value =0L;
                if(selectedValue!=null){
                    System.out.println("Sudip.. Person Type using bindings"+selectedValue.toString());
But this returns "ViewRow [oracle.jbo.Key[300000860721156 ]]"
300000860721156 is the original value.. Would you please help me to figure it.

Similar Messages

  • Made a drop down menu. How can I get the drop down to fade in and out? !

    Hi guys!
    I've created a drop down menu (with the help of you legends on here! )...Now I just need it to animate so when the user hovers over the main menu item, the drop down fades in.
    Here's the HTML I have...
        <ul id="nav">
            <li><a href="#">Nav 1</a></li>
            <li><a href="#">Nav 2</a></li>
            <li><a href="#">Nav 3</a>
                <ul>
                    <li><a href="#">&raquo; Sub Menu 1</a></li>
                    <li><a href="#">&raquo; Sub Menu 2</a></li>
                    <li><a href="#">&raquo; Sub Menu 3</a></li>
                    <li><a href="#">&raquo; Sub Menu 4</a></li>
                </ul>
            </li>
            <li><a href="#">Nav 5</a></li>
            <li><a href="#">Nav 6</a></li>
        </ul>
    ...and here's my CSS...
    ul#nav {width:920px; height:35px; list-style:none; padding:0; margin:0; background:url(navBg.jpg) repeat-x; z-index:999;}
    ul#nav li a:hover, #nav li a:active {background:url(navOn.jpg) repeat-x; text-decoration:none;}
    ul#nav li a {color:#E0E2E7; display:inline-block; float:left; margin:0; padding:10px 19px; width:auto; text-decoration:none;}
    * html #nav li {display:inline; float:left; }  /* for IE 6 */
    * + html #nav li {display:inline; float:left; }  /* for IE 7 */
    #nav ul {width:208px; left:-9999em; list-style:none; margin:35px 0; padding:0; position:absolute; z-index:999;}
    #nav li:hover ul {left:auto;}
    #nav li {float:left;}
    #nav li li a {width:190px; background-color:#efefef; color:#2e2e2e; padding:8px; margin:0; }
    #nav li li a:hover {background-color:#000; background-image:none; color:#FFF;}
    #nav li:hover {background:url(assets/images/frame/navOn.jpg);}
    From what I can make out, I assume I need either Javascript or JQuery...
    Does anyone know how I can get the drop down to fade in and out?
    Thank you very much and I hope to hear from you.
    SM

    Yes, you'll need a client-side script to do fade-in/fade-out fx.  Look at jQuery Superfish.
    http://users.tpg.com.au/j_birch/plugins/superfish/#examples
    Nancy O.

  • How can I get the drop down window for a ID and P/W "Always remember" Auto Fill

    Recently I had a mail issue with my ATT (Yahoo)  Mail account and they temporarily changed by Password.
    After the issue was resolved I changed it back but the auto fill kept the temporary Password in Safari when I log onto my e-mail account via the internet instead of the Apple Mail program.
    In the Past, whenever I would put a different P/W or ID there would be a drop down window that said :
    Never, later or Always remember", at least something like that terminology.
    Since I have had no reason to change P/W or ID lately I do  ot know if it is Lion issue or if there is a way of getting the drop down to appear.
    Thanks,
    Greg

    If I am not making my request understood, please let me know and I will try and reword it.
    It is always easy to understand what I are asking but it does not always mean that others understand it.
    Thanks,
    Greg

  • Facing the problem ValueChangeListener of the Drop Down List

    Hi,
    I am using the JDeveloper 10.1.3.5.0 and the JHeadStart 10.1.3.3.88. In my requirement, I am having three View Objects(V1,V2,V3). I need to create a page based on one VO(V1) displayed as table. In the screen, there are 6 columns. Three of them(C1,C2,C3) are having the static values( coming from the VO(V1) from which it has been built), and the others are, one column(C4) is displayed as the drop down list(for some of the rows, drop down list values are coming from the VO(V2), and for the others drop down list values are coming from the other VO(V3). The other column(C5) is a input text field, that is enabled or disabled based on the selected values from the drop down list column(C4). The column(C6) is a check box. Now, coming to the actual requirement, the rows are related to the papers. For each paper, there are 5 methods of studies. One of the method of study is SelfLearning (5th method of study), for this the drop down values are coming from the VO(V3), and for the other methods of studies(1 to 4), the drop down values are coming from the VO(V2). Now, for a user, based on the number of papers, the number of rows are displayed.(1 paper- 5 rows, 2 papers-10 rows like wise).   Initially, drop down list is displaying the null values. When I change the value in the drop down list, I need the ValueChangeListener has to be called and it has to call the method in the bean. From the bean, the column(C5) has to be enabled or disabled. This is working fine for the inital 5 rows and 7,8,9,10 rows and 12,13,14,15 rows. But, the ValueChangeListener is not working for the rows 6 and 11. I used the debug concept,and I confirmed that the valueChangeListener is not getting called for the rows 6,11,16 rows.
    C 1
    C 2
    C 3
    C 4
    C 5
    C 6
    P1
    ABC
    Study Method1
    Drop Down list1
    input text box
    check box
    P1
    ABC
    Study Method2
    Drop Down list2
    input text box
    check box
    P1
    ABC
    Study Method3
    Drop Down list3
    input text box
    check box
    P1
    ABC
    Study Method4
    Drop Down list4
    input text box
    check box
    P1
    ABC
    Study Method5
    Drop Down list5
    input text box
    check box
    P2
    DEF
    Study Method1
    Drop Down list1
    input text box
    check box
    P2
    DEF
    Study Method2
    Drop Down list2
    input text box
    check box
    P2
    DEF
    Study Method3
    Drop Down list3
    input text box
    check box
    P2
    DEF
    Study Method4
    Drop Down list4
    input text box
    check box
    P2
    DEF
    Study Method5
    Drop Down list5
    input text box
    check box

    The problem gets solved. Actually, the problem is at the VO Query. The small modification in the query at the attribute p_id( C1 ) has solved the issue.

  • How can I get the drop down menu on the internet to work, which shows most visited websites? It was working on Firefox, and now doesn't.

    On the internet when using Firefox, the drop down menu on recently visited sites (where you type in web addresses), does not work. How can I get it drop down and show websites that I recently visited, so I can click on them there instead of retyping them every time?

    Make sure that the Location Bar is not set to "Nothing":
    * Firefox (Tools) > Options > Privacy > Location Bar: When using the location bar, suggest: History, Bookmarks, History and Bookmarks
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • When i revert to ver 29 i get pull down menus for searching after download of automatic 33.3 I can't get the drop down menu. I've tried to block the update

    when i use ver 29 i get past menu drop downs. when i get the automatic update to 33 or higher I can't get the pull down menu. I don't like to type in the search work every time I go to a web site. It should remember where I've been or at least let me keep ver 29 without automatic updating., I've tried to set the firewall not to update but it does it anyway. some firewall. Thanks if you can help this. I'll have to go to safe mode and revert to yesterday and download ver 29 again, I can do this everyday but that makes me not want to use firefox. I don't want to leave firefox. I like it. ! HELP?????

    in firefox 33 the search field on the homepage will now populate by search suggestions provided by the search engine once you start typing -this is why the dropdown with your entries from history is no longer there unfortunately...

  • Get action or value change listener to be invoked from phaseEvent

    Hi,
    Does a PhaseEvent object has information for which action or value change listener is to be invoked?
    I have implemented a common logging method which has to be called on any action or value change event.
    The method requires the name of the method bound to action or value change listener.
    It is convinient if a phaseEvent object has information for the listener's method name because in that case I don't have to write a code calling the logging method in each action or value change listener but only in PhaseListener.
    Regards,
    Kenji

    Same as my thread...no answers...!

  • I can't get the drop down menu in the search box in newest version.

    I just updated to the latest version (35.0) and can't get drop down menu. I couldn't get it in the last version either. I've filled everything out in the change settings page but still can't figure out how to get my choices to show up. (Please keep answers simple--I'm not a computer geek but I can follow clear directions.)

    ''Kathy99 [[#question-1042648|said]]''
    <blockquote>
    I just updated to the latest version (35.0) and can't get drop down menu. I couldn't get it in the last version either. I've filled everything out in the change settings page but still can't figure out how to get my choices to show up. (Please keep answers simple--I'm not a computer geek but I can follow clear directions.)
    </blockquote>
    ''Kathy99 [[#question-1042648|said]]''
    I see it now. Thank you, Phillip. I read the help page before, but I think it would help if that page pointed out that the options you have selected will appear at the bottom of the list of suggestions after you type a search in the box. Also that would have been clearer if I did not select give suggestions. The key point for my understanding was that I had to type a search first in order to get the options to appear, which is the opposite of how it worked before. Definitely fix that help page to make that part clear. And thanks again, so much.

  • Elements 9 - text, font family - how can I get the drop down menu to work?

    I can't change the text fonts in Elements 9.  Most everything else seems to work except the font family drop down menu.  When I click on the arrow, the menu drops but immediately dissappears.  The font size drop down works but not the family menu.  Help please.

    I think it's usually a restriction of short displays on netbooks and laptops etc. You may have to live with it unless you can change display resolution via the control panel.

  • How can I cancel itunes match without the latest version of itunes? I can't get the drop down menu from the store

    I have a mac which doesn't support the new itunes. The instructions I have from apple say that I have to use a pull down store menu from the itunes store and then I should be able to view my account and cancel by turning off the auto renew button next to itune match, The only trouble is I can't see the itune match at all.

    Turning off the auto-renew does not cancel the service. To actually cancel, or turn off the service, you need to contact iTunes Store support. What the instructions are are getting is telling you to do is to cancel the auto-renew. You can accomplish that by, in iTunes:
    1. Pull down the Store menu and select "view account."
    2. Enter your credentials when prompted.
    3. In the middle of the page click the hightlight button:

  • How do you get the drop down menu on a 17 inch macbook pro (old version)

    any answers?

    bobrat wrote:
    its the menu that you get when you right click
    Ah, the shortcut (or contextual) menu. For Snow Leopard, see
    <http://docs.info.apple.com/article.html?path=Mac/10.6/en/8517.html>
    for Lion, see
    <http://docs.info.apple.com/article.html?path=Mac/10.7/en/mchlp2175.html>

  • When I'm on Facebook and play Fish World, sending gifts is no longer working, the drop down box won't open enough to see the "send" button. It works in other games, but not in Fish World, and I contacted Fish World who said it was a browser problem.

    starting yesterday I cannot get the drop down box to open to send gifts to my friends. Fish world told me a few weeks ago it was due to some updates with Facebook, but now that has been fixed and I can't get the game inFB to work. It works with other browsers - Chrome and IE9. Is there something I need to do on my end to fix this? Other facebook games work fine with drop down boxes, it's only fish world.

    problem solved

  • The drop down history button in FF3, used to be between the forward and back buttons, is missing in FF4. how do i get it back?

    I'm referring to the small downwards arrow between the back and forward button beside the URL, on the navigation bar. That used to be a very convenient feature and now its not available in FF4. Is there a way to get back that button?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • In Ver 4.0, what happened to the drop down selections for previous windows for the current tab?

    In the previous versions of Firefox, in any open tab that had multiple windows open, i. e. from a search where you would go to many different windows, there was a drop down selection to the right of the "back/forward" button that would let you select prior windows ... and always the first one. That is no longer there. It was extremely helpful and I used frequently. Can you add it?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Advice needed on the Drop-down box description.

    There are lots of postings on how to get the drop-down box working and there's even a How-to guide called Dropdown boxes. However, I have a field (defined using the AET tool) which has an Search help assigned, so the drop-down list is automatically displayed for me. Having said that I'm still bemused as to how it works as there's no code in the P and V Getter methods.
    Anyway, that aside, the dropdown box is working fine, as mentioned, but I also have the description field to populate with the description of the value returned by the drop-down box. In my case it's a Department code and associated description.
    Initially, I inserted code in the SET_DEPT method to lookup the description (using a SELECT statement) and place the result in the DEPT_DESC field. However, this method is not being called, I don't think, or at least my break point is not being reached.
    So I'm looking for somewhere to place the code which will be called when the DEPT field changes value, and I can then lookup the description and populate the DEPT_DESC field.. Both the DEPT and DEPT_DESC fields are in the same context node by the way.
    It's a real pity that when you create new fields in the AET tool you can't relate one field to another or somehow use a search help and say that the source is another field and this field will hold the result, or something like that.
    Jason

    Hi,
    It was said that the SET_* method will be called when you press enter on the view to trigger a server round trip.
    For your case, I'd like to suggest you take standard coding for example.
    That is the categorization in service ticket view in IC_AGENT role.
    When select the first category, if the second category only has one value, it will be automatically set. which should be similar to your requirement.
    component view GSMCDDLB/DropDownList
    call stack is
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD EH_ONCATCHANGE  CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD DO_HANDLE_EVENT CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    when a value is selected in the first dropdown, an event is triggered, you may debug and find out your event, and make the codings in EH_* method.
    set value for other field is some what simple also, like that in
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    CALL METHOD lr_dropdownlist->if_bol_bo_property_access~set_property
    If the first field is not a dropdown, for example a field with F4 help, after select the value from the popup, there will be event SELECT_OBJECT triggered for the view I tested.
    You may put breakpoint in do_handle_event for the controller class and observe what event was triggered.
    Then make the relevant coding.
    Hope could do help!
    Hongyan

Maybe you are looking for

  • Hp mini 1035nr dc power jack issue

    HP Mini 1035NR DC power jack is no longer making a connection to the power tip. Voltage is consistent on the tip itself. Did not help that my wife has been using this for some time by wiggling the power plug into the DC jack on the side of the netboo

  • How to display a message from program in work item text in workflow

    Hi, I need to display an error message in the work item text in workflow  . The error message is contained in the container t_container and the field in which the error message is contained is t_container-textvarfortextelements the text that is conta

  • Using Select option in Native SQL

    Hi, Can any one tell me, how to use select option value in native SQL. ie., I want to use select option in where condition. Need to select all the records from table(non-SAP) where date in given range. Please suggest. Thanks, Amal

  • Often when Firefox is closed and reopened ALL the tabs and tab groups are missising. FIX!!!!

    For reasons that are unclear to me I sometimes close Firefox and later re-open it. In some cases ALL the tabs and tab groups are gone. Today it opened in MSN.com and ALL tabs were gone. I put a lot of pages on these and have NO WAY to find them all a

  • THIS NEED'S SORTING NOKIA! [N97]

    since i first seen this phone on a youtube video about 8 month's ago i was amazed at how stylish/powerful this phone was, now 8 month's later i'm on my second handset! my first one decided to lock up so bad i had to take it back to the shop and repla