Separating the main.qml in .qml different files, is more pushed page

Hi all

My main.qml became very long (NavigationPane with a Page with a container with a label and ListView and a certain objects attached) and I started to break up.  Before that, when I chose a line in the list, it pushed successfully to the details of the page.  However, when I copy and pasted all within the Page to another qml file that I put in main.qml as object, it is more pushed the detail of the page.  I can't for the life of understand me. I saw / experienced with numerous examples of applications where he worked (Battambang in particular), but cannot see a difference between my folders and those.

Here are the files, dismembered. When the PillListPage.qml content is copied in main.qml, everything works fine.

//main.qml// Grid view with detail project template
import bb.cascades 1.0
//import bb.platform 1.0
import bb.system 1.0
import "stringConcatenation.js" as StringConcatenation

NavigationPane {
    id: navigationPane

    //contains time label and grid list view
    firstPage: PillListPage {
    }

    onCreationCompleted: {
        // this slot is called when declarative scene is created

        // write post creation initialization here
        console.log("NavigationPane - onCreationCompleted()")

        // enable layout to adapt to the device rotation
        // don't forget to enable screen rotation in bar-bescriptor.xml (Application->Orientation->Auto-orient)
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
    }
    onPopTransitionEnded: {
        // Transition is done destroy the Page to free up memory
        page.destroy()
    }
}
//PillListPage.qmlimport bb.cascades 1.0

Page {
    id: pgMain

    content: Container {
        id: rootContainer        verticalAlignment: VerticalAlignment.Center
        horizontalAlignment: HorizontalAlignment.Center

        Label {
            id: timeLabel
            text: {
                var currentTime = Qt.formatDateTime(new Date(), "h:mm AP");
                return currentTime;
            }
        } //Label

        //PillListView
        ListView {
            id: listView
            // set object name to let listView be discoverable from C++
            objectName: "listView"

            layout: GridListLayout {
                verticalCellSpacing: 100
                cellAspectRatio: 4.0
                columnCount: 1
                horizontalCellSpacing: 10.0
            }

            listItemComponents: [
                // define component which will represent list item GUI appearence
                ListItemComponent {
                    type: "item"
                    // list item GUI appearence component is defined in external MyListItem.qml file
                    MyListItem {
                    }
                }
            ]
            onTriggered: {

                // When an item is selected we push the detail Page in the chosenItem file attribute.
                var chosenItem = dataModel.data(indexPath);

                // Create the content page and push it on top to drill down to it.
                var contentpage = pillDetailPageDefinition.createObject();

                // Set the content properties to reflect the selected image.
                contentpage.contentImageURL = chosenItem.thumbnail
                contentpage.contentName = chosenItem.name + ", " + chosenItem.mass

                // Push the content page to the navigation stack
                navigationPane.push(contentpage);
            }

            layoutProperties: StackLayoutProperties {
                spaceQuota: 1.0
            }
            focusPolicy: FocusPolicy.Default
        } //end of pill list
    } //end root Container

    // Attached objects of the Main Content Page
    attachedObjects: [
        ComponentDefinition {
            id: pillDetailPageDefinition
            source: "PillDetailPage.qml"
        } //ComponentDefinition
    ]
}

Some superfluous code (user interface format stuff) has been removed. I did essentially the same thing with the grid list Basic project template.  Help, please!  My only guess is that perhaps he does not know which is the data model, once he is out of main.qml. Is there something in c ++ I have to do or something I should even in the QML?

There is no runtime error and the app loaded successfully, with the only problem being that when I click on a list item, there is no response/transition to the details page.

However, I found a solution of mine.  I pushed my detail view using a function that is called in the onTriggered signal in the list. Copy the following code is a basic example of what I mean I did simply by separating the code of the project template "grid with details view:

//main.qml
// Grid view with detail project template
import bb.cascades 1.0

NavigationPane {
    id: navigationPane

    firstPage: MainPageContent {}

    attachedObjects: [
        ComponentDefinition {
            id: secondPageDefinition
            source: "DetailPage.qml"
        }
    ]

    function setDetailItem(item) {
        // show detail page
        var page = secondPageDefinition.createObject();
        page.text = item.text
        page.image = item.image
        navigationPane.push(page)
    }
    onCreationCompleted: {
        // this slot is called when declarative scene is created
        // write post creation initialization here
        console.log("NavigationPane - onCreationCompleted()")

        // enable layout to adapt to the device rotation
        // don't forget to enable screen rotation in bar-bescriptor.xml (Application->Orientation->Auto-orient)
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
    }
}
//MainPageContent.qml
import bb.cascades 1.0

Page {
    id: pgMain
    content: Container {
        ListView {
            id: listView
            // set object name to let listView to be discoverable from C++
            objectName: "listView"
            layout: GridListLayout {
            }
            listItemComponents: [
                // define component which will represent list item GUI appearence
                ListItemComponent {
                    type: "item"
                    // list item GUI appearence component is defined in external MyListItem.qml file
                    MyListItem {
                    }
                }
            ]
            onTriggered: {
                console.log("selected_index: " + indexPath)
                var curr_item = dataModel.data(indexPath)
                // show detail page for selected item
                setDetailItem(curr_item)
            }
            horizontalAlignment: HorizontalAlignment.Fill
            layoutProperties: StackLayoutProperties {
                spaceQuota: 1.0
            }
        }
    }
}

Since I saw your response until after that I had changed my code, I can't test, but it can work.  Thanks for the help!

Tags: BlackBerry Developers

Similar Questions

  • Could not load the manifest attribute of the main class of C:\program files\frostwire\commons - connect

    original title: I need to know what means this message and I can remove it from my computer

    doess someone knows what this message means? Could not load the manifest attribute of the main class of C; \program files\frostwire\commons-logging, pot every time I look at this subject in my file, it appears, I'm not good at all with computers but I know im short-term memory or space on this computer and I tried to go into my programs and delete, can you please help me understand what I can and can not delete to give me more space? Thanks, im running Windows Vista! If you would like more information, I'm sorry, just ask me? Thanks again, I hope someone can help me! :(

    This discussion forum on Microsoft Security Essentials antimalware. You can get help in the Microsoft Vista answers forums - http://answers.microsoft.com/en-us/windows/forum/windows_vista

    Jim

  • Access the main object of a SWF file in memory

    Hey.

    I'm trying to access the main object of a SWF file in memory. Consider the following code:

    package test {}
    import flash.display.Sprite;
    import flash.utils.ByteArray;

    SerializableAttribute public class Main extends Sprite {}
    public void Main (): void {}
    var b:ByteArray = new ByteArray();
    b.writeObject (this); This main object is what I'm trying to access
    }
    }
    }

    However, when I do a trace (b.length), the value I get does not match the length of the actual SWF file, then perhaps that there is another way.

    I am trying to achieve the same type of content that you would get if you load an external SWF using loadBytes, unless I want to access the principal object of SWF (running in memory) in this way.

    I have this even possible?

    Thank you.

    Hey.

    Well, I never knew a solution to it (if it is still possible to what I asked). However, I believe that I've implemented a workaround solution that should be enough for my needs. Perhaps it may help someone else too:

    Although I can not (seem to) get the SWF running access itself to memory, I can load another copy of itself. When I tested the copy loaded (in memory) and compared with the content of the file on the disk, using a hex editor, content match!

    This allows me to do things like control totals and which do not. An implementation is to use this technique to guard against the 'cache-hacking' of sovereign wealth funds.

  • Can't push to the navigation of a component outside the main.qml pane

    Here's some of my main.qml

     Container {
                id: main_content
    
                attachedObjects: [
    
                    ComponentDefinition {
                        id: listtodo
                        source: "mainList.qml"
                    }
                ]
    
                property variant listtodoObj
    
                onCreationCompleted: {
                    listtodoObj = listtodo.createObject();
                    if (!listtodoObj)
                        listtodoObj = listtodo.createObject();
    
                    listtodoObj.dataModel = Model.get();
                    main_content.add(listtodoObj);
                }   
    
            }
    

    I have not included of NavigationPane, but in the hand, I have a pane of navigation with the id "navigationPane.

    Here's the part of my mainList.qml:

    gestureHandlers: [
    
                        TapHandler {
    
                            attachedObjects: ComponentDefinition {
                                id: infoPage;
                                source: "asset:///taskInfo.qml"
                            }
    
                            onTapped: {
    
                                var page = infoPage.createObject();
    
                                navigationPage.push(page);                     
    
                            }
                        }
                    ]
    

    But I can't access navigationPane. In the console it says: "cannot find variable: navigationPage.

    What can I do?

    This should help:
    http://supportforums.BlackBerry.com/T5/native-development-knowledge/how-to-access-QML-properties-fro...

  • Is it possible to place an object/image in the same exact spot through different files?

    I have 4 files that I need to change the image of brand for all 4 logo.  The image must be in the exact same task on all 4 files.  Anyway is to align different files? or any other ideas?

    Thank you

    I think that you do not want to stick it in place. The keyboard shortcut is Cmd (Ctrl) - SHIFT - V. place the logo where you want on the first plan of work, copy with her still active, activate the next work plan and use the paste in place. Repeat on other work plans.

  • failed to load attribute shows the main class of a java file

    Unable to open this file KJV.jar response from my computer was as stated above

    Try the steps from the link give below

    http://www.ehow.com/how_5021615_execute-jar-file.html

  • Links in the main menu works is not only on a single page

    I've implemented a master who has my vertical menu and gray a box on it, it's on every page outside the home page which has no mast and its own horizontal menu. Pages fine apart from 'COMMERCIAL' for a reason any, whenever I go to this page, I can't use the 'LIFESTYLE' or 'HOME' links in the menu, which is strange, because it's the same control all other pages we're working on and they all work very well.

    Here is the site: www.archiestephens.co.uk

    Im guessing this is just a small problem, but how the sorting?

    See you soon

    Archie

    Hello

    Please look at the screenshot below. It seems that the image of the Logo used in the page is overlap the vertical navigation.

    You can create a new layer in the layers of Muse Panel and switch the vertical navigation to the top layer. This should fix the problem for you.

    Concerning

    Vivek

  • Declaring new file c ++ for the new qml file

    I have a qml file, the button I click on function Boutonclique clal

    #include "applicationui.hpp"
    #include "homepage.hpp"
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    using namespace bb::cascades;
    
    AbstractPane *root;
    ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
            QObject(app)
    {
    
        m_pTranslator = new QTranslator(this);
        m_pLocaleHandler = new LocaleHandler(this);
    
        bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
    
        Q_ASSERT(res);
        Q_UNUSED(res);
        onSystemLanguageChanged();
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // Create root object for the UI
        root = qml->createRootObject();
        if (!qml->hasErrors()) {
    
                qml->setContextProperty("quoteApp", this);
            }
        // Set created root object as the application scene
        app->setScene(root);
    }
    
    void ApplicationUI::onSystemLanguageChanged()
    {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString("Test1_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
        }
    }
    void ApplicationUI::clickedButton()
    {
    HomePage home = new HomePage(this);
    
    }
    

    Homepage.cpp

    #include "homepage.hpp"
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    using namespace bb::cascades;
    
    HomePage::HomePage(bb::cascades::Application *app):
                    QObject(app) {
    
            m_pTranslator = new QTranslator(this);
            m_pLocaleHandler = new LocaleHandler(this);
    
            bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
    
            Q_ASSERT(res);
            Q_UNUSED(res);
            onSystemLanguageChanged();
                QmlDocument *qml = QmlDocument::create("asset:///homepage.qml").parent(this);
                NavigationPane *myNavi = root->findChild("myNavi");
                if (myNavi == NULL){
                    qDebug() << "Unable find NavigationPane";
                    return;
                }
                Page *new_page = qml->createRootObject();
                if (new_page){
                    myNavi->push(new_page);
                }else{
                    return;
                }
                Application::instance()->setScene(myNavi);
    }
    
    void HomePage::onSystemLanguageChanged()
    {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString("Test1_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
        }
    }
    

    Homepage. HPP

    #ifndef HOMEPAGE_H_
    #define HOMEPAGE_H_
    
    #include 
    
    namespace bb
    {
        namespace cascades
        {
            class Application;
            class LocaleHandler;
        }
    }
    
    class QTranslator;
    
    /*!
     * @brief Application object
     *
     *
     */
    
    class HomePage : public QObject
    {
        Q_OBJECT
    public:
        HomePage(bb::cascades::Application *app);
        virtual ~HomePage() { }
        Q_INVOKABLE void clickedButton();
    private slots:
        void onSystemLanguageChanged();
    private:
        QTranslator* m_pTranslator;
        bb::cascades::LocaleHandler* m_pLocaleHandler;
    };
    
    #endif /* ApplicationUI_HPP_ */
    

    I get in homepage.cpp root is not declared in this scope. I want to click on the main.qml button, I go to new file c ++ and call homepage.qml

    Hello
    I highly recommend investing a few weeks in learning C++ before learning the stunts. Specifically, these topics:
    -Advance declaring types
    -Memory management
    -Classes & inheritance (different from Java, a lot)
    -Life management object qt (parent/child, order of destruction of object relationship)

    These are essential, but we can't really help with them in the form of forum.

    On the compile error, this should probably fix:

    Homepage * home = new HomePage (NULL);

    But there are other problems in the statement of homepage. It's the manufacturer probably shouldn't take an instance of class ApplicationUI as the parameter.

  • Reload main.qml

    Can someone tell me how I could reload the main.qml completely?

    This is how it is created at startup

        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("_app", this);
        // Create root object for the UI
        AbstractPane *root = qml->createRootObject();
        // Set created root object as the application scene
        Application::instance()->setScene(root);
    

    I want the old main.qml should be deleted and a new creation.

    I'm not so good with c ++ so any help is welcome

    Thanks in advance

    You can call setScene with a different component.

    the question is: why would you do that?
    Usually, you can use a spreadsheet to display a deviation from the regular workflow.

  • Can I use "If", "else" statement in main.qml?

    Hello

    What statement I use within the main.qml?

    is there documentation for things and the statement can be used within the mian.qml (e.g. 'if', 'for', 'while')

    Hello

    Engine QML use a JavaScript interpreter.

    that statement is bug in Qt 4.8, so it is better to avoid it or explicit use of braces {} in the case branches. Other than that, it is simply JavaScript.

    Syntax information QML is located on the Web site of the project-qt:

    http://Qt-project.org/doc/Qt-4.8/qdeclarativeintroduction.html

    I suggest you browse the other articles there as well.

  • How to make the Apache configuration for two different areas

    Hello

    I was trying just a few clustering on weblogic workshop. I was facing a problem... Here's the scenario:

    I have two clusters:

    CLUSTER1: 3 managed servers (server1, server2, serveur3)
    Cluster2: 2managed servers (server4, Server5)

    I have two examples of applications I have made on these two clusters i.e on cluster1 app1 and app2 on cluster2.

    These two applications are deployed all as I am able to open these browser applications by calling the individual run as server port: http://localhost:7003 / app1.

    Now, I have installed an apache server on my laptop and configured the http.conf file.


    Question: I am not able to call the application of apache. If there is only a single cluster then it works very well and for an application two that a single cluster (application) only works too which port is set in the last.

    Here are the contents of my httpd.conf file:

    #
    # This is the main Apache HTTP server configuration file. It contains the
    configuration directives # that give the server its instructions.
    # See < URL: http://httpd.apache.org/docs/2.2 > for more information.
    # See especially
    # < URL: http://httpd.apache.org/docs/2.2/mod/directives.html >
    # for an analysis of each configuration directive.
    #
    # Do NOT simply read the instructions here without understanding
    # what they do. They are there only as advice or reminders. If you do not know
    # consult the online documentation. You have been warned.
    #
    # Configuration and logfile names: If the file names that you specify for a lot
    number of files in server control begin by "/" (or "drive: / 'for Win32 '), the
    # server uses this explicit path. If the file names do not start
    # with "/", the value of ServerRoot directive is preceded by - so "logs/foo.log.
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2. 2' will be interpreted by the
    # Server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
    #
    # NOTE: Where file names are specified, you must use forward slashes
    # instead of backslashes (e.g. "c:/apache" instead of "c:\apache").
    # If a drive letter is omitted, the drive on which httpd.exe is located
    # will be used by default. It is recommended that you always provide
    # an explicit drive letter in absolute paths to avoid confusion.

    #
    # ServerRoot: The top of the directory under which the server tree
    # configuration, error and the log files are kept.
    #
    # Do not add a bar slash at the end of the directory path. If you point
    # ServerRoot to non-local disk, remember to point the LockFile directive
    # to a local disk. If you want to share the same multiple ServerRoot
    demons of # httpd, you will need to change at least the LockFile and PidFile.
    #
    ServerRoot "C:/Program Files/Apache Software Foundation/Apache2. 2. "

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    ports #, instead of the default value. See also the < VirtualHost >
    directive #.
    #
    # Change this to listen on specific IP addresses below for
    # prevent Apache glomming on all related IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the features of a module that was built as a DSO you
    # duty place corresponding 'LoadModule' lines at this location until the
    # the directives that it contained are actually available before their use.
    # Modules statically compiled (those listed by "httpd-l") is not necessary
    # to be responsible here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    LoadModule modules/mod_actions.so actions_module
    LoadModule alias_module modules/mod_alias.so
    LoadModule modules/mod_asis.so asis_module
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_alias_module modules/mod_authn_alias.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule modules/mod_authn_default.so authn_default_module
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule modules/mod_authz_default.so authz_default_module
    LoadModule modules/mod_authz_groupfile.so authz_groupfile_module
    LoadModule modules/mod_authz_host.so authz_host_module
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule modules/mod_authz_user.so authz_user_module
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule modules/mod_cgi.so cgi_module
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule dav_module modules/mod_dav.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule dbd_module modules/mod_dbd.so
    Modules/mod_deflate.so deflate_module #LoadModule
    LoadModule modules/mod_dir.so dir_module
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule modules/mod_expires.so expires_module
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule filter_module modules/mod_filter.so
    #LoadModule modules/mod_headers.so headers_module
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule modules/mod_include.so include_module
    #LoadModule info_module modules/mod_info.so
    LoadModule modules/mod_isapi.so isapi_module
    #LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    #LoadModule modules/mod_proxy.so proxy_module
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    Proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule
    Modules/mod_proxy_connect.so proxy_connect_module #LoadModule
    Proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule
    Modules/mod_proxy_http.so proxy_http_module #LoadModule
    #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    Modules/mod_speling.so speling_module #LoadModule
    Modules/mod_ssl.so ssl_module #LoadModule
    #LoadModule modules/mod_status.so status_module
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule modules/mod_wl.so weblogic_module



    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *

    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *


    < IfModule! mpm_netware_module >
    < IfModule! mpm_winnt_module >
    #
    # If you want httpd to run as a different user or group, you must run
    # httpd as root initially and it will pass.
    #
    # Group / user: the name (or #number) of the user/group to run httpd as.
    # It is generally advisable to create a dedicated and aggregatable for user
    # httpd, as with most system services are running.
    #
    Demon of the user
    Daemon group

    < / IfModule >
    < / IfModule >

    Server configuration # 'hand '.
    #
    # The directives in this section implement the values used by the 'hand '.
    # Server, which meets all demands that are not managed by a
    definition of # < VirtualHost >. These values also provide defaults for
    # all < VirtualHost > containers you can set later in the file.
    #
    # All these directives may appear inside containers < VirtualHost >,.
    # in which case the value default parameters will be substituted for the
    virtual host of # being defined.
    #

    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mail. This address appears on some generated by the page server, such
    # as error documents. for example [email protected]
    #
    ServerAdmin < adminurl >
    #
    # ServerName gives the name and the port used by the server to identify itself.
    # This can often be determined automatically, but we recommend that you specify
    # explicitly to avoid problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName < servername >
    # DocumentRoot: The directory you are going to use your
    documents #. By default, all requests are taken from this directory, but
    aliases and symlinks # can be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs".

    #
    # Each directory that Apache has access can be configured in respect
    # to which services and features are allowed and/or disabled in this
    # Directory (and its subdirectories).
    #
    # Everything first, we configure the 'default' to be a very restrictive of game
    features #.
    #
    < directory / >
    Options FollowSymLinks
    AllowOverride None
    Order deny, allow
    Refuse to all the
    < / Book >

    #
    # Note that, from this point forward you must precisely enable
    features special # to be enabled - so if something doesn't work not as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # This should be replaced by what you set DocumentRoot.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" >
    #
    # Possible values for the Options directive are "None", "All."
    # or any combination of:
    # Indexes includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named explicitly -'all Options '.
    # is not give it to you.
    #
    # The Options directive is complex and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # For more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be 'All', 'None', or any combination of key words:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow, deny
    Allow all the

    < / Book >

    #
    # DirectoryIndex: sets the file Apache will serve if a directory
    # is requested.
    #
    < IfModule dir_module >
    DirectoryIndex index.html
    < / IfModule >

    #
    # The following lines prevent the .htaccess and .htpasswd files to be
    # seen by customers of the Web.
    #
    < FilesMatch "^ \.ht" > "".
    Order allow, deny
    Refuse to all the
    Meet all
    < / FilesMatch >

    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive in a < VirtualHost >
    # container, error messages related to this virtual host will be
    # logged here. If you do define a for a < VirtualHost > error log
    container of #, that host errors will be logged there and not here.
    #
    ErrorLog logs / 'error.log '.

    #
    # LogLevel: Control the number of messages in the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,.
    # emerg, alert.
    #
    LogLevel warn

    < IfModule log_config_module >
    #
    # The following directives define some nicknames format for use with
    # a directive CustomLog (see below).
    #
    "LogFormat '%%u %t \"%r\ hour' % > s \"%{Referer}i\ %b" \"%{User-Agent}i\" "handset"
    "LogFormat '%%u %t \"%r\ hour' % > s %b "commune

    < IfModule logio_module >
    # You must enable mod_logio.c use %I and frequency
    "" LogFormat '%%u %t \"%r\ hour' % > s %b \"%{Referer}i\ "\"%{User-Agent}i\ "%I %o "combinedio
    < / IfModule >

    #
    # The location and format of the access (Common Log Format) log file.
    # If you do not have any logfiles access set in a < VirtualHost >
    container of #, they will be saved here. On the other hand, if you the do
    # define per - < VirtualHost > access logfiles, transactions will be
    # logged there and not in this file.
    #
    Common CustomLog "logs/access.log.

    #
    # If you prefer a log file of access, agent, and referer information
    # (Combined logfile format) you can use the following directive.
    #
    #CustomLog "logs/access.log' combined
    < / IfModule >

    < IfModule alias_module >
    #
    # Redirect: Allows to tell clients the documents used for
    # exist in your server's namespace, but no more. The customer
    # make a new request for the document at its new location.
    # Example:
    # Redirect permanent/foo http:// < url >/bar

    #
    # Alias: Maps web paths into paths of file system and is used to
    # access content that don't live under the DocumentRoot directive.
    # Example:
    # Alias /webpath/full/filesystem/path
    #
    # If you include a trailing / on /webpath, then the server will be
    # require that he be present in the URL. It is also likely that
    # duty provide a < Directory > section to allow access to
    # the path to the file system.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as assumed names, except that
    # documents in the target directory are treated as applications and
    # executed by the server on demand, rather than as documents sent to the
    client of #. The same regulation on flight "/" applies to the ScriptAlias
    # as for the Alias directives.
    #
    ScriptAlias/cgi-bin / "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/".

    < / IfModule >

    < IfModule cgid_module >
    #
    # ScriptSock: On threaded servers, refers to the access path to the UNIX
    decision # used to communicate with the CGI mod_cgid daemon.
    #
    Newspapers/cgisock #Scriptsock
    < / IfModule >

    #
    # "C:/Program Files / Apache Software Foundation/Apache2.2/cgi-bin" should be replaced by everything that your ScriptAlias
    # CGI directory exists, if you have set up.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" >
    AllowOverride None
    None of the options
    Order allow, deny
    Allow all the
    < / Book >

    #
    # DefaultType: Server default MIME type used for a document
    # If it cannot establish also as file name extensions.
    # If your server contains mainly text or HTML documents, it is "text/plain".
    # a good value. If your content is binary, such as applications
    # or images, you can use "application/octet-stream" instead of
    # Keep browsers try to view binary files, as if they were
    # text.
    #
    DefaultType text/plain

    < IfModule mime_module >
    #
    # TypesConfig points to the file containing the list of mappings from
    # MIME file extension - type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add or replace the MIME configuration
    # the file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress. Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented out, then you
    # should probably define these extensions to indicate media types:
    #
    AddType application/x-compress. Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain "manipulators": file extensions
    # No actions associated with the file type. It can be either integrated into the server
    # or added to the directive of the Action (see below)
    #
    # To use CGI outside of ScriptAlias directories scripts:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For maps of type (negotiated resources):
    #AddHandler type-plan of the var

    #
    # Filters allow you to process content before sending it to the client.
    #
    # To parse .shtml for server-side includes (SSI) files:
    # (You will also need to add "Includes" the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    < / IfModule >

    #
    # The mod_mime_magic module allows the server to use various boards of the
    content of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the definitions of suspicion.
    #
    #MIMEMagicFile conf/magic

    #
    # Customizable error responses come in three flavors:
    ((# 1) text 2) local redirects 3) external redirects
    #
    # Examples:
    #Error Document 500 "The server made a boo boo".
    #Error Document 404 Missing.html
    #Error Document 404 "/cgi-bin/missing_handler.pl"
    #Error Document 402 subscription_info.html < url >
    #

    #
    # EnableMMAP and EnableSendfile: on systems that support.
    projection in memory # or the sendfile syscall is used to deliver
    # files. Usually, this improves the performance of the server, but must
    # turn off when mounted network is served
    # file systems or if support for these functions is also
    # broken on your system.
    #
    #EnableMMAP off
    #EnableSendfile off

    # Additional configuration
    #
    # The configuration files in the conf/extra/directory can be
    # included to add additional features or change the default configuration
    # the server, or you can simply copy their content here and change as
    # necessary.

    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf

    # Multilingual error messages
    #Include conf/extra/httpd-multilang-errordoc.conf

    # Entries to the fancy directory
    #Include conf/extra/httpd-autoindex.conf

    # Language settings
    #Include conf/extra/httpd-languages.conf

    # User directories
    #Include conf/extra/httpd-userdir.conf

    # Info in real time on the applications and configuration
    #Include conf/extra/httpd-info.conf

    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf

    # Local access to the manual for the Apache HTTP Server
    #Include conf/extra/httpd-manual.conf

    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf

    # Various default settings
    #Include conf/extra/httpd-default.conf

    # Secure connections (SSL/TLS)
    #Include conf/extra/httpd-ssl.conf
    #
    # Note: The following text should be present to support
    # start without SSL on platforms without equivalent/dev/random
    but # a statically compiled in mod_ssl.
    #
    < IfModule ssl_module >
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    < / IfModule >

    This is so for the app2 only configuration above, I am able to call and app1 his adage "404 page not found".

    Can soomebody help me cofiguring apache so that I can call the two applications.


    Thank you
    Ankit

    >

    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104

    DebugConfigInfo WE
    PathTrim /weblogic


    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic

    >

    This configuration is a little weird. He has /app1 MatchExpression and MatchExpression /app2 and at the same time two sections . Are you sure you understand what means that the configuration?

    Try something like this...


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE

    where /app1 and /app2 are your weblogic applications contexts.

    http://download.Oracle.com/docs/CD/E11035_01/WLS100/plugins/Apache.html
    http://httpd.Apache.org/docs/2.0/mod/core.html#location

  • messages between the main thread and the FX application thread

    I run a thread of the Application of FX for a main thread using Application.launch [described here: {: identifier of the thread = 2530636}]

    I try to have the application thread return information on the main thread, but Application.launch returns void. Is there an easy way to communicate between the main thread and the thread of the Application?

    So far, I googled and found:
    -MOM (Message Oriented Middleware)
    -Sockets

    Thoughts/ideas/examples are appreciated--especially examples ;)--now I try to use Sockets to show/hide the application and data transmission.

    What is the preferred method? Are there others that I did not find (gasp) via Google?

    Dave.

    Published by: cr0ck3t on April 30, 2013 21:04

    Published by: cr0ck3t on April 30, 2013 21:05

    Is there an easy way to get a reference to these objects to both the main thread and the thread of Application FX - called via Application.launch () since the main thread? Or what I need to use Sockets or MOM?

    Not much to do with the concurrent programming is what I would call easy. It looks easy - but it's not.
    You can do kind of what you're describing using Java concurrency constructs without using sockets or a package of Message Oriented Middleware (MOM).
    With the Java concurrency stuff you really implement your own form or MOM light.
    If you have quite an application is complex with many messages of comes and goes, then a sort of package for MOM such as the camel and ActiveMQ (http://camel.apache.org) is useful.
    ---------
    You can find a sample of the various interactions of thread with JavaFX here:
    https://gist.github.com/jewelsea/5500981 "Simulation of dwarf dragons using multiple threads to eat."
    Related code is just demo-ware to try different competitive access facilities and not necessarily a recommended strategy.
    If your curiosity, you can take a look and try to work out what it is, what it does and how it does.
    The main reason followed is that of a blocking queue:
    http://docs.Oracle.com/javase/6/docs/API/Java/util/concurrent/BlockingQueue.html
    ---------
    Note that once you call launch of the main thread, no subsequent statement in the main method will be different until the JavaFX application terminates. If you can't start from the main thread and communicate with the main thread JavaFX application. Instead, you need to spawn another thread (or a set of threads) for communication with the JavaFX application.
    ---------
    But really, in most cases, the best solution with the simultaneity is not care at all (or at least as little as possible). Write everything in JavaFX, use the animation of JavaFX framework to time related things and the simultaneity of JavaFX utilities for when you really need multiple interaction of wire.
    http://docs.Oracle.com/JavaFX/2/threads/jfxpub-threads.htm
    ----------
    For additional assistance, you may be better off describing exactly (i.e. really specific) what you're trying to make in a new question, perhaps with a solution of the sample in a http://sscce.org NBS

  • Targeting of evil to a button on the main timeline for a VideoEventComplete at work

    I have a .fla file that has buttons on the main timeline that target frames in a mc named 'pages' in a table.  The 'pages' are implemented in the form of frames each five images or as a slide show where the buttons advance or return to the previous page.  I want to make invisible buttons until frame 30 video is complete (page 4).  When I insert the code below in the main timeline, the button becomes invisible, but there is no event that will finish to come back only to show the button so it sits right there with no way to advance as the buton is invisible,

    Then... How to target the button to only be invisible when it has an event video complete but not not start before 30 (page 4) image of the mc and then do it again in the 35 framework etc.

    I tried to put it in the main timeline and on the frame of the first video.  If I'm on it within the pages don't need to point the code on the main timeline to get code know where are the buttons? Something like main_timeline.nextbtn etc... ?

    The code in the settings:

    Stop()

    Import fl.video.VideoEvent;

    THIS BUTTON IS LOCATED IN THE MAINTIMELINE\\
    nextBtn.visible = false;
    addEventListener (VideoEvent.COMPLETE, doNextFrame);

    function doNextFrame(e:VideoEvent):void {}
    nextBtn.visible = true;

    pages.nextFrame)
    }

    All the code is:

    THE CODE of the MAIN SCENARIO is:

    Listeners of button

    import of flash.media.SoundMixer;// it comes to the


    nextBtn.addEventListener (MouseEvent.CLICK, nextSection);
    prevBtn.addEventListener (MouseEvent.CLICK, prevSection);

    ///////////////////////////////////////////////////////////////////////////

    function nextSection(event:MouseEvent):void {}

    var thisLabel:String = pages.currentLabel; Gets the current image under chain tag
    var thisLabelNum:String = thisLabel.replace ("sct", ""); cut the main letters off the number
    var curNumber:Number = Number (thisLabelNum); Converts this string to a real number number
    If (curNumber < 18)

    {

    var nextNum:Number = curNumber + 1;
    pages.gotoAndStop ("sct" + nextNum);

    }

    SoundMixer.stopAll (); Place it inside your functions

    }
    ///////////////////////////////////////////////////////////////////////////
    function prevSection(event:MouseEvent):void {}

    var thisLabel:String = pages.currentLabel; Gets the current image under chain tag
    var thisLabelNum:String = thisLabel.replace ("sct", ""); cut the main letters off the number
    var curNumber:Number = Number (thisLabelNum); Converts this string to a real number number
    var prevNum:Number = curNumber - 1; subtract 1 from the number, so we can go to the next image tag
    pages.gotoAndStop ("sct" + prevNum); This allows us to go to the previous image tag

    SoundMixer.stopAll (); Place it inside your functions


    }

    Please Note: it started in a previous discussion, but I think that I was confused that the question so go fresh here, thank you so much for the time on this

    I can't say I'm immune to be confused by the story you tell, but I'll take a stab to offer what could be a solution.  If the buttons are in the main scenario and the code that you want to make visible with in a movieclip which lives on the main timeline, then you can target the buttons from inside and using movie...

    MovieClip (parent).nextBtn.visible = true;

    MovieClip (parent).prevBtn.visible = true;

  • Moving to the main scenario loader information

    Im trying to create a gallery in flash app.

    I created a music video, and inside, I create a loader variable.

    After loading it I want to put it on stage, but not using the same charger.

    what im trying Todo is to load the information and a copy of the information in a different charger, who lives on the main timeline (root)

    and then use the addChild to put on stage but its got to be on the main timeline or a different movieclip, not the same movieclip loaded object.

    does any1 know how I can do?

    Can I publish the source code?

    Using the Loader class it is actually possible to addChild to any timeline, regardless of where you set the variable in loader. Simply do something like this:

    parent.addChild (loader)

  • How to put Flash files on your HTML page?

    I saw one source codes http://www.razerzone.com/blade, I uploaded all the swf files and them tied to my page but I can't display the pre-loader and my page just generally charges. I downloaded: swfobjects.js and swfaddress.js. Blade.swf I used the following script:

    < script type = "text/javascript" src = "swfobject.js" > < / script >
    < script type = "text/javascript" src = "swfaddress.js" > < / script >

    < script type = "text/javascript" >
    var flashvars = {}
    domain: ' *'.
    path: "Blade.swf".
    }
    var params = {}
    menu: 'false. '
    wmode: "transparent."
    allowScriptAccess: "always"
    };

    swfobject.embedSWF ('Blade.swf ', 'website', 100% ', '710px', '9.0.0?', 'expressInstall.swf", flashvars, params, {id: 'site Web'});

    < /script >

    Here is my site: http://sujayshinodaweb.TK

    A Flash preloader has nothing what so ever to do with HTML and is never added to HTML to load files Flash. It is created under the main .swf, not a separate file.

    Flash preloader is created in the first images of the FLA Flash file. It measures the amount of data that has already been downloaded compared to the total amount of data of the entire .swf file. Once this amount 100%, it goes down the playhead to Flash the main storyline in this area of the timeline that contains the main content. So preloader can occupy the 1-5 images, once the amount of downloaded data reaches 100%, the playhead moves to frame 6 and playes the rest of the timeline.

    For more information and review Google works preload.

    Best wishes

    Adninjastrator

Maybe you are looking for

  • Why does a file of type ._filename appear on television, but not on Mac

    Why do a. _filename.jpg file appears on television, but not on Mac? When I use a USB "thumb DRIVE" on my TV to show the photos as the slides a bunch of files with the prefix ".» _"appears, and should be deleted until I can show the real slides. Where

  • Strength of app drawer closes in on key research

    When the App drawer is opened and I press the search button, the strength of the home screen closes with the following message: "The app Homescreen (process com.motorola.home) has stopped unexpectedly. Please try again. » It happens regularly. Does a

  • Why my printer scan used

    I can't get my scanner to work Judy Doane

  • problem of Modbus

    Hello world I'm trying to contact card ADAM 4024 (4 ch analog outputs). I use the Modbus communication. Please check the error Image I receive. Please explain the reason for the error. Thank you in advance.

  • Necessary recovery for COMPAQ CQ70 disk

    I HAVE LAPTOP OF COMPAQ PRESARIO CQ70-127NR LAPTOP PC,. I LOST RECOVERY DISCS (DISC 2 CD SET) NOW WHAT TO DO. Tell me I HAVE LIC. PRODUCT AND BUY OFFICIAL WITH LAPTOP BUT HOW I RECEIVED THE NEW RECOVERY DISC