SubTabLayout problem with PPR (bug?)

Hello,
I'm using JDev10.1.2 and found out that subTabLayout does not respond to the partial page rendering (PPR) as one would expect.
In my example there is simple subtabs switching that does not renders both subtabs, only upper one is changing.
Correct behavior can be achieved if using fireAction instead of firePartialAction.
Is this a bug?
Example:
<subTabLayout>
  <contents>
    <messageStyledText text="${sessionScope.subTabIndex}" prompt="Selected tab:" id="message"/>
  </contents>
  <subTabs>
    <subTabBar selectedIndex="${ui:defaulting(sessionScope.subTabIndex, '0')}" id="subtabbar">
      <contents>
        <link text="Link1">
          <primaryClientAction>
            <firePartialAction event="link1" targets="subtabbar message"/>
          </primaryClientAction>
        </link>
        <link text="Link2">
          <primaryClientAction>
            <firePartialAction event="link2" targets="subtabbar message"/>
          </primaryClientAction>
        </link>
      </contents>
    </subTabBar>
  </subTabs>
</subTabLayout>
<handlers>
  <event name="link1">
    <set property="subTabIndex" target="${sessionScope}" value="0"/>
  </event>
  <event name="link2">
    <set property="subTabIndex" target="${sessionScope}" value="1"/>
  </event>
</handlers>

Hello,
I'm using JDev10.1.2 and found out that subTabLayout does not respond to the partial page rendering (PPR) as one would expect.
In my example there is simple subtabs switching that does not renders both subtabs, only upper one is changing.
Correct behavior can be achieved if using fireAction instead of firePartialAction.
Is this a bug?
Example:
<subTabLayout>
  <contents>
    <messageStyledText text="${sessionScope.subTabIndex}" prompt="Selected tab:" id="message"/>
  </contents>
  <subTabs>
    <subTabBar selectedIndex="${ui:defaulting(sessionScope.subTabIndex, '0')}" id="subtabbar">
      <contents>
        <link text="Link1">
          <primaryClientAction>
            <firePartialAction event="link1" targets="subtabbar message"/>
          </primaryClientAction>
        </link>
        <link text="Link2">
          <primaryClientAction>
            <firePartialAction event="link2" targets="subtabbar message"/>
          </primaryClientAction>
        </link>
      </contents>
    </subTabBar>
  </subTabs>
</subTabLayout>
<handlers>
  <event name="link1">
    <set property="subTabIndex" target="${sessionScope}" value="0"/>
  </event>
  <event name="link2">
    <set property="subTabIndex" target="${sessionScope}" value="1"/>
  </event>
</handlers>

Similar Messages

  • Problem with PPR in ADF

    I have a problem with Partial Page Refreshing in ADF faces. what my requirement is I have Table with two cells. One cell contains the ADF Tree component. This tree component can expand their children. If you click any of the tree component then the details of that component displayed on the another cell. I want to display contents with out refreshing the entire page.

    let`s give you what i did :
    I adding two dataPage ,First one for browse employee and second one for deleting an employee .
    So, i did same what is write in a bove link for deleting
    but when i run it :
    first browse the employee
    Then when click the link of delete it is go to DataPage that`s name( Delete employee) .So , when click the button delete
    it is return to the first DataPage(browse employee)
    and you will see that row is deleting but when go to the DataBase
    you will see the row not Deleting.

  • Problem with create_collection_from_query (bug?)

    Hi all,
    I seem to be having a wierd problem with CREATE_COLLECTION_FROM_QUERY.
    I'm using LDAP (AD) Authentication, and I stole the ldap_query() function out of John Scott's book.
    I have an after authentication process where I query the LDAP to extract extra information from AD to populate/update a local user repository table. With most users, this all works fine. Howevere, with account I have, it isnt' populating the collection and returning 'NO DATA FOUND'.
    Early in the process, I take the userid and password to create a string which I call v_string.
    Then, I call:
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (
    p_collection_name => 'MAIN_MENU_COLLECTION',
    p_query => 'SELECT attribute_name, attribute_value
    FROM table (ldap_query ('''
    || v_string
    || '''))'
    As I said, this works fine for all users so far except one, which has a hyphen in it "-". Is there some kind of 'behind the scenes' magic happening with create_collection_from_query that allows the collection to be created but not populated? If I run the ldap_query from SQL (and supply the right credentials), it works as expected and returns around 8 rows. But, when I try to use it for a collection for this one user account, the collection is created but no members exist for it.
    Thanks,
    Bill Ferguson

    For some reason I am still having some wierd problems, and evidently it is not restricted to accounts with a hypen.
    Here is what I've discovered and done so far.
    I went into AD and created a new test user account without a hypen. I then tried to login as that new user and while I got into the application, nothing was inserted into foo (per John's suggestion above). NOTE: Just to make sure nothing is being carried over, I always stop and then restart a new browser instance.
    I then tried logging in as myself. Succes all the way around. (stop and restart browser)
    I tried again as myself with a bad password. No luck, got the 'Invalid Credentials' message. Tried with good password, it works. (stop and restart again)
    I tried with the new test account without a hyphen. Got into application, but nothing in foo. (stop and restart)
    I tried with my 'hypenated' account. Same thing, got into application, but nothing in foo. (stop and restart)
    I tried the same two as above, but with bad passwords. Got the 'Invalid Credentials' message, then with real password, was able to get in but nothing in foo.
    Added in some logging routines and other tests into the post-authentication process. When it fails, it's because :P101_PASSWORD is null. For my regular account that works, no message is returned.
    So, I'm really confused now. Obviously it is authenticating, since I don't get the 'Invalid Credentials' message, so why is :P101_PASSWORD somehow getting nulled out for some account logins (after authenticating), but not others?
    Here is the beginning of my post authentication process:
    DECLARE
       v_usercode   PLS_INTEGER;
       v_section    VARCHAR2 (1000) := NULL;
       v_test       VARCHAR2 (1000) := NULL;
       v_pwd        VARCHAR2 (20);
       v_string     VARCHAR2 (1000);
       bresult      BOOLEAN := FALSE;
    BEGIN
       BEGIN
          v_pwd := :P101_PASSWORD;
          IF LENGTH (v_pwd) IS NULL
          THEN
             log_error (' 1. authentication, null password',
                        SQLCODE || ' - ' || SUBSTR (SQLERRM, 1, 3900));
          END IF;
       EXCEPTION
          WHEN NO_DATA_FOUND
          THEN
             log_error (' .5. authentication, begin, NO_DATA_FOUND error',
                        SQLCODE || ' - ' || SUBSTR (SQLERRM, 1, 3900));
          WHEN OTHERS
          THEN
             log_error (' .5. authentication, begin,  others error',
                        SQLCODE || ' - ' || SUBSTR (SQLERRM, 1, 3900));
       END;
       BEGIN
          DELETE FROM   foo
                WHERE   username = v ('APP_USER');
       EXCEPTION
          WHEN NO_DATA_FOUND
          THEN
             log_error (' 2. authentication, delete, NO_DATA_FOUND error',
                        SQLCODE || ' - ' || SUBSTR (SQLERRM, 1, 3900));
          WHEN OTHERS
          THEN
             log_error (' 2. authentication, delete,  others error',
                        SQLCODE || ' - ' || SUBSTR (SQLERRM, 1, 3900));
       END;
       BEGIN
          INSERT INTO foo
             SELECT   attribute_name, attribute_value, v ('APP_USER')
               FROM   table (ldap_query (v ('APP_USER'), v_pwd)), DUAL;So, right away I'm checking for if :P101_PASSWORD is null and when it's not working, it says it is null, but somehow it is also authenticating correctly.
    I'm totally confused (once again). Any help or advice?
    Thanks,
    Bill Ferguson

  • Problems with GREATEST() = Bug?

    I'm working on a view and got a problem with the GREATEST()-function - I'm using 11.2.
    Below I#ve past some code with comments which should explain the problem - but you're welcome to ask any more questions ;)
    -- first executeing the query separated to check it return valus   2.
    (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_hr WHERE box_id IN (SELECT...WHERE id=4) );   
    -- returns: 01.01.71 00:00:00,000000000
    (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_10m WHERE box_id IN (SELECT...WHERE id=4) );
    -- returns: 11.08.10 16:00:00,000000000
    -- therefore i assume if i use GREATEST() with this both timestamps ist would return the second one
    SELECT GREATEST(
            to_timestamp('01-01-1971 00:00:00,000','dd-mm-yyyy hh24:mi:ss,ff'),
            to_timestamp('11-08-2010 16:00:00,000','dd-mm-yyyy hh24:mi:ss,ff')
    ) FROM dual;
    -- do that job like expected
    -- BUT
    SELECT GREATEST(
            (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_hr WHERE box_id IN (SELECT...WHERE id=4) ),
            (SELECT nvl(max(acqtime),to_timestamp('01-01-1971','dd-mm-yyyy')) FROM rfm_meas_10m WHERE box_id IN (SELECT...WHERE id=4) )
    ) FROM dual;
    -- returns the 1971 timestamp wich is the wrong result!
    -- any ideas?alternativly you can view the code on pastebin: http://pastebin.com/uGVDUMuU
    I want to know if this behaviour of GREATEST() is on purpose or if I did some mistake or anything else!?
    Thanks!

    As you read my examples above I worked with two tables (rfm_meas_hr and rfm_meas_10m). In a job i take the timestamp from rfm_meas_hr and put it into the rfm_meas_10m table. And at this point the full year information gets lost!
    Code example from that job:
    FOR meas IN
                SELECT
                    to_timestamp(MIN(acqtime),'dd-mm-yyyy hh24:mi:ss,ff3') AS acqtime,
                FROM
                    rfm_meas_hr
                WHERE
                GROUP BY
                ORDER BY
                    acqtime
    LOOP
                -- each result row containing summarized data is accesible on "meas"
                INSERT INTO rfm_meas_10m VALUES meas;
    END LOOP;The acqtime which is inserted to rfm_meas_10m contains the lost year-information, but in the acqtime-column of rfm_meas_hr are the full information avaiable. I've tested this with:
    SELECT to_char(acqtime,'dd-mm-yyyy hh24:mi:ss,ff') FROM rfm_meas_hr;
    -- and compare it to
    SELECT to_char(acqtime,'dd-mm-yyyy hh24:mi:ss,ff') FROM rfm_meas_10m;So may be it worth a try to leave out the to_timestamp-call in the select inside of the job code?! .. I'm going to try.
    [edit]
    @ user503699      
    No .. it produces a year like: 0010 ;) But as we see the error might not be a problem with LEAST/GREATEST anymore.
    Edited by: Stede on 12.08.2010 05:24

  • I have a major problems with foxfire bugs/ glitches on my windows XP and with windows vista. I cannot get to sties it wont let me get through. I am frustrated and tried deleting cookies still have the same problem. How do I fix this?

    I try to go to my Hotmail email and it wont let me go through. so I deleted cookies and still the same issue with my home page. It will not go to home page it just goes to a blank page. I do not want to constantly deal with this problem. You have bugs and everything else in this browser. Please work out the bugs.
    Thanks

    That may be an incompatibility between Hotmail and Firefox 10.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    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

  • Problem with PPR in Jdeveloper 11g

    Hi All,
    I'm working with the Jdeveloper 11g.
    My problem is I have a command button/ Command link in a jspx page. Whenever I click on the command button or command or any action generating components the whole page is getting refreshed(PPR).
    I wrote some internal logic in the constructor so as to display the tree. It is calling the constructor again and again when I'm clicking on the sub nodes of the tree. I think the entire page is getting refreshed and the methods are calling again and again.
    Is there any way to overcome this problem.
    Could any one help me out.
    Thanking you,
    regards,
    Satish.

    Satish,
    I need more information to triage this issue. Do you have the partialSubmit attribute set to "true" on the command component? Does your JSPX contain an <af:document> tag?
    --RiC                                                                                                                                                                                                                                                                                                                                                                                               

  • Logic Pro9,serious problem with projects: bug?

    I started working with Studio Logic suite one month ago.
    I'm very happy of it, but I have a (serious) problem.
    Sometimes (totally random) I open a project and appear a message "Some Audio files changed lenght", and I find many recorded tracjs disappeared or changed.
    In three cases I had to cancel the project and start from the beginning.
    The last time fortunately I put a backup on another hard-disk, so I cancelled the projects and copied it from the backup.
    How can I solve it?
    I use Logic Pro 9 on Macbook with Snow Leopard
    Please, help me
    PS:after the message appear, even if I close without saving and re-open the files the problems it's still the same.
    Even in backups made from Logic.
    My backup was the old folder copied on another hd
    Message was edited by: ghigo85

    Ok, found a solution so that you can work just on your old user account.
    In the new user account go to
    user (your username for the new account)/library/preferences
    Copy the files
    com.apple.logic.pro.cd
    com.apple.logic.pro.LSSharedFileList.plsit
    com.apple.logic.pro.plist
    then go to to your home (c) drive, or Macintosch HD or whatever you have called it, then go to
    Users
    and the paste the three items into the folder called
    Shared
    Then log out of the new account and into the old one, go to your main boot (c) drive again, to Users again, and to the Shared folder you have just pasted the items into, copy the three, then go to
    user (your username for the OLD account)/library/preferences
    ... and paste the three files (you will be asked if you want to replace them, just answer yet), and hey presto it should all work fine.

  • Problem with todays bug-fix

    I downloaded the update this morning and now cannot access mail on my Ipad. Safari is fine. When presssing the Mail button the page opens then closes again straight away. If the Ipad has been asleep or switched off for a while the page stays open 5 or 10 seconds but I don't think it updates. Try again and the page closes immediately. Is it just me or are others finding the same problem today, please? How do I unload toady's 'fix'?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    You could also consider deleting and re-adding the email accounts.

  • MicroSD cashing problem with Symbian belle update

    It’s only been 14 hours since I have updated to Symbian Belle, but after a short period of usage I noticed that my music would lag for 0.5 - 3 seconds, sometimes once, sometimes a couple of times a song.
    My song library was located on my MicroSD 16GB class2 card that has worked in this N8-00 for the full 1.5 years that I have it. I now have formatted the internal and external drives and put in the same one folder of music. I listened to the songs and what I found out is that the songs on my MicroSD are acting up. The phone completely locks up for 0.5 - 3 seconds and continues. Its seems to happen moor to songs with an higher than 256kbps bitrate.
    My problem with this BUG, is that it now happends with the update to Bella, and not to Anna or befor, therefor concluding that the software is not optimized as much for MicroSD card use.
    Have you have the same problem since Belle, using an N8 or other device? Please post below.
    3210, 3310, 8310, 7250i, N95, N95-8gb, N96, N8

    Twinklestar wrote:
    Hi Rayhipkiss,
    I tried all sort of ways for N8 0599255 variant but nokia 3.3.86 doesn't show any Belle update
    Well, I can definitely confirm that the Belle update is available for your product code. Other users facing the same issue mentioned that they had to un-install Nokia suite and re-install a fresh copy. You may also need to disable any firewall active on your PC (try this first before re-installing Nokia Suite). 
    All the best.
    Ray. 

  • Problem with 2 View Objects based on One Entity -Probably a Bug in ADF BC

    Hi
    I am using JDeveloper 10.1.3(SU5) and adf faces and ADF BC and to explain my problem I use HR schema.
    First, I created 2 view objects based on countries table named as TestView1 and TestView2. I set TestView1 query where clause to region_id=1 and TestView2 query where clause to region_id!=1 in the view object editor and then I created 2 separated form on these 2 view objects by dragging and dropping from data control palette.
    Now when I insert a record in the form based on TestView1 with region_id set to 1 and commit the record and go to the next form I can see the record in the second form which is completely wrong since it is against the where clause statement of the second form.
    I am really confused and the situation is very wired and it seems to me something like bug in adf bc.Am I right.Is there any work around or solution for solving this problem.
    Any help would be highly appreciated.
    Best Regards,
    Navid

    Dear Frank,
    Thank you very much for your quick response.
    Reading your helpful comments now I have some questions:
    1- I have commited the record in the database so shouldn't the query of view objects be re-queried?
    2- We try to use ClearVOCaches (entity_name,false) in afterCommit of the base entity object but unfortunately it does not work correctly. after that,We got root app module and used findViewObject method to find all the view of that entity (we have found them by using name not automaticlly) and called executeQuery of all views. From my point of view it has 2 big disadvantages. First suppose that this entity is an important entity and 4 or 5 viow objects are based on it. Now, For inserting one record we should re-execute 4 or 5 view which I think makes some performance issues. Besides, If during the development one programmer add a new view object based on this entity and don't add the executeQuery in the afterCommit for this view, again we have the same problem. Isn't there at least a way that automatically refresh all related view objects however the performance issue still exists.
    3- You mentioned that this issue is handled in the developer guide. Could you kindly give me a refrence which developer guide you mean and which section I should read to overcome this problem.(I have ADF Developer's Guide for Forms/4GL Developer's Guide , however I search for clearVOCaches and surprisingly nothing was found!!!)
    4- Could you please give me some hints that from your point of view what is the best method to solve this problem with minimum performance effect.
    Any comment would be of some great help.
    Thanks in advance,
    Navid

  • DateTimeAxis min/max bug? Problems with consistent padding. Date Wrapping.

    I have been working on a problem with a BarChart object that I've created using dynamic data.
    My primary issue is that I can't seem to get the proper min/max values to set for the chart.
    To solve this I manually found the min and max of the data set of Dates and set the min and max of the chart. This allowed me to finally see all the floating custom bars (each bar is rendered with a user set fill), however now if I have a bar that extends over a year change the horizontal axis labels do not wrap the date properly, so instead of 2/10 (feb 2010) being the last date, 12/09 (dec 2009) is the last date.
    I've been trying to dynamically adjust the padding based upon a change event, but so far to no avail. Partially I think because I'm not sure which event for the function to fire on.
    private function dateAxisGen(r:Array):void {
                    var min:Number = r[0].startTime.time;
                    var max:Number = r[0].endTime.time;
                    const PAD:Number = 2;
                    const MILLISEC_IN_MONTH:Number = 2629743830;
                    const MILLISEC_IN_WEEK:Number = 604800000;
                    const MILLISEC_IN_DAY:Number = 864;
                    for (var i:int = 1; i < r.length; i++) {
                        var o:OperationXT = OperationXT(r[i]);
                        min = Math.min(o.startTime.time, min);
                        max = Math.max(o.endTime.time, max);
                    // Calculates the maximum range, then adds an appropriate
                    // padding to the chart via extra time. TODO
                    /* var range:Number = max - min;
                    if(range >= MILLISEC_IN_MONTH) {
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                        dAxis.padding = (MILLISEC_IN_WEEK/1000000)/PAD;
                    } else if(range >= MILLISEC_IN_WEEK) {
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                        dAxis.padding = (MILLISEC_IN_DAY)/PAD;
                    } else {
                        dAxis.padding = PAD;
                    dAxis.minimum = new Date(min);
                    dAxis.maximum = new Date(max);
    this, however, does not adjust the padding properly when an operation is removed from the list. Not to mention I still have the date wrapping error. It gives me the following error:
    Cannot access a property or method of a null object reference.
        at mx.charts::AxisRenderer/measureHorizontalGutters()[C:\work\flex\dmv_automation\projects\d atavisualisation\src\mx\charts\AxisRenderer.as:2244]
        at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automation\projects\dat avisualisation\src\mx\charts\AxisRenderer.as:1858]
        at mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\projects\datavisualis ation\src\mx\charts\AxisRenderer.as:1534]
        at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\dmv_automation\pro jects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:2239]
        at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\dmv_automation\pr ojects\datavisualisation\src\mx\charts\chartClasses\CartesianChart.as:1366]
        at mx.core::UIComponent/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8065]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\gumbo_beta2\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects \framework\src\mx\managers\LayoutManager.as:736]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\ projects\framework\src\mx\managers\LayoutManager.as:1069]
    Any help with my problem would be greatly appreciated.
    ADDITIONAL INFO:
    Alright, so I've discovered that the ONLY time the date wrapping error occurs is when the axis labels contain only the month and year, any other time it places it properly.
    Does anyone know where I can report this bug?

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Problem with JMenus that Persist - Is this a Java bug?

    I am having a problem with JMenus that persist. By this I mean
    that my drop down menus persist on the screen even after they have
    been selected.
    I've checked the Java bug database, and the following seems
    to come closest to my problem:
    Bug ID: 4235188
    JPopupMenus and JMenus persist when their JFrame becomes visible
    State: Closed, not a bug
    http://developer.java.sun.com/developer/bugParade/bugs/4235188.html
    This page says that the matter is closed and is not a bug. The
    resolution of this matter printed at the bottom of the page
    is completely abstruse to me and I would appreciate any
    comments to understand what they are talking about.
    The code at the end of my message illustrates my problem.
    1. Why should paintComponent() make any difference to
    Menu behavior?
    2. Is this a bug?
    3. What's the workaround if I have to paint() or repaint()?
    Thanks
    Tony Lin
    // Example of Menu Persistence Problem
    // Try running this with line 41, paintComponent(), and without line 41
    // Menus behave normally if line 41 is commented out
    // If line 41 exists, menus will persist after they have been selected
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class P2 extends JPanel {
    JMenuItem[] mi;
    public P2() {
    JFrame thisFrame = new JFrame();
    thisFrame.getContentPane().add(this);
    JMenu menu = new JMenu("My Menu");
    JMenuBar mb = new JMenuBar();
    mi = new JMenuItem[4];
    for (int i=0; i<mi.length; i++) {
    mi[i] = new JMenuItem("Menu Item " + String.valueOf(i));
    menu.add(mi);
    mb.add(menu);
    thisFrame.setJMenuBar(mb);
    thisFrame.setSize(400,200);
    thisFrame.setLocation(150,200);
    thisFrame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    thisFrame.setVisible(true);
    public void paintComponent(Graphics g) {} //Affects menu behavior!
    public static void main(String[] args) {
    new P2();

    Well, my understanding of the way painting works is that a component doesn't UNPAINT itself. Instead a message is sent to the component under the coordinates of the menu to REPAINT itself.
    In your demo program the JFrame is the component under the JMenu. The paintComponent() method of JFrame is empty, so nothing gets repainted.
    I added super.paintComponent(g); to the method and everything works fine.

  • Problem with lenght of text and footer elements displaced (bug?)

    I have a problem with the footer of my pages. The footer is composed with elements of the master page and two elements that are page dependant so these elements are defined in each page. All the elements in the footer are marked as page footer elements so they should appear below the main content of the page and all in the same position relative to each other.
    But the truth is the main content extends below the top of the footer overlapping it and the page dependant elements of the footer are displaced in the same amount and so these elements do not match in the space reserved for them in the footer.
    I think the problem is caused by the text box in the main content being displayed with a bigger height than it appears in the editor. Even worse: every web browser shows the text with a different height so the footer elements all appear displaced differently. I have tried to define the height of the text in pixels (px) instead of percentage (%) but the result is the same. But even with this indetermination, the footer should always appear below the main content and not overlaping (or overlaped) by it, so either this is a bug or I am doing something wrong.
    Here is how i see the page in the editor. The grayed out keywords and the "UK Photographers" link of the footer are in the current page. All other elements of the footer (horizontal line(rectangle of 1px height), "facebook - links - contact" links and Copyright notice) are in the master page:
    This is how the page appears in Firefox 15 with the text zoom set to default. notice how the footer elements that are defined in the current page appear overlaping those defined in the master page (there should be a 27px space between the end of the text and the horizontal line) and moved down in the same amount than the main content exceeds the footer limit:

    I am able to repro this on my end as well. Seems like a bug that we will be fixing in a future release.
    Work around would be to make sure that the footer item on the individual pages are above the ones from the master page or put everything on the master page or the individual page.
    - Abhishek Maurya

  • Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun   fatha/damma etc. would reverse automatically. Is this a known bug?

    Problem with Arabic font: In certain contexts, when writing Arabic with vowel signs (fatha, damma, kasra, sukun) a sequence of sukun + fatha/damma etc. would reverse automatically. Is this a known bug?
    Example: عَيْنٌ
    would automatically convert to عَيُنْ
    Funnily, it doesn't seem to happen here, but it does when entering text in a web interface (using Firefox, font Bayan) and when using Text Edit.
    Seems to be a problem of a specific font, as e.g. Arial MS Unicode works fine. Any hints?
    Thank you!

    Musaafir wrote:
    I've no idea how i can even start using arabic vowels on Microsoft Word for Apple
    You can't do Arabic on MS Word for Mac.  This app has never supported RTL scripts, so you need to use something else.  Mellel is best, but Pages 5, TextEdit, Nisus Writer, Open/LibreOffice should work OK.
    You switch between languages by using the "flag" menu at the top right of the screen or by using the keyboard shortcuts apple/command plus space.  Go to system prefs/keyboard/shortcuts to make sure that is activated.
    To see which key does what, you use Keyboard  Viewer.
    http://support.apple.com/kb/PH13746
    You place vowels on letters by typing the key for the vowel after the key for the letter.  The vowels are on the option/alt keys, option/alt + a gives you َ

  • Bug or my setting problem with konsole fonts

    I have problem with my konsole after update. It seems like font offset is wrong. Fonts are rendered too low.
    http://www.dumpt.com/img/viewer.php?fil … jucjz4.png
    Here you can see there should be text _qij on the konsole but as you can see the bottom rows of the font is missing. This happens in every font that I have tried. I wonder if i have some setting wrong or is there a bug?

    Same problem here, but it's already reported.
    https://bugs.archlinux.org/task/26624
    The workaround to "Enable Bi-Directional text rendering" works for me in konsole.

Maybe you are looking for