How to prevent setBoundingThemes returning null MBR when no data are found

I am using setBoundingThemes method in MapViewer bean to zoom in to query results in a JDBCTheme. It is possible however that the JDBCTheme doesn't contain any data when no rows match the criteria. The result is that the other themes are queried without a filter and the overall map size is used (as the result of the mbr of all themes). This wouldn't be a problem if the theme_min_scale was considered, but it isn't, so all available data are rendered and this takes quite a while. Is there a way to set an alternative query window which will be used in case no rows are returned?
To show the difference:
Using a JDBCTheme with results:
a valid mbr is found:Thu Jun 09 19:44:48 CEST 2005 FINEST [oracle.sdovis.MapMaker] mbr of all bounding themes: java.awt.geom.Rectangle2D$Double[x=5.03750183491323,y=52.05182293319411,w=0.12810743017353943,h=0.08182653361177472]
the resulting query for the (predefined) LOCALROAD theme:Thu Jun 09 19:44:48 CEST 2005 FINEST [oracle.sdovis.theme.pgtp] [ LOCALROAD ]: 5.03750183491323,52.05182293319411,5.165609265086769,52.133649466805885
Thu Jun 09 19:44:48 CEST 2005 FINEST [oracle.sdovis.theme.pgtp] [ LOCALROAD ]: SELECT ROWID, GEOM, 'CSX:L.ALLROADS', NAME, 'CSX:T.ROAD NAME', 1, ID FROM MN_NW WHERE MDSYS.SDO_FILTER(GEOM, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
Using a JDBCTheme without results:
a null mbr is foundThu Jun 09 19:48:34 CEST 2005 WARN [oracle.sdovis.MapMaker] Null MBR resulted from buildDataMBR(themes).
the resulting query for the (predefined) LOCALROAD theme:Thu Jun 09 19:48:34 CEST 2005 FINEST [oracle.sdovis.theme.pgtp] [ LOCALROAD ]: -Infinity,-Infinity,NaN,NaN
Thu Jun 09 19:48:34 CEST 2005 FINEST [oracle.sdovis.theme.pgtp] [ LOCALROAD ]: SELECT ROWID, GEOM, 'CSX:L.ALLROADS', NAME, 'CSX:T.ROAD NAME', 1, ID FROM MN_NW'
and after that the mbr is made up out of all themes, resulting in a map of all available dataThu Jun 09 19:56:19 CEST 2005 FINEST [oracle.sdovis.MapMaker] mbr of all themes: java.awt.geom.Rectangle2D$Double[x=-0.5,y=-2.6605568400000004,w=11.025,h=58.665278322000006]
Of course I could query the database first to find out if there are any geo data available, but I am hoping there's another way. Anybody who can help?
Regards,
Ida

Hi Ida,
I think just the size parameter with null mbr for the bounding theme won't help too much.
We would need a reference point to be used with this size. This point we could get if we query the other themes, but as we don't have a reference mbr (the bounding theme mbr is null) this would be a full query on the other themes.
We will discuss your suggestion of not rendering any theme and raising an exception if the mbr for the bounding theme returns null.
Thanks.
Joao

Similar Messages

  • Callback function may be NULL only when database handles are read-only

    Hi,
    I am getting some errors when trying to run my java code that will try to open a few cursors and join them to fetch the data.
    ath .:/usr/src/db-4.7.25.NC/java/src:/usr/local/BerkeleyDB.4.7/lib/db.jar bdbtest
    MyDbs: Callback function may be NULL only when database handles are read-only
    Error on inventory secondary cursor:
    java.lang.IllegalArgumentException: Invalid argument: Callback function may be NULL only when database handles are read-only
    What does that error mean? How can I resolve it? I am following the sample program and I can't find anything related.
    Here is my code.
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Database;
    import com.sleepycat.db.SecondaryDatabase;
    import com.sleepycat.db.DatabaseConfig;
    import com.sleepycat.db.DatabaseType;
    import java.io.FileNotFoundException;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.SecondaryConfig;
    import com.sleepycat.bind.EntryBinding;
    import com.sleepycat.bind.serial.SerialBinding;
    import com.sleepycat.bind.tuple.TupleBinding;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    public class bdbtest {
    public static void main(String args[]) {
    SecondaryDatabase myDatabase = null;
         Database primDB = null;
         Cursor cursor = null;
    try {
    // Open the database. Create it if it does not already exist.
    DatabaseConfig dbConfig = new DatabaseConfig();
         dbConfig.setErrorStream(System.err);
    dbConfig.setErrorPrefix("MyDbs");
         dbConfig.setType(DatabaseType.BTREE);
    dbConfig.setAllowCreate(true);
         SecondaryConfig mySecConfig = new SecondaryConfig();
         mySecConfig.setErrorStream(System.err);
    mySecConfig.setErrorPrefix("MyDbs");
         mySecConfig.setType(DatabaseType.BTREE);
    mySecConfig.setAllowCreate(true);
         primDB = new Database("/tmp/bdb_ca_db.db",
    "bdb_ca_db",
    dbConfig);
    dbConfig.setAllowCreate(true);
    myDatabase = new SecondaryDatabase("/tmp/bdb_ca_sdb.db",
    "ca_sdb_res_alias",
    primDB,
    mySecConfig);
         String res ="in-1";
         SecondaryCursor secCursor = null;
         DatabaseEntry searchKey =
    new DatabaseEntry(res.getBytes("UTF-8"));
         DatabaseEntry foundKey = new DatabaseEntry();
    DatabaseEntry foundData = new DatabaseEntry();
         secCursor =
    myDatabase.openSecondaryCursor(null, config);
    // Search for the secondary database entry.
    OperationStatus retVal =
    secCursor.getSearchKey(searchKey, foundKey,
    foundData, LockMode.DEFAULT);
         if (retVal == OperationStatus.SUCCESS){
              System.out.println("succ");
         }else {
              System.out.println("fail");
    while (retVal == OperationStatus.SUCCESS) {
    String keyString = new String(foundKey.getData(), "UTF-8");
    String dataString = new String(foundData.getData(), "UTF-8");
    System.out.println("Key | Data : " + keyString + " | " +
    dataString + "");
    secCursor.getNextDup(searchKey, foundKey,foundData, LockMode.DEFAULT);
         } catch (Exception e) {
    System.err.println("Error on inventory secondary cursor:");
    System.err.println(e.toString());
    e.printStackTrace();
         finally {
    // Make sure to close the cursor
              try {
              cursor.close();
              }catch (com.sleepycat.db.DatabaseException e) {
    System.out.println("All done.");
    }

    Hi,
    The error is because either the primary database or the secondary database is configured as read only and the callback to create the secondary keys is null. A quick glance of the code, it appears as if you did not set up the secondary database correctly. In the Getting Started Guide for JAVA API chap 10, we have detailed information on what needs to be done as well as a code example. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/index.html and look for Chap 10.
    regards,
    Mike Brey, Oracle Berkeley DB

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • Does Roaming data syncs for the first time when app data are in download and installation process?

    Hi,
    I will store user Id in "HighPriority" Roaming data. When user will install app in another computer (with the same Microsoft Account), app will get user Id from Roaming data. Then I can implement all data sync over my cloud service.
    There are 2 scenarios:
    1. User downloads and installs app in another computer, but roaming data syncs/downloads for the first time only after several minutes -
    It's bad for my app :(
    2. User downloads and installs app in another computer and roaming data syncs/downloads at the same time (then I can get user Id immediately)
    - Its great for my app :)
    Which scenario is real in practice?
    Does Roaming data syncs for the first time when app data are in download and installation process?

    Umm no not that i remember. It just randomly started happening. I reformatted the hard drive for mac (journaled) but it was working fine since i did it until now

  • How to show NULL value when import data into excel

    when retrieve data from sql server and import these data into excel.
    data source  is like : select a ,b c from tab
    if a,b,c is nullable. when import these NULL value into excel, it becomes blank value, there is nothing in the excel cell.
    if i don't want to use select isnull(a,'NULL') as a to convert the values.
    what's else can i do to make it? is there a way to prevent changing the NULL to blank ?
    or is there an easy solution to replace all the blank value to NULL in the excel ?

    help me ~

  • How to prevent a Return to be posted on a different month

    Delivery Order is created in February and the current date is March, is there a transaction notification code that can prevent the Return to be posted in March? If the date of the Return is back dated to Feb then the transaction notification will allow the posting.
    Thank you in advance on those that will reply to this question.

    Hi,
    Try:
    IF @object_type = '16' and @transaction_type = 'A'
    BEGIN
    IF EXISTS (SELECT T0.DocEntry
    FROM dbo.ORDN T0
    INNER JOIN DLN1 T1 On T1.TrgetEntry = T0.DocEntry
    WHERE DateDiff(MM,T1.DocDate,T0.ShipDate)>1 AND T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    select @error = 16,
    @error_message = 'You are not allowed to post to current month.'
    END
    END
    Thanks,
    Gordon

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How to prevent OLAP from doing unneccessary aggredations during data load?

    Hi,
    I'm trying to create a relatively simple two-dimensional OLAP cube (you might want to call it "OLAP square"). My current environment is 11.2EE with AWM for workspace management.
    One dimension is date, all years->year->month->day, the other one is production unit, implemented as a hierarchy with a certain machine at the bottom level. The fact is defined by a pair of  bottom-level values of these dimensions; for instance, a measure is taken once a day from each machine. I would like to store these detailed facts in a cube together with aggregates, so they could be easily drilled down to without querying the original fact table.
    The aggregation rules are set to "Aggregate from level = default" (which is day and machine respectively) for both of my dimensions, the cube is mapped to fact table with dimension tables, the data is loaded, and the whole thing is working as expected.
    The problem is with the load itself, I noticed it being too slow for my amount of sample data. After some investigation of the issue I found out a query in cube_build_log table, a query the data is actually being loaded with.
    <SQL>
      <![CDATA[
    SELECT /*+  bypass_recursive_check  cursor_sharing_exact  no_expand  no_rewrite */
      T4_ID_DAY ALIAS_37,
      T1_ID_POT ALIAS_38,
      MAX(T7_TEMPERATURE)  ALIAS_39,
      MAX(T7_TEMPERATURE)  ALIAS_40,
      MAX(T7_METAL_HEIGHT)  ALIAS_41
    FROM
      SELECT /*+  no_rewrite */
        T1."DATE_TRUNC" T7_DATE_TRUNC,
        T1."METAL_HEIGHT" T7_METAL_HEIGHT,
        T1."TEMPERATURE" T7_TEMPERATURE,
        T1."POT_GLOBAL_ID" T7_POT_GLOBAL_ID
      FROM
        POTS."POT_BATH" T1   )
      T7,
      SELECT /*+  no_rewrite */
        T1."ID_DIM" T4_ID_DIM,
        T1."ID_DAY" T4_ID_DAY
      FROM
        RI."DIM_DATES" T1   )
      T4,
      SELECT /*+  no_rewrite */
        T1."ID_DIM" T1_ID_DIM,
        T1."ID_POT" T1_ID_POT
      FROM
        RI."DIM_POTS" T1   )
      T1
    WHERE
      ((T4_ID_DIM = T7_DATE_TRUNC)
        AND (T1_ID_DIM = T7_POT_GLOBAL_ID)
        AND ((T7_DATE_TRUNC)  IN  < a long long list of dates for currently processed cube partition is clipped >  ) ) ) 
    GROUP BY
      (T1_ID_POT, T4_ID_DAY) 
    ORDER BY
      T1_ID_POT ASC NULLS LAST ,
      T4_ID_DAY ASC NULLS LAST ]]>>
    </SQL>
    Notice T4_ID_DAY,  T1_ID_POT in the top level column list - these are bottom-level identifiers of my dimensions, which means the query isn't actually doing any aggregation here, as there is only one fact per each pair of (ID_DAY, ID_POT).
    What I want to do is to somehow load the data without doing this (totally useless in my case) intermediate aggregation. Basically, I want it to be something like
    SELECT /*+  bypass_recursive_check  cursor_sharing_exact  no_expand  no_rewrite */
      T4_ID_DAY ALIAS_37,
      T1_ID_POT ALIAS_38,
      T7_TEMPERATURE  ALIAS_39,
      T7_TEMPERATURE  ALIAS_40,
      T7_METAL_HEIGHT  ALIAS_41
    FROM etc...
    without any aggregations. In fact, I can live even with this loading query, as the amounts of data are not that large, but I want things to work the right way (more or less ).
    Any chance to do it?
    Thanks.

    I defined a primary key over all the dimension keys in the fact table but for some reason the build still uses an aggregation. Probably because the aggregation operator for the cube I'm currently playing with is actually set, and I don't see a way to undefine it from the UI toolbar you are referring to. This is a piece of mapping section from the workspace file I exported using AWM.:
    <CubeMap
          Name="MAP1"
          IsSolved="False"
          Query="POT_BATH_T"
          AggregationMethod="SUM">
    Looks like the build aggregates because it is clearly told to so by the AggregationMethod attribute? Any way to override it?

  • When copying folder to external drive, "An older item named.." appears even when the dates are the same

    When I am manually backing up folders from Macbook Pro Mountain Lion to an external drive, the dates for folders are being misread? It will say "An older item named.." every time. I checked the dates and times and they are the same on Mountain Lion and the External drive for the files and the folders. It should send me back a message saying "An item named “” already exists in this location. Do you want to replace it with the one you’re moving?"
    When I try to move an individual file to the external drive and the dates are the same, I get the correct message - "an item named "" already exists..." so the issue is only with the folders.
    I have only had this issue since the update to OS 10.8. Any Suggestions? thanks

    The modification date of a file is stored internally in seconds. The Finder rounds off to the nearest minute. If the age of two files differs by less than 30 seconds, they'll seem to have the same modification date in the Finder.

  • PS Forecast Dates are not synchronized when Cproject Dates are updated

    hello Experts,
    I did all necessay customizing for DFM synchonization but when i modify date in Cproject and i check the project defintion in "CJ20N" , dates are not updated.
    Do you have any idea why? Project defintion has a statut "PREL".
    Thank you in advance,
    Amal

    Is there a page online demonstrating this problem? I think without taking a look, we might speculate wildly and waste a lot of your time...
    One thing that turned on in Firefox 29 is support for &lt;input type="number">. If any of your date fields were using type="number" as a way to be scripted or styled specially, that may no longer work correctly in Firefox 29 and higher.
    This article might be useful:
    https://developer.mozilla.org/Firefox/Releases/29/Site_Compatibility

  • How to prevent popup dialog from closing when commandbutton clicked

    Hi,
    I have a af:commandButton inside a popup dialog and the button action calls a method in backing bean. When this button is clicked I would like to run the method in backing bean and return control to the popup window. The method seem to run fine but the popup dialog closes automatically. Is there a way to prevent popup dialog from closing for this action?
    Thank you
    Kevin

    Hi Frank,
    Thanks for the link. I am not sure how to use this in my case. Following is part of what I am trying
    <af:popup ...>
    <af:dialog>
    <af:form usesUpload="true">
    <af:inputFile ..../>
    <af:commandButton text="upload" action="#{backingbean.uploadAction}"/>
    <af:outputText value="#{backingbean.filename} was successfully uploaded"/>
    </af:form>
    </af:dialog>
    </af:popup>
    When user clicks upload button I want to display a message that the file was successfully uploaded and keep the popup window open. But what happens now is once the file upload completes, the popup window closes automatically. This file upload part is not a must, user could skip doing the upload and instead input some text in a text area below (not shown in the code above). User could also just click cancel and exit the popup any time, so there is no mandatory field that I could check before closing the popup. Is there something I could do for this?
    thanks
    Edited by: user10720929 on Dec 23, 2008 10:36 PM

  • How to prevent the regular password prompts when watching a movie on my MacBook Air?

    Hello everyone.
    I recently started renting movies from the iTunes store and watched them on my MacBook Air since I don't have an appleTV. (In fact on my TV connected via HDMI cable to the MacBook but I think that doesn't change the cause)
    Now every now and then a automatic password prompt kicks in overlaying the movie, so I have to stand up each time and type in the administrator password in the middle of the movie. This happens maybe about every 30-45 mins. Needless to say this is extremely unpleasant when watching a movie. Unfortunately I cannot tell you which programm causes the prompt since I always close all other programms other than iTunes.
    Is there a way to temporarily prevent all automatic password prompts?
    I hope you can help me,
    Greetings jonezdotcom

    This is taken from Mac Help.  It should guide you in solving your issue.
    Changing the way users log in
    You can require users to enter a password to log in to your computer, or you can turn on automatic login, which automatically logs in a specified user each time the computer starts up.
    Automatic login is useful if you’re the only person who uses your computer, and the computer is always in a safe and secure place. If you have more than one user account on your computer, or if you’re concerned about the security of information on your computer, you should require users to log in with a password. Automatic login is not available for accounts that are using FileVault encryption.
    If you require users to log in, you can change what they see in the login window. You can show a list of users with a picture next to each name and a place to enter the password, or require users to enter both their user name and password.
    To change the way users log in:
    Choose Apple menu > System Preferences and click Accounts.
    Open Accounts preferences
    Click the lock icon to unlock it, and then type an administrator name and password.
    Click Login Options.
    Do one of the following:
    To require users to log in whenever the computer starts up, choose Off from the “Automatic login” pop-up menu.
    To have the computer automatically log in to a particular account when the computer starts up, choose the account from the “Automatic login” pop-up menu, enter an administrator password, and click OK.
    IMPORTANT: Automatic login allows anyone to get immediate access to your computer simply by restarting it. If you turn on automatic login, make sure the computer doesn’t automatically log in to an account with administrator privileges.
    Next to the ”Display login window as,” select how you want the login window to appear:
    To have users select an account from a list in the login window, select “List of users.”
    To require users to type their user account name and password, select “Name and password.”
    To show each user’s password hint, select the “Show password hints” checkbox.
    If you turn on automatic login for yourself, the computer opens your account when it starts up. If you log out, other users see a login window to log in to their user accounts.
    The Login Options pane of Accounts preferences
    Use the Login Options pane of Accounts preferences to change the way the login window behaves to be more secure or set up the way users will log in to their accounts
    PREFERENCE EXPLANATION
    Automatic login
    To have the computer automatically log in to an account at startup, choose the account from the pop-up menu. This is less secure than requiring users to log in, since it allows anyone to use the computer just by turning it on.
    To require users to select an account and enter a password to log in, choose Off from the pop-up menu.
    Automatic login is not available for accounts that are using FileVault encryption.
    Display login window as
    Select “List of users” to have users choose their accounts from a list in the login window.
    Select “Name and password” to require users to type their name and password in the login window.

  • How to prevent degradation of image quality when pasting for collage?

    I am trying to do a collage (of family heirloom old pharmacy jars and bottles) from – eventually – about a dozen separate images in Photoshop CS6.  (A variety of sizes, resolutions, qualities and file types will go into the collage, but I wish to retain the image quality of each component at its original level or very close to the original level, even those in some cases the original quality is marginal.)
    I have set up in Photoshop a “background document” at 300 dpi of the right dimensions to paste into my InDesign document (5.1 X 3.6 cm)
    I have tried >six approaches, all of which have resulted in a degradation of the subsequently pasted-in image (not just slight, but very obvious).
    Clearly I’m missing something fundamental about image quality and handling images so that degradation is minimised or eliminated.
    (1) (1)   Using an internet video as a guide – using Mini Bridge to open all the images in PS6 as tabs along the top of the workpage.  Then dragging the first one into the base document.  It comes across huge – ie I only see a small fraction of the image.  Any attempt to Edit/Transform/Scale (to 14% of the pasted image, which in this case is a jpg of 3170 x 1541 at 1789 dpi, 4.5 x 2.2 cm) results in an image that looks horribly degraded compared with what I pasted (open in another window).
    (2)   (2) Same thing happens if I have each image as a new layer on top of the base document.
    (3)  (3)  I tried changing the image that I had put into Layer 2 into a Smart Object and then resized it.  No further ahead – it still looks horrible.
    (4) using a different image [an 800 dpi JPG 3580 x 1715  Pixels, print size (from dpi) 11.4 x 5.4 cm which despite those parameters is of barely acceptable quality] I have tried (a) changing the resolution to 300 dpi, (b) keeping the number of pixels the same (which results in a dpi of over 3000 but doesn't fix the problem; (c) changing the dimensions to a length of 3 cm [about right for the collage] .... but no matter what I do, by the time the image is positioned correctly on the layer, the image quality has gone from barely acceptable to absolutely horrible. That usually happens during the final resizing (whether by numbers or shift-dragging the corners of the image).
    Grateful for any step-by-step strategy as to how best to accomplish the end – by whatever means.  (Or even in a different program!).  Basically, even though I've used images for many years in many contexts, I have never fundamentally understood image size or resolution to avoid getting into such messes.  Also, I'm on a very steep learning curve with Photoshop, InDesign and Illustrator all at the same time - these all seem to handle images differently, which doesn't help.  [Not to mention MS Publisher, which I'm locked into for certain other things...]

    For the individual images, don't worry about the ppi or as you call it dpi (ppi is the correct term BTW) only worry about the pixel dimensions. If the pixel dimensions gets too low, it will look horrible as there is not enough data to work with.
    Therefore the final document that will house all the other images must be large enough in pixel dimensions to handle the smaller images at a high enough dimension that they will look good.
    That being said, if you can load your images in as smart objects as any scaling that takes place samples the original sized document. Making it possible to scale it down to a size that is barely visible and then reset the size back to where it was and have no loss of data.
    Where the ppi will come into play is when you are ready to print the final document, that is when the ppi will tell the printer at what size to print the document on the page.
    If your collage will span more than one page, you may want to do this in InDesign. All images are linked to their respective container (similar process as smart object in theory) Though I beleive smart objects are embedded which is debatable.
    In both InDesign and Illustrator, scaling the image in the document affects the ppi of the image, scaling down would increase the ppi whereas scaling upward would decrease the ppi as the number of pixels (the pixel dimension) has not changed.
    With photoshop, you have a choice, when scaling the entire document, you have the option to resample the image, doing so affects the pixel dimension and in that instance would degrade the image when scaling downward and bluring the image when scaling up. As photoshop is removing pixels when scaling down and guessing the neighbor pixels should be when scaling upward.
    But, when resampling is off, the pixel dimensions do not change and therefore there is no degration or bluring.
    Why this happens has to do with simple math.
    inches x ppi = pixels
    Knowing any two of the above forumula will give you the third.
    When resampling is enabled, the pixels can change and when it is disabled, it is fixed so only the other two values can change.

  • How to prevent Cell from getting focus when I click on a cell in JTable

    Hi,
    I have a new problem which I did not have when using jdk1.3. I have a non editable JTable. Now whenever I select a row the row gets highlighted - which is ok but at the same time the cell on which I click ( to select the row ) also gets focus.
    Previously I used to extend JTable and override the isManagingFocus method to return false. But now it doesnt seem to work
    What should
    Thanks
    --J                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Well, I'm still using JDK1.3 and I don't get the behaviour you describe.
    When isManagingFocus is true then using the tab key will cause focus to move from cell to cell within the JTable and focus will never leave the JTable.
    When isManagingFocus is false then using the tab key will cause focus to move the the JTable to the next component on the JFrame.
    In both cases once focus is on the JTable an individual cell is always highlighted to indicate it has focus.
    The question is if your program only cares which row has been selected, why do you care if an individual cells appears to have focus?

  • How to Prevent CacheStore from Getting Called when Loading from DB

    Hi,
    I have a Cache with WriteBehind enabled. The issue is when I'm initializing the Cache from its Persistence Store (SQL Server 2005) I dont want it to call its CacheStore implementation. In the coherence book written by Alexander Seovic it recommends using another Cache to control writing to different Caches, sort of like a global flag, but that will just work in a WriteThrough scenario and not in a WriteBehind. One of my theories is to use a MapTrigger in which when i'm loading from the db I intercept the call and tell the object not write to the DB, maybe through writing directly to the Backing Map though i'm not sure if writing to the BackingMap prevents the Calling of the CacheStore. Please let me know. Tks.

    Hi user13402724,
    The documentation covers a scenario like this here: http://download.oracle.com/docs/cd/E14526_01/coh.350/e14509/appsampcachestore.htm#sthref512
    JK

Maybe you are looking for

  • Get an E-Mail-Notification if there is a alert for a SAP-System in DSWP

    Hello, how can i get an E-Mail-Notification when there is a alert in a SAP-System? I know that alerts are shown in the transaction dswp under System Monitoring but exists a alternative to get these alerts via E-Mail? In the transaction rz21 autoreact

  • I can not burn a DVD-R in my Imac!

    Error: The burn to the OPTIARC DVD RW AD-5690H drive failed. The disc drive did not respond enquiry.c and can not recover or retry.

  • Need to uninstall Boot Camp to get Win7 licence to work with VirtualBox?

    I installed Win7 using Boot Camp a few days ago. I find it a hassle rebooting each time I want to switch systems, and now wish to try VirtualBox. Do i need to uninstall Win7 on Boot Camp (or delete the whole chunk) before Win7 will work on VirtualBox

  • Ineed a music player for E51 that remembers the tr...

    Hi. I like my E51 apart from a few things. One of the worst is that the music player will not remember the track position when you exit like every other MP3 player in the world. Is there a 3rd party application I can use as a player that will remembe

  • J2EE engine will not start

    Hi experts. J2EE engine will not start.  Below is the lower section of the trace.  I'd appreciate help with interpretation as I am a NW newby. I just installed an J2EE key in tcode SLICENSE for our developer's subscription NW 7.0 instance.  Another t