Rerendering bug when a ListBox is associated to a DropdownBox

As I was developing a UI that addressed a handful of related yet separate use cases, I came across a defect in the rerendering logic for ListBox (SAPUI5 library version 1.20.3 ).
(Working example here: http://jsbin.com/sidiq/1/edit?html,output )
When the UI is initially rendered, the associated ListBox would not be visible on screen, just the DropdownBox would be visible. Whenever I would alter the visibility state (in particular, making them visible) of elements it would cause the associated ListBox to suddenly appear.
It turns out the ListBox, on rerendering, is creating a second copy of itself in DOM. It's this second copy you're actually seeing on the screen. Once I figured that out I was able to hook the onAfterRendering event (via the Control.addDelegate() method) & query the DOM using the jQuery Attribute Equals Selector and remove the extra copy.
One nice byproduct is this gives a nice solution to situations where you want to want a control fully "rendered" as [HTML] DOM, but simply not displayed to the user. The solution employed by the event handler is to call jQuery .remove(), we could just as easily called .css("display", "none")
Those that prefer a gist can access it here: https://gist.github.com/scollenburg/5ec9ebc9cdae031c08c1
(or clone via git: https://gist.github.com/5ec9ebc9cdae031c08c1.git )
Enjoy,
Shawn
P.S. I'm working on filing this as a bug @ SAP, however that is going slowly, and I wanted to share the issue with everyone.

I was asked "why not bind the aggregation directly to the DropdownBox" -- this pattern (binding the aggregation to a ListBox, then associating the ListBox to one or more UI5 controls) comes directly from the SAPUI5 documentation:
Using a ListBox for the DropDownBox allows a reuse of this ListBox in multiple DropDownBoxes. This is useful for tables, for example, where the possible values are the same in every row.
The complete documentation can be found here:
SAPUI5 Demo Kit - DropdownBox -- Example 2: A DropdownBox Using a ListBox
Enjoy,
Shawn

Similar Messages

  • When opening any page associated with Google (main search page, gmail, google maps, etc) the font is so tiny it is unreadable. Any other website is fine and this only happens with Mozilla. I just downloaded 3.6.12 and it's still a problem.

    When opening any page associated with Google (main search page, gmail, google maps, etc) the font is so tiny it is unreadable. Any other website is fine and this only happens with Mozilla. I just downloaded 3.6.12 and it's still a problem.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Apple Mail and gmail bug when sending attachment?

    Hi,
    And now for my own Mail question. Wondering if others have run into this bug?
    Mac OS 10.5 MacBook Pro.
    There seems to be a bug when trying to send Mail with an attachment (via a gmail account).
    Over and over, Mail just hangs there.
    But it works when:
    1. Using Mail, the same email can be sent when I Remove the attachment.
    2. Skipping Mail, and using gmail itself, the email and attachment are sent within seconds.
    2. Email with attachment can also be sent from another email service (such as Earthlink).
    Only when I am using Apple Mail, sending via gmail, With an attachment, is there a hitch.
    Thanks again for your attention,
    - Ross

    Perhaps this problem is confined to Mail 3.0 and later, and Leopard. I cannot send attachments using gmail as the smtp server. I can log in to my gmail account, download an attachment, and send, with no problem as Ross has experienced. I get an eternal hang when trying to send the same message with an attachment from Mail. Any solutions yet? Thanks!

  • VO substitution Issue when any person is associated to the userId.

    We have done a customization to a seeded table by adding new columns. But it throws an exception "Invalid Column Index" in the scenarios mentioned below:
    1. When any person is associated with the user.
    2. When the view type is filtered with any 'Project Manager' to get the list of projects.
    Rest in all cases its working fine. If any of you had faced similar issue, please share your inputs. Its very urgent.
    thanks,
    Danish

    We have done a customization to a seeded table by adding new columns. But it throws an exception "Invalid Column Index" in the scenarios .
    "table" is it database table or OAF classic/adv table region?
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • We found that your app exhibited one or more bugs, when reviewed on iPad running iOS 7, on both Wi-Fi and cellular networks

    We found that your app exhibited one or more bugs, when reviewed on iPad running iOS 7, on both Wi-Fi and cellular networks

    1.) Wrong forum
    2.) no concrete informations. Review did supply you with concrete details.

  • Bug when using IBOT

    Hi all,
    has anyone had this kind of error?
    I am using IBOT, and I set Schedule_ to Start Date=21/09/2009, Time of Day=08:00, Set Time Zone=GMT+01:01, and Recurrence_ to Every 1 week(s) on  MON.
    When I look overview of this IBOT, everything is fine, but when I go Show IBOTs acting on my behalf Next Run is not date that I had set. And IBOT is not running in time that he should. But when I set Recurrence_ Daily Every 7 day(s) every thing is OK. IBOT is running and Next Run shows correct date and time.
    Thanks

    This looks the same as bug 5539348 "Schedule an iBot to run immediately and weekly, the immediate run doesn't take place". According to that bug when you say start immediately and run every 1 week you are actually saying start the schedule now not start the ibot?! So a schedule is created in the scheduler to run your ibot every week on Mon but it does not run it immediately.
    I think this is a bug with the weekly schedule though as setting it to 7 days seems to fix it. The bug database seems in infer that later releases of 10g fixed this problem so it might be worth upgrading to a newer patch release if it becomes a problem and seeing if this fixes it.

  • N8 IMAP e-mail bug when deleting mail

    Bug : 
    When I open my IMAP (Google) mail with N8's native mail client (configured as IMAP because push e-mail still isn't fixed on the N8 after 3 months of usage !!!) it often starts syncing. When I delete an e-mail before the sync is over, it doesn't get deleted ... allthough it dissappears from  the inbox ...It IS still showing up in the widget however. When closing and reopening the mailclient again .. it reappears in the inbox.
    So mail can only be really deleted when waiting for the sync to finish.
    This is BAD programming ! Please fix

    Hi Netherlands,
    Many, many rules active. Perhaps 100. None of which use the action "Delete Message." I have had these rules enforced for quite a long time. Years. Also I've ruled out a rules problem since their application is fairly instant. I've seen these E-mail. Gone back and replied to them. Gone back and seen them again and THEN they disappear.
    Negative on the Auto Synch feature: it is not nor ever has been checked.
    Thanks for your time and response.
    Con mucho Appreciado,
    Wm

  • Strange UI bug when using People view/face recognition

    I've started playing with the face recognition in LR6/CC and have encountered an odd display bug when viewing the groups of 'named people':
    The thumbnail for each named person includes a count of how many images (or perhaps that should be faces) are attributed to their specific name. However, once the number of images for a person exceeds 100, LR only displays the first two digits in the thumbnail and drops off the third one, e.g. 254 is displayed as 25. If you hover over the thumbnail, the full count (e.g. 254) is displayed so long as the mouse cursor is kept on the thumbnail. Interestingly, once the number of images attributed to a named person exceeds 1000, it does the same thing, only it adds an extra digit (so 1400 becomes 140).
    I'm running this on Win7.
    Anyone else seeing this?
    M

    I guess I was primarily "testing the water" to see if the problem was specific to my configuration in some way, but you make a fair point John.
    Here's my (possible) bug report: LIGHTROOM Facial recognition: thumbnails not displaying full number
    M

  • [svn:fx-4.x] 15030: AIR Spark Window bugs when layoutDirection="rtl".

    Revision: 15030
    Revision: 15030
    Author:   [email protected]
    Date:     2010-03-25 11:49:00 -0700 (Thu, 25 Mar 2010)
    Log Message:
    AIR Spark Window bugs when layoutDirection="rtl".  On Windows only, an empty window when created, didn't maximize or resize correctly.  This class maintains its width/height in bounds rather than in the super class' _width and _height variables.  Need to call setActualSize() whenever bounds is set so that the layoutWidth gets set correctly if this component is mirroring.
    Fix an RTE in TitleWindow that I stumbled upon.  Can not access the nativeWindow displayState if the window is closed.
    QE notes:
    Doc notes: None
    Bugs: SDK-25978, SDK-25827, SDK-25825
    Reviewed By: Jason
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25978
        http://bugs.adobe.com/jira/browse/SDK-25827
        http://bugs.adobe.com/jira/browse/SDK-25825
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/airspark/src/spark/components/Window.as
        flex/sdk/branches/4.x/frameworks/projects/airspark/src/spark/components/windowClasses/Tit leBar.as

    Stope
    Mailing me ***
    Sent from my I phone

  • [svn] 3791: Fix bug when resetting stylesheet on FxApplication

    Revision: 3791
    Author: [email protected]
    Date: 2008-10-21 13:23:09 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Fix bug when resetting stylesheet on FxApplication
    SDK-17691 RTE loading styles
    When the FxApplication replaces its style sheet, it unloads the previous skin and loads in a new one. With the new skin, it creates a new instance of the contentGroup. However, when the content is added to the contentGroup, it has already been parented by the previous version of the contentGroup. This causes the RTE because the content is not in the correct state.
    The solution is to set the old contentGroup's content property to null when we remove the skin. We also force the contentGroup to validate immediately because the new contentGroup was processing its content array before the oldGroup had removed the content as children.
    QE Notes: Needs testing
    Doc Notes: none
    Bugs: SDK-17691
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17691
    http://bugs.adobe.com/jira/browse/SDK-17691
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as

    The password history check is not honored in a password reset. It always been like that and it is documented:
    "Password History Length Constraint: If all of the following conditions are true, the following constraints MUST be satisfied:
    The requesting protocol message is a password change (as compared to a password set)."http://msdn.microsoft.com/en-us/library/cc245669.aspx
    So changing it is not a correcting a bug but asking to change the design. From a pure support perspective, you switched from bug request to design change request. Which might still be arguable if you have a solid business case.
    Password set is given through an extended right, so by default only administrators or operators have this right. So it comes down to trust those individual. If you cannot, then you don't give them the right and you implement other identity
    management solution (Password Self Reset for example).
    Other fancy and not useful information:
    http://msdn.microsoft.com/en-us/library/cc245692.aspx 
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Premiere CC 2014 "Match Source" bug when exporting multiple clips

    Getting a strange bug when trying to batch export.
    The source clips are 4K MP4s. When exporting individually I use the Match Source button in the export dialogue and it correctly matches to the 4K frame size when sending to queue in Media Encoder.
    If I select multiple clips and batch export them, selecting "Match Source" they come out as NTSC DV 29fps 720 x 480. The only way to work around this is to manually enter the frame values in Media Encoder after queuing.
    Anyone come across this? Anyone at Adobe aware?
    System Specs:
    Mid 2010 Mac Pro 2 x 2.9GHz 6 Core Xeon
    32GB RAM
    nVidia GTX 680
    240GB SSD boot drive
    2TB internal cache drive
    Adobe Premiere 8.1.0 (81) Build
    OS 10.8.5

    Do you have a utility to check your computer temperatures?
    You MAY have a hardware problem, since video editing puts a LOT of stress on all components... below is not exactly the same, but worth reading
    BSOD shutdowns http://forums.adobe.com/thread/1427408?tstart=0
    http://blogs.adobe.com/kevinmonahan/2014/01/13/computer-shuts-down-with-premiere-pro-or-af ter-effects/

  • Bug when viewing tables?

    There seems to be a bug when viewing tables with identical names in different schemas in SQL Developer. When I view table information in one schema and then go to a table with identical name in another schema the view isn't updated, it still shows the information for the table from the first schema. I have to select another table in the second schema before I select the table I want to look at to get the information correct.
    I have the same problem with views, so this is probably the case for all kinds of objects.
    Regards,
    Sveinung

    I have found that the problem is even more specific. It occurs only when I view schemas in different databases.
    I am not sure that I understand what you mean about abstracted script. I have tried to create a simple test case with two scripts, one for each database, that creates a table, inserts some data and creates a view on the table.
    I have not found a way to upload files, so I have pasted the contents into this thread along with a description of the steps in the GUI. I have run the scripts on Oracle 10g (10.2.0.3.0) databases.
    -- SCRIPT 1
    CREATE TABLE test_table
    col_1 NUMBER,
    col_2 VARCHAR2(6)
    INSERT INTO test_table VALUES (1, 'ROW 1')
    INSERT INTO test_table VALUES (2, 'ROW 2')
    INSERT INTO test_table VALUES (3, 'ROW 3')
    INSERT INTO test_table VALUES (4, 'ROW 4')
    INSERT INTO test_table VALUES (5, 'ROW 5')
    COMMIT
    CREATE VIEW test_view AS SELECT * FROM test_table
    -- END SCRIPT 1
    Run script 1 in some schema in a database.
    -- SCRIPT 2
    CREATE TABLE test_table
    col_1 NUMBER,
    col_2 VARCHAR2(6),
    col_3 VARCHAR2(12)
    INSERT INTO test_table VALUES (1, 'ROW 1', 'COL 3 ROW 1')
    INSERT INTO test_table VALUES (2, 'ROW 2', 'COL 3 ROW 2')
    INSERT INTO test_table VALUES (3, 'ROW 3', 'COL 3 ROW 3')
    INSERT INTO test_table VALUES (4, 'ROW 4', 'COL 3 ROW 4')
    INSERT INTO test_table VALUES (5, 'ROW 5', 'COL 3 ROW 5')
    INSERT INTO test_table VALUES (6, 'ROW 6', 'COL 3 ROW 6')
    INSERT INTO test_table VALUES (7, 'ROW 7', 'COL 3 ROW 7')
    COMMIT
    CREATE VIEW test_view AS SELECT * FROM test_table
    -- END SCRIPT 2
    Run script 2 in some schema in another database.
    Connect to the two databases in SQL Developer.
    Select the table in the first database, then select Data.
    Then select the table in the other database. In my system the data are not refreshed. This is also the case when I look at the views.
    Hope this description is good enough.
    Sveinung

  • Bug when encoding f4v videos longer than ~ 1 hour ?

    Folks,
    We're getting a strange problem with Adobe Media Encoder.
    We encode a long (slightly more than 1 hour) f4v video
    and Adobe Media Encoder reports that the file encoded
    successfully with no errors. But when we scrub through
    the video (i.e., move the play head from start to finish),
    the video hangs early in the video.
    The source video in original H.264 Quicktime format
    works perfectly and is known to be OK. We have plenty
    of disk space and memory, so that is not an issue.
    We do not have this problem when encoding shorter f4v videos
    (even slightly less than 1 hour). Does Adobe Media Encoder
    have a bug when encoding f4v videos longer than about 1 hour?
    Is there a workaround?
    Thanks in advance,
    Raja.

    You can remove them from the iMovie timeline and replace(?) I believe iMovie plays the full quality video (there is an option on how iMovie previews the clips) but doesn't FCE play a lower resolution version? If you are not using the Highest Quality version in iMovie, what happens when the project is exported to Quicktime or iDVD? Does the video still studder?
    Regards,

  • Bug when importing Ppt slides with animation: color changes to foam green

    Hi everyone,
    I am using Captivate 7 and I am experiencing what seems like a bug when I try to import Powerpoint slides that have animation effects and then publish the video as HTML5.
    I am using Ppt 2007 and importing the slides as .pptx files using the Import> Ppt slides command in Captivate.
    An example of Ppt slide that I need to import is this: in the slide, there are two groups, created by grouping together several objects (lines, shapes etc). One group has a fade effect applied on it, while the other group has a diagonal down right movement applied to it.
    When I import the slide in Captivate, the following happens:
    If I do not select the High fidelity check box, then the Ppt slide is imported as static, and no effect is shown in the HTML5 video, although the effect is shown in the Captivate preview.
    If I select the High fidelity check box, then the Ppt slide is imported with the effect, and with the original Ppt colors, but as soon as I press F3 to play the slide, or F4 to play the whole project, or I publish the video in HTML5 output, all the original colors change to foam green for the fill in and black for the shape outlines. Furthermore, the text boxes are displayed with their box frame displayed:
    ORIGINAL PPT IMAGE:
    RESULT AFTER CAPTIVATE IMPORT:
    I have read in the forum several posts on this issue, eg colors being changed to foam green even with static Ppt slides, and I tried to apply the suggestions, but none seems to work.
    Any help will be appreciated.

    Hi there
    As Hyperlinks don't survive the import process, perhaps try removing the links and just applying the desired color in PPT before importing into Captivate?
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Bug when seeking in "ready"-event?

    Hello everyone!
    I can't browse the bug-database at http://bugs.adobe.com/jira/browse/ST, it seems offline right now.
    I've stumbled across a small bug: When I want to start playback of a video at a certain position, I'm putting a setCurrentTime()-call in the mediaPlayerStateChange-callback when the "ready"-event is received.
    This works fine, however then the seeked position is position 0 in the video, which means that getCurrentTime() reports 0 and
    setCurrentTime(0) doesn't seek to the beginnig of the file but to the position seeked to in the ready event.
    Maybe this a feature, but it's very unexpected behaviour.
    I can seek in the "playing"-event, but then unnecessary data is buffered.
    Thanks

    I've encountered the same problem as I had to develop a 'seekTo' feature in our custom implementation of Strobe.
    You can't seek until play is fired. By then, it's too late to jump to time and it looks clonky, plays the 0 position and jumps to the desired spot.
    The fact is that seek is ignored if "mediaPlayer.canSeek" is false. It becomes true when the media gains seek trait...
    Now that I think about it, maybe calling "load()" on the load trait prior to calling seek on the player would do that (that's if there's no error on the media load).
    In essence, you want to get the media to connect to the stream manually by calling load on the load trait. I figure that would work, but haven't tried yet...

Maybe you are looking for

  • How do I get a pop-up JDialog to return a result back to the parent frame?

    I have a button in a frame that opens up a JDialog with more buttons. Depending on the button pressed, the JDialog calculates an array and then closes the dialog. I'd like the results from the JDialog to be passed back to the parent frame. Is there a

  • Dreamweaver and Fireworks will not run

    when starting mx 2004 dreamweaver or fireworks, and immediate error message pops up: ERRO: Write File() The handle is invalid. the application failed to initialize properly (0xc0000142) Click ok to terminate application. flash works fine even after r

  • How to install server on additional Macs?

    I have the mid-2011 Mac Mini Server. How do I install server on additional Macs if I want?  If I am not mistaken, by purchasing the Mini Server, I qualify to put Server on some additional Macs if desired? Thank you.

  • Can't complete a new album

    I am trying to complete an album of which the first song I purchased 3 months ago, but it is not letting me. I have record of purchase of 6 songs from the album, and I just wanted to get the rest of it at a reduced price and the bonus material that c

  • Accounting  12546 requires an assignment  to a CO Object

    Hello Gurus I am getting the error Accounting  12546 requires an assignment  to a CO Object   Please ignore the number it is my G/L number for which primary cost element is also the same. I happens when i do transfer posting in MB1B movement stock fr