[JList] serious bug: readonly attribute should not disable jlist nav

Hi,
I've got a JList with a navigation binding. As display attribute, I chose an attribute that is read-only (Updateable: "Never").
Now the entire list becomes disabled. The fact that the field I'm displaying is readonly, does not mean that the navigation should be disabled. I want to be able to navigate through the records, which has no influence on the values of the attribute, so I see no reason why this is disabled.
Something similar was already discussed here: re:Bug: JList does not always show the right selection
but Shailesh could not reproduct it at that time. I've got a reproducable testcase now.
By the way, it's fairly easy to create your own testcase:
- Create an Entity with a default view object, and set the primary key (for example 'Id') to Updateable: Never.
- Populate the table with a few records.
- Create a JClient with a default form and panel to edit the data.
- Add a JList to the panel and bind it as a navigation binding to the view object, and select Id as display attribute.
- Run the app. You'll see that you can't use the list to navigate through the records. This should however be possible, as long as you don't change the values.
I would like to file this as a bug report, and more importantly, I would like to know if there's a workaround I can try (calling setEnabled(true) on the JList from inside jbInit doesn't seem to work).
Greetings,
Ivo

The same problem goes for the JCombBox with a navigational binding. Once the binding involves a non-updatable attribute, the control goes disabled.
I have solved this by creating my own sub-class of JComboBox which cannot be disabled. It overrides the setEnabled(boolean) method and does nothing (no call to super.setEnabled()). So, whenever I need a JComboBox with a navigational binding, I use this sub-class.
To work around your problem, I would suggest you create a JList subclass which also overrides the setEnabled() method and replace your JList instances with ones of the new clas.
HTH

Similar Messages

  • Hi, I developed a web application using HTML5-Offline Application Cache mechanism. Inspite of deleting the cache as mentioned in the above steps, Firefox still maintains a copy of the page in it's cache. Also, a serious bug is, even though we delete all

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    Hi,
    I developed a web application using HTML5-Offline Application Cache mechanism. Inspite of deleting the cache as mentioned in the above steps, Firefox still maintains a copy of the page in it's cache. Also, a serious bug is, even though we delete all temp files used by Firefox, and open the previously cached page, it displays it correctly, but upon refreshing/reloading it again shows the previous version of the page maintained in the cache.
    == Troubleshooting information
    ==
    HTML5: Application Caching
    .style1 {
    font-family: Consolas;
    font-size: small;
    text-align: left;
    margin-left: 80px;
    function onCacheChecking(e)
    printOutput("CHECKINGContents of the manifest are being checked.", 0);
    function onCacheCached(e) {
    printOutput("CACHEDAll the resources mentioned in the manifest have been downloaded", 0);
    function onCacheNoUpdate(e)
    printOutput("NOUPDATEManifest file has not been changed. No updates took place.", 0);
    function onCacheUpdateReady(e)
    printOutput("UPDATEREADYChanges have been made to manifest file, and were downloaded.", 0);
    function onCacheError(e) {
    printOutput("ERRORAn error occured while trying to process manifest file.", 0);
    function onCacheObselete(e)
    printOutput("OBSOLETEEither the manifest file has been deleted or renamed at the source", 0);
    function onCacheDownloading(e) {
    printOutput("DOWNLOADINGDownloading resources into local cache.", 0);
    function onCacheProgress(e) {
    printOutput("PROGRESSDownload in process.", 0);
    function printOutput(statusMessages, howToTell)
    * Outputs information about an event with its description
    * @param statusMessages The message string to be displayed that describes the event
    * @param howToTell Specifies if the output is to be written onto document(0) or alert(1) or both(2)
    try {
    if (howToTell == 2) {
    document.getElementById("stat").innerHTML += statusMessages;
    window.alert(statusMessages);
    else if (howToTell == 0) {
    document.getElementById("stat").innerHTML += statusMessages;
    else if (howToTell == 1) {
    window.alert(statusMessages);
    catch (IOExceptionOutput) {
    window.alert(IOExceptionOutput);
    function initiateCaching()
    var ONLY_DOC = 0;
    var ONLY_ALERT = 1;
    var BOTH_DOC_ALERT = 2;
    try
    if (window.applicationCache)
    var appcache = window.applicationCache;
    printOutput("BROWSER COMPATIBILITYSUCCESS!! AppCache works on this browser.", 0);
    appcache.addEventListener('checking', onCacheChecking, false);
    appcache.addEventListener('cached', onCacheCached, false);
    appcache.addEventListener('noupdate', onCacheNoUpdate, false);
    appcache.addEventListener('downloading', onCacheDownloading, false);
    appcache.addEventListener('progress', onCacheProgress, false);
    appcache.addEventListener('updateready', onCacheUpdateReady, false);
    appcache.addEventListener('error', onCacheError, false);
    appcache.addEventListener('obsolete', onCacheObselete, false);
    else
    document.getElementById("stat").innerHTML = "Failure! I cant work.";
    catch (UnknownError)
    window.alert('Internet Explorer does not support Application Caching yet.\nPlease run me on Safari or Firefox browsers\n\n');
    stat.innerHTML = "Failure! I cant work.";
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
    == Plugins installed
    ==
    *-Shockwave Flash 10.0 r45
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Google Update
    *4.0.50524.0
    *Office Live Update v1.4
    *NPWLPG
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object
    Thanks & Regards,
    Kandarpa Chandrasekhar Omkar
    Software Engineer
    Wipro Technologies
    Bangalore.
    [email protected]
    [email protected]

    We have had this issue many, many times before including on the latest 3.6 rev. It appears that when the applicationCache has an update triggered by a new manifest file, the browser may still use only its local network cache to check for updates to the files in the manifest, instead of forcing an HTTP request and revalidating both the browser cache and the applicationCache versions of the cached file (seems there is more than one). I have to assume this is a browser bug, as one should not have to frig with server Cache-Control headers and such to get this to work as expected (and even then it still doesn't sometimes).
    The only thing that seems to fix the problem is setting network.http.use-cache to false (default is true) in about:config . This helps my case because we only ever run offline (applicationCache driven) apps in the affected browser (our managed mobile apps platform), but it will otherwise slow down your browser experience considerably.

  • Serious bugs in the SR400 gated photon counter LabVIEW drivers

    Hi
    I am developing an application with SR400 and came
    across what I think is a bug in the LabVIEW driver. Essentially, none
    of the VI's allow you to set the preset counters. For instance, if you
    call Read VI and choose mode A, B for preset T, there is no way to
    specify preset T, which means that the count period defaults to some
    factory default, not a situation you want. This might also explain some
    of the timeouts some people are getting to SRQs that come later.
    Further,
    if you look at the block diagram of Read VI, the line selector string
    is set to "CM 0" for two distinct choices of the count mode. This is a
    serious bug. I do not know who wrote this driver, but it does seem, at
    least to me, that they did a rather shoddy job of it. How this driver even got certification to be posted at IDN is something I cannot explain.
    Comments welcome from those that use LabVIEW with SR400 and have used this driver.

    Hi. Dwell time of 2ms is good for me. It would be great if you can send me this file to circumvent the 2000points/measurement. Also, If i understand it right, if I set the Gate to CW, then my gate should always be open for the count period, they why do I have to set the gate parameters at all. I want to change the integration time, but for some reason I am not able to change it in your setup 2.VI at all. I made some changes in setup 2.vi. I removed the setting for channel B as I am not going to use it and I integrated the readchannel.vi into this file. I am not sure if I made a mistake in doing this. Now, I am able to write some data to a file, but I not as I want. If it helps, I am uploading my modified VI file and an example data file (Gate A width is 0.992s, Gate A delay and delay step are 0, Gate A mode is CW, Dwell time is 0.002s).
    Attachments:
    SR400-V.vi.vi ‏125 KB

  • Reader XI - View documents in PDF/A mode - document links not disabled

    I am using Adobe Reader XI and I have the option PDF/A View Mode set as;
    View documents in PDF/A mode: Only for PDF/A documents
    My colleague has the same set up
    We both see the message when opening the same pdf that the 'the file claims compliance with the PDF/A standard...'
    When I open this PDF/A document the hyperlinks within the document still work for me
    When my colleague opens the exact same document the links are all disabled - they are legible and you can hover to see the link, but the links will not work.
    I believe that the PDF/A standard is being correctly applied to my colleague with the PDF/A view mode set as it is... but not for me.
    Are there further PDF/A settings for viewing such content that could impact whether any links will work? Anything that could override the Reader preferences?
    With thanks

    Thanks for answering this one - so we would expect that Reader set to "View documents in PDF/A mode: Only for PDF/A documents" should not disable the links... so the question would then get flipped so that why does someone who has such a setting find that they cannot use the links?
    is there any further setting in Reader which might use that setting but apply it to PDF/A-2, PDF/A-3 instead? I'm not sure I can see linking to external source mentioned in any PDF/A spec - although there is if the PDF tries to use data from a different (non PDF/A) source within the doc...
    If there is no such setting within Reader then I'll haver to look at any other tech surrounding what is happening when a user opens a PDF/A... anything which could change how links are handled... been a bit of a fruitless task so far but if I find anything I'll note it here...

  • Apex4 does not render readonly attribute properly for IE.

    I found that Apex4 renders the readonly attribute with an extra quotation mark for IE. So I get this:
    "readonly="readonly"
    And it doesn't work, obviously. For Firefox, all is good.
    The simplest solution seems to be to just leave the Disabled attribute set to No and manually add "readonly=true" to the "HTML Form Element Attributes" field.

    Hi,
    yes that is a problem on our known issue list http://www.oracle.com/technetwork/developer-tools/apex/40-known-issues-159870.html and will be fixed in our upcoming patchset 4.0.1. Actually the release candidate for this patchset has already been installed on apex.oracle.com. So there you should not be able to reproduce the problem anymore.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Solution for Bug 13412084: RESTRICT PAYMENT: IT SHOULD NOT ALLOW PAYMENT BE

    http://attiqahmed.wordpress.com/2012/03/20/solution-for-bug-13412084-restrict-payment-it-should-not-allow-payment-before-invoice-accrual/

    hello sir Octavio
    Im sorry.. I failed to tell you that our encoder of invoices is separate from the one who entry for payments.
    Therefore, the encoder uses the invoices batches[(N) Invoices>Entry>Invoice Batches] whereas the Paymaster(the one who entered payments?) uses the Payments [Payments>Entry>Payments]
    By the way your suggestion did work to disable the Pay in Full checkbox.. but i decided to get rid of the actions button for the encoder.. and another person will be handling the validation and create accounting having such access.
    So what i wanted is that the paymaster wouldn't be able see among the LOV of invoices at the Payments Form if its not created accounting.
    I wanna make sure that all invoices are created accounting.
    thank you so much for the understanding..:-)
    Emgee

  • ICloud changes my calendar colors.  I am no longer able to pick my own calendar colors.  This is due to some bug on iCloud.  FIX THIS PROBLEM IMMEDIATELY APPLE!!!  THIS IS RIDICULOUS.  iCloud should not force us to pick calendar colors.

    iCloud changes my calendar colors.  I am no longer able to pick my own calendar colors.  This is due to some bug on iCloud.  FIX THIS PROBLEM IMMEDIATELY APPLE!!!  THIS IS RIDICULOUS.  iCloud should not force us to pick calendar colors.  We should be able to pick our own!!!!!

    Same here, Calender keeps reverting to Purple a color I never ever even picked, screw you iCloud, you continue to annoy me and baffle me with your inadequecies

  • Disabled User Password should not be changed

    Hi,
    We have a requirement that only if the user's status is active, then only administartor must be able to change the user password. Admin should not be able to change the password if the user is in disabled state/locked state.How can we achieve this?please sugest...
    Regards
    Vinoth

    Hi,
    We have made an entity adapter which is taking usr login value from User[in Data object manager] and calling our java method which is making connection to OIM database and getting us the status of user.
    Now if the status of user is disabled method is returning true and on true we have associated our error code to it.
    We are executing our entity adapter in pre-update execution.
    Now when we are changing password of any disabled user we are able to see our error code. But what ever update [either first name update, enable] we are running on that user same error code is appearing.
    Plesae suggest/reply.
    thanks

  • How to disable Refresh,Reload in browser and user should not allow to multiple browser sessions ?

    Dear All,
    How to disable Refresh,Reload in browser and end user should not allow to multiple browser sessions in portal.Where we need to configure the settings or any code in masthead or any other component. My server version is 7.4 - SP5 .Please help us.
    Thanks for advance,
    BR,
    Durga Rao.

    Dear all,
    i am able to logoff the click refresh button on keyboard.I am using this code to log off the user into the portal.
    document.onkeydown = function(e)
      var key;
      if (window.event) key = event.keyCode
      else
      var unicode = e.keyCode ? e.keyCode : e.charCode
      key = unicode
      switch (key)
      { //event.keyCode
      case 116: //F5 button
        LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 82: //R button
      if (event.ctrlKey)
    LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 91: // ctrl + R Button
    LSAPI.sessionPlugin.logoff();
      event.returnValue= false;
      key=0;
      return false;
    Thanks.
    But i am unable to control the multiple windows opening the browser.So any one can tell me the how to block the new window and new tab/duplicate tab option.
    BR,
    Durga Rao.

  • ReadOnly attribute not showing

    I'm trying to create two views of a page where one is readonly and another one is editable.
    The form page does the following:
                   <h:commandLink value="Create Record"
                        action="#{Bean.readOnlyAccess}">
                        <f:param name="readOnly" value="false" />
                   </h:commandLink>
                   <h:commandLink value="View Record"
                        action="#{Bean.readOnlyAccess}">
                        <f:param name="readOnly" value="readonly" />
                   </h:commandLink>
    and the corresponding backing bean is able to get the value which I tested with System.out.
    But when the Record page is generated there is no readonly="" in the HTML code at all. I've tried setting <f:param name="readOnly" value="true" /> but that did not make any difference. This is the Record jsf code:
    <h:inputTextarea id="titleSubtitle" value="#{Bean.Record.title}" cols="60" rows="8" readonly="#{Bean.readOnly}"/>
    Is there another method that I can set a readOnly value to this Record page?

    user12846226 wrote:
    According to the HTML specification , the readonly attribute takes values 'yes' or 'no' and not 'true' or 'false', so maybe modifying your code accordingly can solve your problemI applaud your attempt to help, but you are basically repeating what EJP already hinted at and you do it 8 days after the last post has been made. Surely the OP has already solved his/her problem, or else this thread wouldn't have stopped. Be a sport and don't resurrect posts where it isn't necessary; that keeps the forum clean and accessible.

  • Should I disable wi-fi when not using it ? Will this preserve the Battery?

    When I`m at home,should I disable the wi-fi when not using the internet ? Does this preserve the battery?

    http://ipod.about.com/od/iphone3g/tp/iphone-battery-life.htm
    #5 on the list to preserve battery:
    Keep Wi-Fi Off
    The other kind of high-speed network that the iPhone can connect to is Wi-Fi. Wi-Fi is even faster than 3G, though it’s only available where there’s a hotspot (not virtually everywhere like 3G). Keeping Wi-Fi turned on at all times in hopes that an open hotspot will appear is a sure way to drain your battery life. So, unless you’re using it right this second, keep Wi-Fi turned off.
    Find it in Settings -> WiFi -> Slide to Off

  • Who know this bug "ERROR: floating-point constants should not appear"

    anyone know how to solve this bug
    ERROR: floating-point constants should not appear
    Error preverifying class org.javabluetooth.stack.BluetoothStack
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1

    HI,
    it seems that ur using the package "org.javabluetooth.stack.BluetoothStack" in WTK1.0 or 2.0 which does not support floating point. The above package uses float data type. You can download the new version of WTK (2.1) which supports floating points.

  • [svn:fx-trunk] 9324: Fix bug: orientation/verticalAlign/ horizontalAlign properties of TileLayout should not be bindable

    Revision: 9324
    Author:   [email protected]
    Date:     2009-08-14 15:04:23 -0700 (Fri, 14 Aug 2009)
    Log Message:
    Fix bug: orientation/verticalAlign/horizontalAlign properties of TileLayout should not be bindable
    Fix: remove metadata, we were not dispatching events anyway.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22715
    Reviewer: Hans
    Tests run: build
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22715
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/TileLayout.as

    to put it simple, the DataGrid supposely changes the dataProvider on each page (page here is actually the selection in the list. since the list displays only one item at one time, I just called each selection as page) . So, I was thinking to refresh the itemRenderer on each swipe. could be there are any other way to do this so appreciate any help and ideas. Thanks!

  • How do I disable editing of pages in author mode? User should not be able to edit content . Can this

    How do I disable editing of pages in author mode? User should not be able to edit content . Can this be customized on component basis?

    You have to remove modify rights for those users on that page. Component basis is possible but will create ACL complications. Please check http://dev.day.com/docs/en/cq/current/developing/components/boilerplates.html for that.
    Yogesh
    www.wemblog.com

  • Fixed values of dynamic attributes are not displayed for bid response

    Hi
    I have created a bid with dynamic attributes and have weighted the options with fixed values. I publish the Rfx (bid) and all is ok. The problem is that the fixed values are not displaying when doing a bid response.
    We are using SRM 7.0
    Can anyone help?

    No. Not yet. I think it is a bug. You should create an OSS message to SAP and ask them to pay special attention to the following code block:
    Class: /SAPSRM/CL_CH_WD_DODM_DYNATTR
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH
    At the end of the method, look for code context:
    IF lv_object_type = c_qte.
    *Set the Fixed Values Table to Invisible
        lv_visible = abap_false.

Maybe you are looking for

  • [SOLVED] Arch failed to mount /boot

    Hey there, after my btrfs filesystem somehow got corrupted, so it would only mount my "/"-filesystem as read-only, I backed it up with rsync, recreated the partition and then transfered the data back. After that, I was unable to boot anymore with thi

  • Cancellation of billing document with out cancellation of excise invoice

    Dear Sir, I want to control the cancelation of billing doccument. Condition is that with out cancellation of excise invoice there should not be any cancellation of billing document and delivery document. REgards Bharat

  • OSX will not run on my new Seagate 7200 rpm 160GB drive

    I tried 'restoring' to this drive as an external drive but this Macbook will not start up from it. I have been all over the internet and seen where people are using this drive as a replacement internal drive. I partitioned it as one partition and the

  • MAS: resolving collisions in productive system

    Hello experts, I've upgraded my mas productiv system to 50sp11 and now I get the same collsions as in test mas (50sp11). I've already transported the changelist with the resolved collsion from testsystem but I still get this collsions in prod system.

  • Requirement of additional object at query level

    hi all there is a requirement of purchasing group as a characteristics in query level..i am using standard cube 0pur_c01(purchasing data)..can u plz tell me how i shuld go about it.... thanks shalini