Update in C++ created GroupDataModel after loading the interface user of Cascades

I created a simple GroupDataModel in my C++ code and show it inside my Cascades UI. After once it is posted, it seems that I can't change the content of my GroupDataModel. If I still try the user interface crashes. In the debugmode I get this error:

An internal error has occurred.
java.util.concurrent.RejectedExecutionException

Here are the relevant parts of my test code:

.h

bb::cascades::GroupDataModel *modelRandom;
QVariantMap map;

.cpp

QmlDocument *qml = QmlDocument::create("main.qml");
qml->setContextProperty("logic", this);
GroupDataModel *modelRandom = new GroupDataModel(
QStringList() << "ID" << "Text" );
map["ID"] = "6";
map["Text"] = "textitem";
modelRandom->insert(map);
map["ID"] = "2";
map["Text"] = "textitem2";
modelRandom->insert(map);
qml->setContextProperty("modelRandom", modelRandom);
AbstractPane *root = qml->createRootNode();
Application::setScene(root);

. QML

ListView {
    id: listView
    dataModel: modelRandom
    listItemComponents: [
        ListItemComponent {
            type: "listItem"
            StandardListItem {
                title: ListItemData.Text
                }
            }
        ]
        function itemType(data, indexPath) {
            if (indexPath.length == 1) {
                return "header";
            } else {
                return "listItem";
            }
        }
    }
}

I call it later in a different function as soon as the UI freeze:


map["ID"] = "4";
map["Text"] = "textitem3";
modelRandom->insert(map);

Someone at - it an idea?

Hello

Please check this link may be help you.

http://supportforums.BlackBerry.com/T5/Cascades-development/unable-to-render-the-ListComponent-image...

Tags: BlackBerry Developers

Similar Questions

  • Tecra A - Toshiba Power Saver error after loading the OS

    I have two problems with my XP Pro SP3 operating system

    (1) immediately after loading the OS, I got this error message

    http://photoserver.WS/images/oCVJ4c25d94898215.PNG

    (2) and my job doesn'r to reboot. Stüch Windows HE is shoting down, and I have to manually to swith out of turn.

    How to solve this problem?

    I don't know much about your model, but I think you should update a powerhouse of Eve:

    [Toshiba drivers | http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp]

  • How to assign a value to a control to display after loading the page?

    I use JDeveloper 10.1.3.3 using ADF.

    How can I run a support bean method to populate a control immediately after loading the page. My intention is to populate a control hidden with the session id. The code that I would run is something like this:

    FacesContext ctx = FacesContext.getCurrentInstance ();
    ExternalContext ectx = ctx.getExternalContext ();
    HttpSession mySession = ectx.getSession (false) (HttpSession);
    String sessionId = mySession.getId ();

    Where would I put this code?

    Thank you

    John

    Published by: John Matozzi, October 28, 2008 15:47

    Hi John,.

    create a method called getSessionId returning a string in your bean support.

        public String getSessionId(){
    
            FacesContext ctx = FacesContext.getCurrentInstance();
            ExternalContext ectx = ctx.getExternalContext();
            HttpSession session = (HttpSession) ectx.getSession(false);
            return session.getId(); 
    
        }
    

    then in your page you can use the link editor to call the method and display its value.

    
    

    Brenden

  • Why can I not hear my 6plus iPhone calls after loading the Apple Watch? If I don't answer the iPhone instead of the Apple Watch for incoming calls?

    Why can I not hear my 6plus iPhone calls after loading the Apple Watch? If I don't answer the iPhone instead of the Apple Watch for incoming calls?

    Hello

    It can help to cancel your iPhone in a Bluetooth headset pairing, if it is currently associated with it.

    -On your iPhone, go to: settings > Bluetooth > tap the info "i" beside your headset > tap Forget this device.

  • Satellite L675D: Linux Suse 11.3 crashes after loading the kernel

    Phew! thought I would find my salvation here until I read the Linux of countless questions, but anyway.

    Mint 10, suse 11.3 and studio 64 live CD everything freeze after loading the kernel.
    A black screen is empty.

    Yes, I have Ubuntu 10.04 in a dual boot work, but this isn't my distro of choice.
    Yes, I tried the live CD on another PC and they work.

    So please a Toshiba guru please tell me what this model does not have to do it entirely for edge for Linux. Or am I dreaming?

    Do not know what will happen with other models. I discovered with my L675D I could get through the gel by typing in acpi = off

    Good luck

  • Can't view the data after loading the XML into RTF model

    Hi friends

    I am unable to view data in PDF after loading the XML into RTF model
    After I load the XMl file to my model
    The complement of the tab, I'm trying to get a glimpse of the output as pdf/xml etc, but he throws and error
    Window does not
    'C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\Oracle\BIPUBL~1\TEMPLA~\tmp\3513518782149421out.pdf214921out.pdf '. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search

    I gave the name correctly only, but don't know y it displays error I have to reinstall the Office of Oracle BI Publisher once more please advice me what needs to be done to solve my problem of my PC

    Thank you
    Thiliban

    It seems that the problem is with the working directory of the BIP Office.

    If you have administrator access to the computer, please do the following:
    1 Windows-> Run-> regedit
    2. find the value of the next entry
    Publisher\Template HKEY_CURRENT_USER\Software\Oracle\XML for Word\TB_WORK_DIR generator
    3. change your path C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\ORACLE\BIPUBL~1\TEMPLA~\tmp

    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

  • Locking down system and now get error 'Could not load the profile user and loading of temporary user account' when you try to open a session

    When my computer is on suddenly power went and my system also closed that crashed without logging my user account. now, I started my computer and I tried to open a session in my account (having only one user account) but he goes to the temporary login account, it displays "could not load the profile user and loading of temporary user account if you make changes to this user account it will be erased when you connect after." What can I do? How can I solve it? I use windows xp.

    Original title: Temp user login

    Hi indhru,

    1. Did you the latest changes on the computer?
    2. You have security software installed on the computer?

    Try the step after the connection to the temporary account below.

    1. Click on the Start menu.
    2. Type Regedit in the Run dialog box, and then press enter
    3. Access
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    4. There is 1 line for each profile. Especially if a profile is bad there are 3 things worth visiting:
    • Make sure that the name of the key are not ends in ".bad".
    • Make sure the RefCount value is 0
    • Ensure that the status value is 0
  • Lack of Snipping tool in the interface user of Windows 8 (NOT THE DESKTOP), but in any Windows Apps Store

    Is there any tool to capture in the user of Windows 8 interface?
    The only way I figured out was to use the PRINT SCREEN

    If none of these tools, it is a very big lack not being able to take just one part of a screen in the user of Windows 8 interface

    Windows 8 Pro (MSDN)

    I know where it is that I use daily and very often.  It does everything not in the user of Windows 8 interface
    On the desktop, there is no problem with him, but as soon as you go into the user interface of Windows 8 it is a similar tool when we are in the interface user of Windows 8 (Windows Store apps) so there's no way to use it?

    Hello

    Workaround for this would be to create a screenshot in the App Store, load the screenshot in Paint and and crop the image of what you want.

    There is a new keyboard shortcut in Windows 8 to create screenshots.

    1. press Windows + PRTSCN key. This will create a screenshot and automatically put my Pictures\Screenshots in your folder.

    2. open the screenshot in Paint and use the Select + tools to harvest.

    Concerning

  • Change the language of the interface user InDesign CS6 (CC)?

    How can I change the language of the interface user InDesign CS6 (CC)? Currently, I have all the menus in Norwegian, but would like to have it in English. I remember all the options during installation to choose the language. I hope someone can help! Thank you very much!

    You have creative cloud then you can change the language of the application of the preferences of the MAO.

    Please find the link below for the article with the steps: -.

    http://helpx.Adobe.com/creative-cloud/KB/creative-cloud-trial-mode.html

    BTW no need to uninstall.

  • Automatically, click a CommandButton in the JSF page after loaded the page

    I need to automatically, click the command button 'refreshPage' after loading of the JSF page below: (after trying the code in blue comment I'm unhappy. Please help!)

    <? XML version = "1.0" encoding = "UTF - 8"? >
    "< jsp:root xmlns:jsp ="http://java.sun.com/JSP/Page"version ="2.1"
    "xmlns:f ="http://java.sun.com/jsf/core"
    "xmlns:h ="http://java.sun.com/jsf/html"
    "xmlns:AF ="http://xmlns.oracle.com/adf/faces/rich"
    "xmlns:PE ="http://xmlns.oracle.com/adf/pageeditor"
    Cust ="http://xmlns.oracle.com/adf/faces/customizable" >. "

    < f: loadBundle basename = "oracle.webcenter.portalframework.sitestructure.resource.PortalAppPageResource"
    var = "portalResource" / >
    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document id = "d1" title = "#{portalResource ['home_title']}" >

    <!-< af:clientListener method = "callRefreshButton" type = "load" / >
    < af:resource type = "javascript" >
    function callRefreshButton()
    {
    var button = AdfPage.PAGE.findComponentByAbsoluteId ("refreshPage");
    ActionEvent.queue (button, true);
    }
    < / af:resource >->

    < af:messages id = "m1" / >
    < af:form id = "f1" >

    < af:pageTemplate value = "#{bindings.pageTemplateBinding.templateModel}" id = "pt1" "
    viewId="/oracle/webcenter/portalapp/pagetemplates/pageTemplate_swooshy.jspx" >
    < name f: attribute = "showNavigation" value = "#{true}" / >
    < f: facet 'content' = name >
    < af:group id = "g1" >
    < af:inputText label = "Label 1" id = "it1" / >
    < / af:group >
    < / f: facet >
    < / af:pageTemplate >

    <!-< af:commandLink id = "refreshPage" text = "refreshPage.
    action = "#{WangBean.reloadPage} '"
    rendered = 'true '.
    inlineStyle = "do-size: small;" color: white; »
    partialSubmit = "true" clientComponent = "true" >
    < / af:commandLink >->

    < af:inputText value = "#{bindings." Sdan8.inputValue}.
    columns = "#{bindings." Sdan8.hints.DisplayWidth}.
    maximumLength = "#{bindings." Sdan8.hints.precision}.
    shortDesc = "#{bindings." Sdan8.hints.ToolTip}"id ="it2.
    Visible = "false".
    inlineStyle = "do-size: medium;" make-weight: bold; ">
    < f: validator binding = "#{bindings." Sdan8.validator} "/ >"
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " Sdan8.format} "/ >"
    < / af:inputText >

    < / af:form >

    < / af:document >
    < / f: view >
    < / jsp:root >

    Timo,

    I got it works!

    What happened is that I didn't notice that the system generated a method of PollEvent by default for me inside my WangBean after I created the af:poll component:

    {} public void reloadPage (PollEvent pollEvent)

    Add your code here

    }

    Once I pasted my code in the vote started working as expected and the inventory button. Component AF:poll solve my problem.

    Thank you very much and I have learned 2 new staffs ADF on your part, am really appreciated.

    Kind regards

    Yi

  • MacBook Pro crashed after loading the Sierra

    Charge of Sierra (September 22, 2016) on my MacBook Pro (early 2011) and now it crashes.  The computer was working fine before the update.  Can I cancel the new operating system or how can I fix the problem?

    Difficulty installing Sierra

    Try each of them in order. A test to see if the computer works properly:

    1. Reset the PRAM
    2. Reset the controller (SMC) system management
    3. Start the computer in Safe Mode, and then restart normally. It's slower than a standard home.
    4. Repair the disk by booting to the HD recovery immediately after that the chime press the command and R keys until the Utility Menu appears. Choose disk utility and click on the continue button. Select the withdrawal (usually Macintosh HD) volume entry of the list to one side.  Click first aid button in the toolbar. Wait the fact button appear. Disk utility and return in the Utility Menu. Restart the computer from the Apple Menu.
    5. Reinstall OS X by booting from the Recovery HD using the command and R keys. When the Utility Menu appears, select reinstall OS X and then click on the continue button.
  • Problems with Toshiba Satellite A205 after loading the latest version of IE 9

    The new MSN does not work on Toshiba laptop of my wife. She would not open with the new MSN homepage. A message appeared on the screen that the browser should be downloaded. After several tries to load the latest version of IE 9, I was finally able to do as asked. Load the latest version of IE 9 has not helped the new MSN problem. Today when I started the laptop there is no function mouse either edge touch pad or mouse wireless. The laptop is now useless. Help!

    Hello

    You can using last good known Configuration.

    http://Windows.Microsoft.com/en-GB/Windows/using-last-known-good-configuration

    Thank you.

  • Printing error after loading the new cartridge

    After loading a new cartridge (genuine) 338, everything I print has the top of the first line is missing. I rebooted the old cartridge and it prints the line correctly (even slightly). I tried to reload a new, but it still does not print correctly. The alignment test after loading was very good. Can anyone help me to solve the problem or is it just a faulty cartridge?

    Rich thanks for your help and for taking the time to answer my question. I'm sorry that I was not to give complete information about the printer, as this has been my first post - I'll do better next time. The issue has resolved itself today! After several attempts to print and reload the cartridge, I dropped, but unexpectedly, the printer has pulled up and began to do a second test of its own alignment, and that solved the problem.

    Sue20

  • Call a method bean after loading the page in the file jsff

    Hi all

    I'm working on JDeveloper 11.1.1.7.0.

    I need to call a managed bean method after jsff is responsible. My requirement is that I must add dynamically RichImage on my page. So I put a PanelGroupLayout as a container on the page. I add the RichImages to this PanelGroupLayout with

    parentUIComponent.getChildren () .add (childUIComponent);

    I tried using regionController but it gives me as regionController Null pointer has no access to user interface components on the page.

    then I tried with javascript, but it is not shooting my bean method managed. I put the code below in my home.jspx

    < af:document id = "d1" >

    < af:serverListener type = "onloadEvent" method="#{viewScope.ConnPocBean.initMethod}"/ >

    < af:resource type = "javascript" >

    function onLoadClient (event) {}

    AdfCustomEvent.queue (event.getSource (), "onloadEvent", {}, false);

    Returns true;

    }

    < / af:resource >

    and below is the code in my testPage.jsff file

    < af:clientListener method = "onLoadClient" type = "load" / >

    But here, when loading my testPage.jsff... initMethod() is not going to get fired.

    Please let me know what is the problem here.

    Thank you

    Fox

    If you want to try other ways to add a child element to PanelGroupLayout, use:

    parentUIComponent.getChildren () .add (childUIComponent);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (parentUIComponent);

    in the Get accessor of the binding of an element method, which is placed after PanelGroupLayout in your jsff. So when the next component is loaded the child will be added to the PanelGroupLayout

  • cannot download the updated flash player, says unable to load the file metalife

    try to install the flash player update, said popup cannot load the file metalife.  Should WHA† I do?

    It was the former location of download; Try http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_osx.dmg

    If you have any other questions, please ask in the forum Flash Player !

Maybe you are looking for

  • With the help of iTunes credit to buy parts of Pokémon

    I want to buy Pokémon go parts using my iTunes credit! my mother has approved purchase but requires then to his credit card details? I want to use my credit on my iTunes account

  • Satellite C660-1F1 Toshiba HDD Recovery 'the installation program starts services' crash?

    This is my second attempt at recovery using the hidden picture. The first attempt, attached to a previous point of loading Windows 7 ;( However, during this attempt, he was more than an hour on the screen "Setup starts services" with a light moving u

  • Energy - Management Performance for S540? Windows 8.1

    Hi, is there a with performance management energy management? I would like to have a similar management like in Windows 7. I have windows 8.1 S540. Thanks for the tips.

  • How to add volume to the taskbar

    original title: I'm not very tecky - help! How can I add volume to the taskbar (I think that's what it's called)?  It's here, so I've updated something and he went.

  • Atheros AR9485

    Recently to buy HP Pavilion and I am unable to see the channel "n" on my wireless network, 'b' works very well. Router is a Netgear DGND 3300 v2 - for clues on what I can try to see the N-channel? Thank you