Bug: JList does not always show the right selection

I have a JList (Navigator model!) on my form which contains the data of a certain view. The view consists of several attributes but the navigator model always only shows the value of one field. The field I have choosen hasn't an unique value but that's no problem for what I want to do with the JList.
When I select another row in the view object useing it's key the row is selected in the view object (which I can check looking at the primary key attribute of the currently selected row), but in the JList sometimes the wrong row is selected. I noticed that if there is another row with the same value for the visible attribute (in my case an attribute called "name") as the row which is selected in the view object sometimes this wrong row is selected in the JList. This occurs if the wrong row with the same visible value (name) is at a higher position in the list. So it looks like the BC4J framework checks what the value is of the visible attribute of the currently selected row in the view object and used this value to select the first row in the JList that has this value. This doesn't necessarily mean it's the right row!!!
E.g.
The initial view object:
PK | Name
1 | test
2 | another test <-- currently selected row
3 | test
The initial JList:
| test |
| another test | <-- currently selected row
| test |
Now I tell the view object that I want to select the row with primary key value "3".
Now my view object looks like this:
PK | Name
1 | test
2 | another test
3 | test <-- currently selected row
But my JList now looks like this:
| test | <-- currently selected row
| another test |
| test |
I hope this is sufficient information to trace the bug, if not feel free to contact me (by sending a response to this message). I'm useing JDeveloper 9.0.3 preview!
Regards,
Peter

Well, how should the list resolve the difference between two "displayed values" that are same?Well, if I select a certain value in the list the connected record in the ViewObject is selected. In other words the JList seems to know enough about the ViewObject to select the correct record (it doesn't select the first record in the ViewObject with the display value!). So if "it" knows how to do it one way, why not the other way?When you select by index then the object corresponding to that index is selected and that means the right row (if you are able to figure out which row by simply having the knowledge of the row index though even though the displayed values are duplicate - but I won't say that's realistic). The other way, it only has a value - string that it has to match with a set of values in the list and that logic has no clues which of the "duplicate" entries would be the right one.
To resolve such conflicts you could add another "displayed attribute" in the list which is going to make the attribute-set unique in the list.I did do that already, but then my list becomes read-only (not selectable) because the attribute I added is a primary key attribute which is a DBSequence field what may not be changed once it has been inserted. The weird thing is, you can't change the value when you select it from the list, so why does it behave like this? (In other words why is a list with a read only display attribute also read only? because selecting something in a navigator list doesn't mean something get's changed in the selected attribute value!). I'd chase this one. This definitely sounds like a bug. Readonly-ness should not be derived from "displayed" attributes but "updateable" attributes.

Similar Messages

  • Add new tab button does not appear at the right of the previous tab

    Just upgraded to Firefox 4 and the plus sign (T) for a new tab does not appear on the right of the previous tab as it had in earlier versions. I thought it was there briefly after I upgraded but it's not there anymore. How do I get it back? I did download the extension "new tab at the end" but that didn't help....

    That button should be available by default. However, if you use tab related Add-ons it may not show up as expected. You can add it back by right clicking on the navigation bar, clicking Customize, then drag the New Tab icon to the right end of tab bar.
    If that doesn't work, please try starting Firefox in Safemode to see if add-ons are indeed interfering.

  • NB550D - battery icon does not always reflect the proper balance of time

    I have just recently purchased an NB550D and I must say that at the outset I am very happy with it. It does tend to be a bit slow but I can live with that.
    My problem however is that the battery icon does not always reflect the proper balance of time. For instance after a full charge it may show 9 hours remaining but after a shutdown and restart it will may show 75% and 3 hours remaining. If I shut down and restart it may show 75% and 6 hours remaining
    When I first started the unit I allowed it to fully discharge (through use) three times as was suggested by the salesman at the store but quite candidly it doesn't seem to have made one scrap of difference!
    Any advice will be appreciated.
    Regards

    Remaining time is not credible value of the battery state - it depends on actual duty of processor and the program wich estimates this sometimes shows wrong that time or corrects this after a while. Percentage of charge of battery is much better factor to use!
    But in case your battery loses from 95% to 75% after restart indictates that's something wrong with the battery or program... In my NB550D after restart (pause for 1 day) the battery loses only 2-3% .

  • [svn] 3459: Fix FB-14050: Watchpoints: Debugger stack does not always show correct 'Suspended' message when at a Watchpoint.

    Revision: 3459
    Author: [email protected]
    Date: 2008-10-02 14:09:16 -0700 (Thu, 02 Oct 2008)
    Log Message:
    Fix FB-14050: Watchpoints: Debugger stack does not always show correct 'Suspended' message when at a Watchpoint.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-14050
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DProtocol.java
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

    Hi Experts,
    After i tried a few times, i can successfully start prepare with upgrade asistant monitor - Administrator >> Start Prepare,
    Thanks

  • I have added about 2000 cds to itunes without the song details. as i slowly update the song titles and genres etc in itunes, it does not always update the file in explorer. is there a solution to this? thanks.

    i have added about 2000 cds to itunes without the song details. as i slowly update the song titles and genres etc in itunes,it does not always update the file in explorer.is there a solution to this? thanks.

    Windows Explorer will display tag properties for mp3 & wma files, not aac (m4a) or wav. It is possible for mp3 files to contain multiple tags but only one will be displayed. Try inspecting the problem fils with a third party tag editor to see if you can tell what is going on. For mp3 files, provided all the details that you want the file to have are displayed in iTunes, you can try using the right-click option Convert ID3 Tag > None a few times followed by Convert ID3 Tag > ID3v2.3 which may well help.
    tt2

  • Can I shrink the iTunes webpage on my PC monitor so it does not cut off the right and left margins?

    Can I shrink the iTunes webpage on my PC monitor slightly so it does not cut off the right and left margins?

    Can you?  Are you capable of resizing the window?
    Only you can answer that question.
    If you want to know if it is possible, yes, it is possible.

  • My iPad and iPhone have the same syncing calendar but my Windows 7 PC with iCloud does not sync/show the same calendar...please help!

    My iPad and iPhone have the same syncing calendar but my Windows 7 PC with iCloud does not sync/show the same calendar...please help!

    iCloud will not sycn a calendar from an external source.  In order to use iCloud to sync it, you would have to move it to iCloud and stop using Google.  I know how to do that on a Mac, but I'm not sure how to do it on a PC.  If you're using Outlook, I suspect you export it as an .ics file to your desktop, then import it to the iCloud account in Outlook.  I'm sure you could use Google to find the specific steps.
    However, there's really no reason not to just use Google to sync your calendar across your devices.  Instead, just continue to use Goole calendar on all your devices and they should stay in sync.  Take a look at this video: http://www.youtube.com/watch?v=C0Jj0KFgbYI.

  • Some web sites require you to type words presented in a strange form (Captcha?). The 'Captcha' does not always show up on my screen. How can I fix this?

    I do not know how to make this any more clear. The strange, 'squiggly' words are meant to protect a web site from computerized log ins (I think). If the words are interpreted and entered correctly, you can log in successfully. But since the strangely formed words do not show up on my screen, I cannot continue the process. This does not occur all the time, on some sites the strangely formed words show up, and I can continue the process. Is this a problem with Firefox, my computer, or the web site I am trying to log into?

    If images are missing then check that you aren't blocking images from some domains.
    *Check the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    *Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    *Check the exceptions in "Tools > Options > Content: Load Images > Exceptions"
    *Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).
    If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    Make sure that you do not block third-party images permissions.default.images
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    There are also extensions (Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Column overview  does not always represent the table's structure

    In the table editor, when having changed data on the DATA-tab and returning to the COLUMNS-tab, the numbers and names of the columns did not correctly show the actual columns in the table. For instance in a table that contains 5 columns, only three showed up, of which two were shown having the same name. After pressing the refresh button, the info was correct.
    Rene

    I can't reproduce this. Does it happen everytime? Can you run <raptor>/jdev/bin/raptor.exe from a cmd prompt and see if there's any errors?
    -kris

  • Yahoo e-mail page is distorted and hard to read (once in a while its OK) - box does not extend to the right side making e-mail info hard to read. Info displayed in the reading panel is OK.

    When I open the Yahoo email page, the box does not extend across the screen and the script is distorted making it hard to read the source, subject etc. The reading panel info reads OK. All other pages of Yahoo are not distorted.

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • HT204093 the body of my email does not appear to the right when I select a mail message.

    The body of incoming mail messages do not appear to the right when I select a mail message?
    Anybody know how to adjust this?
    Jgm

    Hello!
    Please try these steps: Can't see email message content

  • "Save Image As" does not appear on the right click menu of an image I want to save.

    Trying to save images as a file to my desktop/laptop. I right click on the image and the menu appears. The entry Save Image As... is not present on the menu. How do I get the menu to show this entry?
    I've heard that the problem may have something to do with plug-ins, but I've reinstalled and disabled each of them. It didn't change anything.

    Does that happen with all images or only on specific web pages?
    Can you post a link if the later applies?
    Can you save the images via Tools > Page Info > Media ?
    To be sure:
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.

  • Album art does not always show.

    I posted this question before, but never found an answer.
    Album art works most of the time, but not always.
    After ripping a CD, I highlight all songs, get the info dialog, and drop the album art on the info dialog. This works most of the time. But not always. Sometimes, there is a song on a CD that does not appear to have any album art at all. Sometimes it shows the incorrect album art that iTunes had automatically downloaded.
    For example, I'm just listening to my "Ultra Dance 02" album on my iPod. I remember that after ripping, iTunes incorrectly added album art for "Ultra.iDance 05". I fixed that by select-all, get-info, and drag-and-dropping the correct art. After syncing with my iPod, all songs show the correct "Ultra Dance 02" artwork, except for track 6, which still shows "Ultra.iDance 05"
    What's going on? How do I ensure that the changes that I make stick? And how do I fix such an error?
    Also, is there a way to associate album art with a whole album, rather than each song individually?
    -Ron.

    Even if iTunes recognized it, you cannot use iTunes to transfer from iPod to computer (except for songs purchased from the iTunes Store). You need to use a third-party program. Here is an article on that topic.
    http://lifehacker.com/394046/copy-music-from-your-iphone-or-ipod-to-your-compute r-for-free
    However, if your hard drive's data is in bad shape, it may be difficult to recover all of your songs files.
    Note: The hard drive may have data corruption, but the iPod may work better after you use the Restore button in iTunes. The Restore process erases the iPod and initializes the iPod's software. It won't fix a hardware problem if the drive is becoming faulty. But it may fix the problem if it is only data corruption.

  • EarPod does  not work on the right side. What should I do?

    My grandma brought me an iphone5s that came with Apple EarPods And when I tried using it the right side EarPod does not work... What should I do?

    Settings > General > Accessibility > Mono Audio > OFF

  • Java installer does not open browser the right way

    Windows 7 SP1 x64
    Hi,
    since no direct feedback to Oracle is possible (feedback form does not work), I'm using this forum for feedback. The feedback is meant for Oracle but I appreciate any input from the community.
    At the end of the installation process the Java installer opens the default browser and navigates to a Java/Oracle website. The call is not made using the default way by invoking the standard browser. However the installer seems to open the main exe of the default browser by circumventing standard procedures.
    Example: My default browser is Chrome. Registry settings are set in a way that the browser is opened with specific path variables like a non-default cache path and size and some other variables. Everything works fine and all calls to display any URL are made using the registry settings provided. If I open any URL the browser will open using the specified variables. The same is true for any program that tries to open an URL. The only exception is - of course - Java. The installer opens Chrome directly by circumventing the default settings thus resulting in Chrome opening up with completely different settings.
    Let me tell you how deeply dissatisfied I am with such a behavior. Programs should invoke browsers using standard system calls. If Java had done this Chrome would have opened with default settings.

    please?
    It is a big problem, because also the search does not work propperly.....

Maybe you are looking for

  • Please help me to build this query

    hi, i have two tables a and b. i am inserting data into table a. i am inserting same data into table b. but i need to eleminate any duplicate rows in table b. this work should be done using trigger. means we need to write on insert trigger while inse

  • A book file in InDesign CS3 (.indb) - Mac and PC - crashing issue

    Several months ago, I posted that when I indexed a 300-page book with lots of chapter, generating the index crashed InDesign. This happened initially on a PC running Windows XP home. When I took the book to a Macintosh, it happened also. One thing I

  • Logged in on more than one terminal-crashes

    Great forum! I have been reading and tried to resolve the issue but to no avail. I am most worried about my system being compromised. Problem: Ichat keeps disconnecting, or conversations freeze with other .mac user. I have read here and opened the 22

  • Help.I want to learn about how to assign a custom request  with manager .

    Hi. When i submit a custom single request.I got this problem. No concurrent manager is defined to process this request, so it cannot be processed. Contact your system administrator to define a concurrent manager to process this request or to verify t

  • Crystal Report Takes very long time to display results

    Dear All, I am new to Crystal reports. We have installed Crystal report developer 2008 SP3 on Windows7 Service pack 1. We are creating reports from SAP ECC 6 EHP 4 Ready in Crystal Reports. The problem we are facing is that every report which we have