Valuechangeevent fired, but no value was changed

Hi there,
i got a form with a selectonemenu that has a valuechangelistener attached.
problem: when i press my submit button the valueChangeEvent is fired though i didnt change the value of the selectOneMenu before.
Cause the listener method skips further phases by renderResponse() the submitAction isnt executed.
When i click the button again all works as expected.
Any pointers how to get rid of this behaviour? Do i have to submit the form onload() or sth? how is this done best?
<h:form>
<h:selectOneMenu
  value="#{bean.testMenuSelection}"       
  valueChangeListener="#{bean.listener}"
  onchange="submit()" immediate="true">
  <f:selectItems value="#{bean.menuSelectItems}" />
</h:selectOneMenu>
<t:commandButton
  value="Submit"
  action="#{bean.submitAction}" />
</h:form>

Thx, but this doesnt solve my problem.
I only got this trouble when i first load the form. It seems that with the initial filling of the selectOneMenu a changeEvent occures which is fired when i submit the form with my button. renderResponse() in the listener prevents the button-action to be executed. I understand this. WHat i dont understand is, is why the changeEvent is fired at all when i didnt cahnge the value.
Later when i REALLY change the value all works fine. If i press the button after having changed the value of the menu the button action is executed as expected.

Similar Messages

  • How to change row background when the value was changed?

    hello expers!!
    i need your help...plz help me.
    i want my table row(specific) background changes when the user changed the value in a cell. I am able to know that a value in a cell was changed but the problem is i dont know how to change row color background. I've researched over the internet on how to solve this problem but nothing was found.
    please see the link to help you visualize what i mean. tnx!
    [http://www.flickr.com/photos/28686474@N04/2708299927/]
    tnx in advance!! code snippet will be a great help...
    Edited by: kagaw3000 on Jul 27, 2008 8:22 PM

    final JTable table = new JTable(data, columnNames) {
    int lastRowChanged = -1;
    @Override
    public void tableChanged(TableModelEvent e) {
         super.tableChanged(e);
         lastRowChanged = e.getFirstRow();
         repaint();         
    @Override
    public Component prepareRenderer(TableCellRenderer renderer,
                   int rowIndex, int vColIndex) {
    Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
         if (rowIndex == lastRowChanged) {
              c.setBackground(Color.RED);
         } else { 
              c.setBackground(getBackground());
         return c;        
    ...........this code will changed background color when data was changed BUT if i changed another data in another row the previous backgound color(RED) will be erase. To make it more clearer, it will only change background color of a row only to one row NOT to multiple rows(that is being edited).

  • I was able to change my apple id on my ipad, but am unable to change it on my iphone 4

    I created a new apple id in my computer. but the id was changed on my ipad only. the apple id on my iphone 4 did not change.  how can i change it?

    Settings>Store...tap the ID shown...sign out...sign back in with the ID you want to use.

  • JSF RI  1.1_01: UIInput component value was not set during render response

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When I bought my iPhone 5s I set up the email account for iCloud with a Shaw Cable address. Shaw was my ISP. I changed ISP's which rendered my iCloud email account as useless. I did reset my AppleID but it didn't change for iCloud. How can I change?

    Ok so now I right the novel. Haha.
    I bought my iPhone 5s and set up the AppleID for iCloud to be the same as the Apple ID I already used for iTunes and the App store. I was using @shaw.ca as part  of the emaill address. I changed my ISP to save money so had to change the Apple ID. I had no issues changing it for iTunes and the App store, but it wouldn't change for iCloud. I don't recall the password and can't have it sent to me as that address does not work any longer.
    What do I do to get my AppleID for iCloud working again?

    Yes, you understood correctly.  From your explanation, you created your hotmail.ca ID by revising the shaw.ca ID.  Given that, you should perform the steps listed in my original post:
    Make sure you are signed into iMessage and FaceTime with your current ID.  If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
    Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.)  Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID).  Then save any photo stream photos that you wish to keep to your camera roll (unless using iCloud Photo Library).  When finished goThen go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device).

  • A month ago my iPhone was stolen, I turned on Activation Lock but it never came out BUT an hour ago somehow my apple ID was changed and someone removed from the account both iPhone and iPad and the iPad was also removely wiped. Can Apple help me somehow?

    A month ago my iPhone was stolen, I turned on Activation Lock but it never came out BUT an hour ago somehow my apple ID was changed and someone removed from the account both my iPhone and iPad and the iPad was also remotely wiped. As soon as I saw it I recover the password and return the access to my iPad. But iPhone is not registered for my apple ID any longer. Can Apple help me somehow? I have all the documents and the iPhone box. Will they lock the iPhone and return me access to it. I'm sure it's been attached to another apple ID.
    PS. the apple ID I'm using on the discussons is not the hacked one.

    Try contacting the Apple account security team and ask: http://support.apple.com/kb/HT5699.

  • I had this video file and I was trying to flip it to a format that would work with iMovie.  It used to have the Quicktime image with it.  So, I assume it was a QT file.  But, somehow I've changed the file from a video to a folder.

    I had a video file and I was trying to flip it to a format that would work with iMovie.  It used to have the Quicktime image with it.  So, I assume it was a QT file.  But, somehow I've changed the file from a video to a folder.  I've tried to undo the action.  No luck.  I wasn't running my Time Machine.  So, I can't go back.  Help.  It's the only copy of this video.

    I've tried to undo the action.
    How?
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    it's the only copy of this video.
    Where did you get the video from?
    From the pic I noticed that the folder is 841.9mb.  What's inside?  Or what happens when you click on it?

  • My apple ID was hacked.  Trying to reset password but the email never reached my account.  Trying to answer security questions, the birthday was changed.  I am really miserable.  Can anyone shed some light, please?

    My gmail email is my apple ID.  I found I lost access of gmail last night and I reset the password before bed.  But this morning the password was changed again.  My ipad also requested a password that didn't match to the one I used.  I have reset my gmail once more.  In addition, I added 2-step verification.  But I have not received any new mail up to now.  I tried to reset my apple ID.  When I selected sending an email for resetting, the mail was sent but never reached my mailbox;  When I selected answering security questions: the birthday was wrong.  It's been changed.  I am SO SO UPSET.  Can any genius take pity on me and show me some guidance, please?

    You should get Apple involved in sorting this out. Start at this site:
    https://getsupport.apple.com/Issues.action
    Your Apple ID can be handled through iTunes.

  • My iPhone 6 was stolen and i got it back, but the pass code was changed and so was the touch-id. and now im locked out of the phone because ios 8.1 requires either of the passwords to access the phone. and iTunes doesn't recognize it so i cant restor

    My iPhone 6 was stolen and i got it back, but the pass code was changed and so was the touch-id. and now im locked out of the phone because ios 8.1 requires either of the passwords to access the phone. and iTunes doesn't recognize it so i cant restore it at all PLEASE HELP

    Take it to an Apple Store, take proof of purchase with you.

  • I needed to reset my iPod touch because my pass code was changed and I didn't know what it was, but now iTunes wont let me restore it what do I do?

    Please help me!! I needed to reset my iPod touch because my pass code was changed and I didn't know what it was, but now iTunes wont let me restore it what do I do?

    You'll need to connect it to the iTunes library you normally sync it with and restore it.  If iTunes asks you for this passcode before it will let you proceed, connect the iPod to iTunes in recovery mode instead using the instructions in this Apple support document.
    iOS: Unable to update or restore
    B-rock

  • In my planning application.I have 100 members in account dimensions.Those members are used in 100 forms.suddenly my bussiness was changed.so i want replace those 100 members into new name of 100 memebers.but how i can chnage in 100 forms.how to handle

    In my planning application.I have 100 members in account dimensions.Those members are used in 100 forms.suddenly my business was changed.so i want replace those 100 members into new name of 100 members.but how i can change those 100 members in 100 forms.how to handle this?

    Hi joshi and jharvey,
    Thanks  for you are reply.I am new for this lcm.Can you explain detail.about above problem.I mean in share service i didn't find any export option.I had seen only migration.or share any blog for detail about lcm.

  • I keep getting this error "This document was changed in another application" but I am not opening this doc in another application

    Pages 5.2
    OSX 10.9.2
    I have been getting this error (on keynote as well)
    "This document was changed in another application. To work on that version, click Revert. Changes you made here will be saved as a version on your Mac.  Tip: If you’re using an online storage service, avoid opening the same document on multiple computers at once"
    I am only working on this doc on my MacBook Pro (Ipad is OFF),
    not running pages on my phone
    not logged into iCloud in safari
    document saved to my hard drive (not iCloud or dropbox)

    Getting the same message. Started with the latest update a few days ago. So I guess it's a glitch in the current version and hope Apple will solve that soon by issuing another update which fixes that. It's really annoying and makes it quite impossible to use the application at all.
    Meanwhile open Pages, go to Pages, Provide Pages Feedback, choose Feedback Type: Bug Report and explain the problem in the Comments box.
    http://www.apple.com/feedback/pages.html
    I think that's all you can do for now. But it's important for people to report the problem since I don't know how closely Apple is monitoring these Forums.

  • The language on my phone was changed to japanese. I have switched it back to English, but itunes still has some japanese writing on it

    The language on my phone was changed to japanese. I have switched it back to English, but itunes still has some japanese writing on it.
    Does anyone know how to get rid of this?
    Thanks

    Try This...
    Close All Open Apps...  Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • HT201363 try to connect on apps store to download podcasts apps but it doesn't accept my password even it is correct and i was change it and i use it to me manage my apple ID

    try to connect on apps store to download podcasts apps but it doesn't accept my password even it is correct and i was change it and i use it to manage my apple ID

    - Try going to Setings>Store and sign out of the account and then sign back in.
    - Reset the iPod. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears

Maybe you are looking for