Implement forms in different .mxml files

Hi!
I'm starting developing an application with Flex wich will
have differente views. I wonder if it is possible to implement each
view in a different .mxml file and how to do it. I now it is
possible to define states but what I want is to define different
forms (that probably would have states).
Any help will be appreciated.
Thank you.

Yes, you can create separate .mxml files for just about
anything. So you could create a new .mxml for each "form" view
where <mx:Form> is the root of each file.
States apply only to the file they are defined in, so you can
have a form with different states based on form item selection. I
can then nest components with states within on another.
Also, as Greg points out, "States" are not used for
navigation, that is what the navigator containers are for. (i.e.
ViewStack, TabNavigator, etc...) States are for modifying a
component slightly based on an event.
Using your example, if a user selects a specific option in a
ComboBox, you add another TextInput to the form. In a more generic
example, you display a catalog of products. When the user mouses
over a product, the image is highlighted and an add to cart button
appears.
HTH

Similar Messages

  • Access a component in an mxml file from a different mxml file

    Hi,
    I want to access a component in an mxml file 1 such as this one  <mx:Image id="img" width="101" height="200" source="{product.image}"/> using the
    id
    from the actionscript function from a different mxml file 2
    public function init():void
           HERE.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );    
    so i can make it dragable, Please help me  in this if u can urgently!!!!

    okay,
    I have the image component in ProductCatalogThumbnail.mxml, which has an id of "img"
    so, i created a public variable in the file and a public function that returns the value of the object.
    public var imagecopy:Object;
            [Bindable]
             public function imagecopyfunction():Object{
             imagecopy  = img;
             return imagecopy;
    now, I want to access this image in the mxml file ProductList.mxml in a function
      public function init():void
          ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          //this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
    I tried to use the variable, and then i tried to use the function:
    I got this error when I tried the variable : 1119: Access of possibly undefined property imagecopy through a reference with static type Class.
    ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    and this error when i tried the function:  1061: Call to a possibly undefined method imagecopyfunction through a reference with static type Class.
    ProductCatalogThumbnail.imagecopyfunction().addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    i made sure i imported ProductCatalogThumbnail file in the beginning of my application.
    I am not sure what went wrong.

  • Number of states vs more .mxml files

    I am trying th figure out the best approach.  After login I change states and have a menu that can do is 7 different direction based on selection.
    What is the advantage/disadvantage of changing the state of the current .mxml file verses having 7 different mxml files?
    Thanks,
    Pete

    Right now I am developing an application and I have my main application with the following components.
    AppHeader
    AppFooter
    AppContent
    Then the AppContent MXML file contains many states for the different menus, around 7.
    These states show one at a time using a TabNavigator to display the content is the one section of the screen.
    One of the states has another set of nested components
    Right now I am having a VERY difficult time getting information into my database. I think it is because of the number of states and components. I am coming to believe that you have to be at the application mxml file to send information but I could be wrong. The only problem with components and state nesting is that it can get out of control quickly. It might better to refactor the application. I plan on doing this after the initial assessment from my managers.

  • Werid problem about 'implements' in mxml file.

    Hi, all:
    There are more than 50 modules in my project, We build it with flexmojos 4.0-alpha-5. Most of the time, I goes well, but built failed occasionally, error message as fllows:
    Error: Cannot resolve attribute 'implements' for component type spark.components.Group.
    All errors come from mxml file that implements some interface, for example:
    <Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                  implements="some.interfaces.name">
    </Group>
    some elements in my pom.xml:
    <configurationReport>false
    <useNetwork>true
    <verifyDigests>true
    <linkReportAttch>false
    <sizeReportAttch>false
    <AllowSourcePathOverlap>true
    <staticLinkRuntimeShareLibraries>false
    <quick>false
    <optimize>true
    Flex compiler version:4.5.1.21328
    Anybody got some error like that? or give me some advice for it, thanks for advance.

    Thanks, Craberoid.
    We tried 4.2, but error occoured as before.
    More than 50 modules use 20g+ memory to build, that is flexmojos's another problem, so we changed maven to Ant... it work well.

  • Passing parameters between mxml files(used in viewstack).

    Hi All,
       In login page, I'm calling RemoteObject method for validating user credentials. In login success, I'd like to keep user name in a variable and call menu page where it is having menu for the application. In menu.xml file, I'm putting home tab is a default selection.
        Depending upon login username it should fetch data for displaying DataGrid in home page. Please find my code
       //Login Page Begin(login.mxml)
      <mx:Script >
            <![CDATA[
       private function login_resultHandler(event:ResultEvent):void
                    userdetails = event.result as ArrayCollection
                    Alert.show("userdetails 0:",userdetails.getItemAt(0).toString());
                    Alert.show("userdetails 1:",userdetails.getItemAt(1).toString());
                    if(userdetails!=null && userdetails.length>=1)
                        login_ViewStack.selectedIndex=1;
                    else
                        loginmessage.visible=true;
    ]]>
        </mx:Script>
       <mx:ViewStack x="0" y="0" id="login_ViewStack" width="100%" height="100%" creationPolicy="all" borderStyle="solid">
            <mx:Canvas label="loginpage" width="100%" height="100%">
                <mx:Form x="213" y="137" height="153" width="348">
                    <mx:FormItem width="262" required="false" height="25" label="Username: " fontSize="14" fontWeight="bold">
                        <mx:TextInput id="username_text"/>
                    </mx:FormItem>
                    <mx:FormItem label="Password: " fontSize="14" fontWeight="bold" width="262">
                        <mx:TextInput id="password_text" displayAsPassword="true" enter="ro_login.checkLogin(username_text.text,password_text.text);"/>
                    </mx:FormItem>
                    <mx:FormItem width="265">
                    </mx:FormItem>
                    <mx:FormItem width="251" label="" horizontalAlign="center">
                        <mx:Button label="login" click="ro_login.checkLogin(username_text.text,password_text.text);"/>
                    </mx:FormItem>
                </mx:Form>
                <mx:FormHeading x="213" y="109" label="Login Page" width="124" fontWeight="bold" fontSize="16"/>
                <mx:Text x="213" y="83" text="Invalid Username and password" id="loginmessage" color="#F43D13" fontSize="16" fontWeight="bold" visible="false"/>
            </mx:Canvas>
            <local:menu id="menu_setup" label="" xmlns:local="*"/>
            </mx:ViewStack>
       //Login Page End
       In checkLogin method, it is validating username/password. and I'm selecting view stack '1' for displaying menu.
      //Menu Page Begin(menu.mxml)
      <mx:Script >
             <![CDATA[
    public function init(): void{        
                myViewStack.visible=true;
                selectedmenu="HOME";
    ]]>
         </mx:Script>
      <mx:Panel  width="100%" height="100%" layout="absolute">
            <mx:ToggleButtonBar id="mainmenu" width="60%" height="39" itemClick="fillsubmenu(event);" dataProvider="myViewStack" buttonMode="true" autoLayout="true" styleName="mystyle" x="118"/>
            <mx:ViewStack id="myViewStack" borderStyle="solid" width="100%" height="465" creationPolicy="all" visible="true"  y="67" x="10">
                <local:home id="page1" label="HOME" xmlns:local="*"/>
                <local:newcontact id="page2" label="NEW CONTACT" xmlns:local="*"/>
                <local:search id="page3" label="SEARCH" xmlns:local="*"/>
                <local:help id="page4" label="HELP" xmlns:local="*"/>
            </mx:ViewStack>
        </mx:Panel>
    </mx:Canvas>
      //Menu Page End
      //HOME Page Begin(menu.mxml)
      <mx:RemoteObject id="ro_records" destination="inquiryService" result="getInquries_resultHandler(event)"
                         endpoint="http://localhost:7001/flexbb/spring/messagebroker/amf">
            <mx:method name="getInquires" result="getInquries_resultHandler(event)"/>
        </mx:RemoteObject>
        <mx:DataGrid id="dg" width="100%" height="100%">
                <mx:columns>
                    <mx:DataGridColumn dataField="inquiry_id" headerText="Report Id"/>
                    <mx:DataGridColumn dataField="inquiry_type" headerText="Report Type"/>
                    <mx:DataGridColumn dataField="full_name" headerText=" Consumer Name"/>
                </mx:columns>
          </mx:DataGrid>
      //HOME Page End
       I'm having following questions:
       How to keep username in session scope. Need to be accessed in all pages.
       How to pass username from login page to home page.
       In HOME page, if I mention 'creationComplete="ro_records.getinquires()"' it will be invoked when I call login.mxml file, so how to invoke getinquires() method passing username when login is successful.
       Thanks in advance.
    Regards,
    Sharath.

    If this post answered your question or helped, please mark it as such.
    To keep username in session scope, so it can be accessed in all pages, and to pass the user name from login to home page, you use custom events, as in my example application. The Flex project archive is attached, but here is the code:
    -------------- assets\css\appHeader.css -----------------
    /* CSS file */
    .welcomeLabel{
      fontSize: 20;
      color: #FFFFFF;
      left: 50;
      verticalCenter: 0;
    .titleLabel{
      horizontalCenter: 0;
      verticalCenter: 0;
      fontSize: 24;
    .loginButton{
      right: 30;
      verticalCenter: 0; 
    ---------------- com\westernstates\classes\controller\WesternStatesController.as -------------------
    package com.westernstates.classes.controller
      import com.westernstates.classes.events.*;
      import com.westernstates.classes.model.*;
      import flash.display.DisplayObject;
      import flash.events.Event;
      import mx.core.UIComponent;
      import mx.events.FlexEvent;
      import mx.managers.PopUpManager;
      // This class forms the "controller" of the MVC (Model-View-Controller)
      // architecture used in this application. Rather than have code in the
      // application and in components, the MVC architecture relies on events
      // handled in the controller.
      // Extend UIComponent so this class has a reference to systemManager,
      // so all events that bubble can be handled.
      public class WesternStatesController extends UIComponent{
        // The constructor uses this classes creationComplete event
        // to call the setupEventListeners method to register events
        // with the controller that allow it to "control" much of the
        // application, and also to popup the Login form.
        public function WesternStatesController(){
          addEventListener( FlexEvent.CREATION_COMPLETE, init);
        // Add event listeners to the system manager so it can handle events
        // of interest bubbling up from anywhere in the application.
        private function init( event:Event ):void{
          systemManager.addEventListener(LoginEvent.LOGIN, login, true);
          systemManager.addEventListener(LoginSuccessEvent.LOGIN_SUCCESS, handleLogin, true);
          systemManager.addEventListener(LoginFailureEvent.LOGIN_FAILURE, handleLogin, true);
          login(new LoginEvent(LoginEvent.LOGIN));
        private function login(evt:LoginEvent):void{
          PopUpManager.addPopUp(WesternStatesModel.appLogin, WesternStatesModel.app as DisplayObject, true); 
        private function handleLogin(evt:LoginEvent):void{
          if(evt.type == LoginSuccessEvent.LOGIN_SUCCESS){
            WesternStatesModel.userInfo.userName = LoginSuccessEvent(evt).userName;
            WesternStatesModel.appHeader.currentState = "loginSuccess";
          }else if(evt.type == LoginFailureEvent.LOGIN_FAILURE){
            WesternStatesModel.appHeader.currentState = "loginFailure";
            WesternStatesModel.appLogin.reset();
    ----------------------- com\westernstates\classes\events\LoginEvent.as -----------------
    package com.westernstates.classes.events
      import flash.events.Event;
      /* This custom event is the base class from which other login related
       * events are derived. This makes it possible to dispatch a login related
       * event and set the loginEventType property, and then in the event handler,
       * check this property and execute based on the login event type.
       * In reality, extending this class doesn't really provide much additional
       * value, but from a conceptual standpoint it might make sense, and as we
       * develop the application further, we might develop this class further.
      public class LoginEvent extends Event{
        public static const LOGIN:String = "login";  
        public function LoginEvent(type:String){
          super(type, true);
    ------------------ com\westernstates\classes\events\LoginFailureEvent.as ------------------
    package com.westernstates.classes.events
      import flash.events.Event;
      // This custom event should be dispatched if the user fails to
      // successfully log into the application.
      public class LoginFailureEvent extends LoginEvent{
        public static const LOGIN_FAILURE:String = "loginFailure";  
        public function LoginFailureEvent(){
          super(LoginFailureEvent.LOGIN_FAILURE);
    ---------------------- com\westernstates\classes\events\LoginSuccessEvent.as -----------------
    package com.westernstates.classes.events
      import flash.events.Event;
      // This custom event should be dispatched if the user
      // successfully logs into the application.
      public class LoginSuccessEvent extends LoginEvent{   
        public static const LOGIN_SUCCESS:String = "loginSuccess"; 
        private var _userName:String;
        public function LoginSuccessEvent(userName:String){
          // Store the username for the user that successfully logged in.
          // The application can access the username from the event object.
          this._userName = userName;
          super(LoginSuccessEvent.LOGIN_SUCCESS);
        // A getter is necessary for the application to be able to access the private
        // variable containing the username for the user that successfully logged in.
        // A setter is unnecessary because the username is determined upon login
        // and there is no reason to change it.
        public function get userName():String{
          return this._userName;
    --------------------- com\westernstates\classes\misc\User.as -----------------
    /* This class is used to store information about the user currently logged in.
       The user's password should not be stored here. Currently only the username
       is stored in this class, but later we will add more data.
    package com.westernstates.classes.misc
      [Bindable]
      public class User
        // The public accessor methods (a getter and a setter) allow us to access this private variable.
        private var _userName:String;
        public function User(){
        public function get userName():String{
          return this._userName;
        public function set userName(user:String):void{
          this._userName = user;
    ------------------ src\com\westernstates\classes\model\WesternStatesModel.as ---------------
    package com.westernstates.classes.model
      import com.westernstates.classes.misc.*;
      import components.*;
      import mx.core.Application;
      // This class forms the "model" of the MVC (Model-View-Controller)
      // architecture used in this application. Data that would otherwise
      // be found in the application or component files are centralized here.
      public class WesternStatesModel{
        // This variable allows us to enforce having only one model object,
        // and provides an entry point to access the data in the model.
        private static var instance:WesternStatesModel;
        // This variable is a convenience obj allowing us to access the
        // main app children when necessary. It would be better to replace
        // this with an event, making even greater use of the MVC architecture.
        public static var app:Object = mx.core.Application.application;
        // This object is used to store information about the user currently logged in.
        [Bindable] public static var userInfo:User = new User();
        // References to UI components.
        public static var appHeader:ApplicationHeader = app.appHeader;
        public static var appLogin:Login = new Login();
        // Ensure only one instance of the model exists at any time (singleton).
        public function WesternStatesModel(){
          if( instance != null ){
            throw( new Error( "There can only be one instance of WesternStatesModel." ) );
        // This method is used throughout to access non-static variables of the model.
        public static function getInstance():WesternStatesModel{
          if( instance == null ){
            instance = new WesternStatesModel();
          return instance;
    -------------------- src\components\ApplicationHeader.mxml ----------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:ApplicationControlBar xmlns:mx="http://www.adobe.com/2006/mxml"
      width="100%" dock="true">
      <mx:Script>
        <![CDATA[
          import com.westernstates.classes.events.*;
          import com.westernstates.classes.model.WesternStatesModel;
          private function logInOut(evt:MouseEvent):void{
            if(evt.currentTarget.label == "Login"){
              this.dispatchEvent(new LoginEvent(LoginEvent.LOGIN));
            }else{
              this.currentState = "";
        ]]>
      </mx:Script>
      <!--
        This component is the docked control bar at the top of the application,
        where we display a welcome message upon successful login, or a login
        error message for login failure. We also have the main application
        title label, and utility buttons such as Logout/Login.
      -->
      <!--
        The external css file supports our architecture of separating the
        definition of the UI from style rendering.
      -->
      <mx:Style source="../assets/css/appHeader.css"/>
      <!--
        States allow us to control changes in the labels and buttons.
        State changes are managed by the controller class.
      -->
      <mx:states>
        <mx:State name="loginSuccess">
          <!--
            The binding braces { } are necessary to resolve the entire welcome
            string using hard coded pieces and the username in the model.
          -->
          <mx:SetProperty target="{welcomeLbl}" name="text"
            value="{'Welcome ' + WesternStatesModel.userInfo.userName + ' !!!'}"/>
          <mx:SetProperty target="{welcomeLbl}" name="visible" value="true"/>
          <mx:SetProperty target="{loginBtn}" name="label" value="Logout"/>
        </mx:State>
        <mx:State name="loginFailure">
          <mx:SetProperty target="{welcomeLbl}" name="text" value="LOGIN FAILED !!!"/>
          <mx:SetProperty target="{welcomeLbl}" name="visible" value="true"/>
        </mx:State>
      </mx:states>
      <!--
        Usually we would try to use auto-layout containers, such as VBox, HBox, etc.
        but the application header is a simple component and we want to anchor labels
        and buttons to the left and right sides of the component, or center them,
        and a Canvas and constraint based layout makes this easier. The constraint
        based layout settings are in the css file.
      -->
      <mx:Canvas width="100%" height="100%">
        <mx:Label id="welcomeLbl" text="Welcome !!!" visible="false" styleName="welcomeLabel"/>
        <mx:Label id="titleLbl" styleName="titleLabel" text="Western Gallery of Photography"/>
        <mx:Button id="loginBtn" label="Login" click="logInOut(event);" styleName="loginButton"/>
      </mx:Canvas>
    </mx:ApplicationControlBar>
    ------------------- src\components\Login.mxml -------------------
    <?xml version="1.0" ?>
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
      title="Login" horizontalScrollPolicy="off"
      verticalScrollPolicy="off" creationComplete="init();"
      defaultButton="{loginBtn}">
      <mx:Script>
        <![CDATA[
          import mx.controls.Alert;
          import com.westernstates.classes.events.*;
          import mx.collections.ArrayCollection;
          import mx.managers.PopUpManager;
          // This test username and password would not be here in a real application.
          private var testUser:String = "user1";
          private var testPwd:String = "testme";
          private function init():void{
            this.reset();
            PopUpManager.centerPopUp(this);
          public function reset():void{
            userTxt.text = "";
            passwordTxt.text = "";
          private function login(evt:Event):void{
            if(userTxt.text == testUser && passwordTxt.text == testPwd){
              this.dispatchEvent(new LoginSuccessEvent(userTxt.text));
              this.reset();
              PopUpManager.removePopUp(this);
            }else{
              this.dispatchEvent(new LoginFailureEvent());
              mx.controls.Alert.show("Login Failed!!!");
        ]]>
      </mx:Script>
      <!--
        Currently this login form is very basic. Later we will add validation,
        states, effects, etc.
      -->
        <mx:Form id="loginForm">
          <mx:FormItem label="Username:">
            <mx:TextInput id="userTxt"/>
          </mx:FormItem>
          <mx:FormItem label="Password:">
            <mx:TextInput id="passwordTxt"
              displayAsPassword="true"/>
          </mx:FormItem>
        </mx:Form>
        <mx:ControlBar horizontalAlign="center">
          <mx:Button label="Login" id="loginBtn" click="login(event);"/>
        </mx:ControlBar>
    </mx:Panel>
    ------------------ MainApp.mxml -------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:controller="com.westernstates.classes.controller.*"
      xmlns:comp="components.*" viewSourceURL="srcview/index.html">
      <!--
        Because we have broken this application into components, the main application
        file currently does not have much in it. It is possible to argue for simply
        defining the application header here in the main application file, but you
        might use it in other applications or components, so it is implemented as
        a separate component.
      -->
      <!-- The WesternStatesController class. It registers event listeners
        with the systemManager for events that will bubble up the display hierarchy.
        The controller is a non-visual class, although it does extend UIComponent
        so it is on the display list, but it has no visual elements. -->
      <controller:WesternStatesController/> 
      <comp:ApplicationHeader id="appHeader"/>
    </mx:Application>

  • Eclipse +flex 3 plugin crashes when trying to see mxml file in design mode

    Hi,
    I have strange problem I've been struggling with for 3 days.
    I have eclipse-jee-europa-fall2-win32(eclipse europa 3.3.1.1)
    + adobe flex 3 eclipse plugin.
    My workspace consists of several projects + one library.
    There is not problem when trying to edit any mxml file when
    my library is not imported yet. Once I import it to my workspace I
    cannot see any mxml file in design mode since it crashes with the
    following msg in log:
    Did anyone have similar problem and maybe knows the
    solutiuon? I've reinstalled/redownoaded eclipse, flex plugin, flash
    players and so on. What's more it happens only on my machine - same
    project on different one works without crushing.
    !ENTRY org.eclipse.osgi 2 0 2008-02-22 09:13:18.046
    !MESSAGE While loading class
    "org.eclipse.mylyn.tasks.ui.TasksUiPlugin", thread
    "Thread[main,6,main]" timed out waiting (5000ms) for thread
    "Thread[Worker-0,5,main]" to finish starting bundle
    "update@plugins/org.eclipse.mylyn.tasks.ui_2.1.0.v20070927-0900.jar
    [313]". To avoid deadlock, thread "Thread[main,6,main]" is
    proceeding but "org.eclipse.mylyn.tasks.ui.TasksUiPlugin" may not
    be fully initialized.
    !STACK 0
    org.osgi.framework.BundleException: State change in progress
    for bundle
    "update@plugins/org.eclipse.mylyn.tasks.ui_2.1.0.v20070927-0900.jar"
    by thread "Worker-0".
    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.j ava:1141)
    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:258)
    at
    org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at
    org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at
    org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at
    org.eclipse.mylyn.context.ui.ContextUiPlugin$5.run(ContextUiPlugin.java:258)
    at
    org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
    org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at
    org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at
    org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at
    org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
    org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Caused by:
    org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
    ... 40 more
    Root exception:
    org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.j ava:1141)
    at
    org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:258)
    at
    org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at
    org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at
    org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at
    org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at
    org.eclipse.mylyn.context.ui.ContextUiPlugin$5.run(ContextUiPlugin.java:258)
    at
    org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
    org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at
    org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at
    org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at
    org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
    org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
    org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
    Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    !ENTRY org.eclipse.help 4 0 2008-02-22 09:18:14.375
    !MESSAGE Required attribute "label" missing from "topic"
    element in "/com.adobe.flexbuilder.help/tocAPI.xml" (skipping
    element)
    !ENTRY org.eclipse.help 4 0 2008-02-22 09:18:14.375
    !MESSAGE Required attribute "label" missing from "topic"
    element in "/com.adobe.flexbuilder.help/tocAPI.xml" (skipping
    element)
    !ENTRY org.eclipse.help 4 0 2008-02-22 09:18:14.375
    !MESSAGE Required attribute "label" missing from "topic"
    element in "/com.adobe.flexbuilder.help/tocAPI.xml" (skipping
    element)
    !ENTRY org.eclipse.help 4 0 2008-02-22 09:18:14.375
    !MESSAGE Required attribute "label" missing from "topic"
    element in "/com.adobe.flexbuilder.help/tocAPI.xml" (skipping
    element)

    I've found solution by myself so I'll present it here. Maybe
    someone will need it.
    The problem of such behaviour was that Flex plugin always (at
    least on my pc) wants to ustart eclipse using its own JRE from here
    C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre (default dir).
    This environment is Java 5. When you go to
    eclipse>window>preferences>Java>Installed JREs and you
    delete default Flex JRE, add new to point to for example C:\Program
    Files\Java\jre1.6.0_04 eclipse still uses JRE from C:\Program
    Files\Adobe\Flex Builder 3 Plug-in\jre. Do not know why
    Flex/eclipse does that but if you simply overwrite C:\Program
    Files\Adobe\Flex Builder 3 Plug-in\jre files with newer JRE from
    C:\Program Files\Java\jre1.6.0_04 all works perfectly.
    Hope it helps somebody ;-)
    thanks Artur

  • How can I specify a different css file for mobile browsers?

    I'm experimenting with updating our website to be "mobile friendly". I could use some help.
    We use a lot of static HTML landing pages for things like links from email ads, etc. What I'm trying to do is have 1 landing page so the content/html page is always the same, but the page will detect what browser/device you are using and then load a different css file depending on what it is. But, we don't want to have to load the style info from the PC version if you're not on a PC.
    What I'm doing now is specifying the media type in the css link, like this..
    <link rel="stylesheet" href="style.css" type="text/css">
    <link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="mobile.css" type="text/css">
    What's happening is it's loading the main stylesheet first, and then the 2nd one changes some styles if you're on a device with a max width of 480 pixels (like an iPhone). But since it's loading the PC styles first, it's making some things look screwy.
    So, is there a way to say "If you're on a PC, load this stylesheet. If you're on an iPhone, load this one instead." .. without javascript? I don't trust javascript too much on mobile devices. I feel like this some simple little thing that I'm missing that will make it all automagically work.
    We don't want to have different content depending on the browser, just different stylesheets. Can anyone help?

    Hi
    Would it be better to do 2 different stylesheets, or just one big one and add a section at the bottom like:
    @media only screen and (max-device-width: 480px) {   .styles {whatever: styles;} }
    2 separate style sheets are recommended. The reason for this is that the Safari mobile browser, (as used in iPhone etc) will download any/all images specified in a style sheet even if they are not used or specified in a media-query rule, this is a know bug with that browser.
    I'm also having a new issue where the style "clear: both;" doesn't seem
    to be working right. I set up my top horizontal menu using float: left,
    and there's a lot of links so on the smaller screen it wraps, which is
    fine but now the wrapped links are floating over the page content...
    This is one of the reasons that floats should not be used in style sheets for mobile devices, the only exception I know of is for small typographical feature such as 'pull-quotes', (and never use float: right;). It is also recommended to include a menu at the bottom of the page, (or at least a link back to the top).
    It works, if I have the iPhone as portrait it looks great, but if I turn
    it to landscape, everything is zoomed in. But if I switch back to
    portrait, everything is the right size. Is there any kind of way to get
    the landscape to have the normal zoom level? I know I can do
    "initial-scale=1.0", but that is just for when the page loads, not if
    you change it afterwards...
    I have heard of only one recommendation to fix this and that is a page refresh on resize, but due to bandwidth limits now being implemented by many providers it is probably not a good idea, you could try setting -
    maximum-scale = 1.0
    as well.
    PZ

  • Assigning video files uploaded via a customer form to the src file section of another page (without manually having to copy an paste over)

    Hi. I’ve set up a web form that uses html and javascript. This particular form lets you upload files. I also have another page that lets you play videos. I was wondering if anyone knows how to make the inner html of for example the upload file form field equal the file that is played by the video player on the other page.
    Basically on youtube when you upload a video it automatically makes another page with the video file you uploaded assigned to the video player on that page. I want to know how to go about doing that. So people can upload videos and then be able to watch them instantly without me manually having to create the page an assigning the right file to the page.
    Even just knowing how to create a different page each time the form is submitted would be helpful. Thanks.

    This is more complex than you realize and JavaScript alone can't do it. You'll need a server-side script like PHP to authenticate and sanitize file uploads to prevent malicious scripts or malware from ever getting to your server.  Then, your script will have to process the uploaded file by saving it to a folder or database, give it a unique ID and then redirect users to a new page that pulls the file into an HTML5 or similar player.  How good are you with server-side programming?
    Nancy O.

  • Help with Form F110_US_DTA for ACH file to be sent to bank

    Hi ppl,
    I'm implementing new house bank in the system for ACH payments
    the NACHA file format for that bank is given to me.
    the bank's needs a variation in the format.
    they want effective entry date in the Batch Header Record 5, Pos 70-75 to be greater than the Creation Date located in the File Header Record 1
    Im using the form F110_US_DTA for the file that is to be generated to sent to bank
    How Do I make changes to this form to satisfy the requirement
    Or basically where do I change the format of forms like F110_US_DTA etc..
    What is T-code for that...
    Thank You Very much
    your help will be appreciated
    Also tell me how can I assign you points..

    An ACH NACHA file has the following components..
    File Header Record(1)
    This gain has many fileds like Record type code, priority code, immediate destination etc
    Batch header Record(5)
    Record type code, company Identification
    Entry Detail Record(6)
    Transactioncode, Check digit etc
    Addenda Record(7)
    Record Type Code...etc
    Batch Control Record(8)
    File Control Record(9)
    Batch Count, block count etc...
    Now This is the Layout which the company wants to implement
    The commpany is already using an ACH file for an old bank.
    But wants to implement a New Bank with a lil variation of old NACHA format
    In SAP where can I set these fields or parameters.....
    for some programs I can goto System->Status and double click on program and goto ABAP editor and change fields.
    But for this ACH where can go and set the parameters according to requirements
    There is actually one more requirement...
    In the ACH file The New banks wants the
    File Creation Date (It is entry in field no 5 of File Header Record(1) of ACH file)
    this date should be less than Effective Entry DAte (It is an entry in Field no 9 in Batch Header Record(5))

  • [svn] 3275: Initial check in for support for asdoc comments in mxml files.

    Revision: 3275
    Author: [email protected]
    Date: 2008-09-19 15:01:57 -0700 (Fri, 19 Sep 2008)
    Log Message:
    Initial check in for support for asdoc comments in mxml files.
    For adding comments at the class level or to properties defined inside mxml use the syntax
    Other tags supported in asdoc should also work. for example @see, @includeExamples etc.
    QA: Yes
    Doc:
    Reviewed By: Paul
    Tests: checkintests
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Node.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/gen/ClassDef.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/PropertyDeclaration .java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/UninitializedProper tyDeclaration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDocConfiguration.java
    Added Paths:
    flex/sdk/trunk/asdoc/templates/images/AirIcon12x12.gif
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MxmlCommentUtil.java

    @John - no luck on the plugin angle. In checking both JDev installs that previously had the problems, they have the default extensions.
    @Dave - at the time I can't say we noticed any migration notices, we certainly didn't see the migration dialog though. However the application in SVN was built on the same version of JDev so I don't expect a migration to find any changes anyhow.
    However on your second point we always check out into an empty directory, as we're checking out the whole application. As such if as you say the migration utilities is always called, shouldn't that mean we always see the projects modified? We certainly don't, we're on a day by day basis checking out whole applications to different directories and we don't see that behaviour.
    In turn reconsidering the modified .jpr file, from what I saw it looks to me that the whole project file is re-set to it's original state. Initially the problem detected was the libraries attached to the project were gone so we couldn't compile, but in close inspection it seems the whole .jpr file has been modified to a rather vanilla setup.
    One thing I can say when we originally experienced the problem (and from memory this was true in the dim dark past when it also occurred another time), is it was a check out from a SVN tags directory, not the trunk. In thinking about it, it may be the first check out from the tags directory that we see the issue. However to get around the issue we just revert the project file in the tags directory, we don't actually change the SVN repository code (ie. commit), so the issue should keep occurring. Yet at the moment if we check out the same tags directory, the issue doesn't occur?
    Hmmm?
    Btw Dave, are you an Oracle employee?
    CM.

  • Implementing Forms look and feel into oracle 10g

    hello, im using oracle 10.1.2.0.2
    i've been trying to implement this look and feel project hours ago here are the steps that i followed:
    # Copy the corresponding JAR file to your /forms/java directory. [copied it to C:\DevSuiteHome_1\forms\java\ and renamed it to laf.jar like mentioned in http://forums.oracle.com/forums/thread.jspa?threadID=693024 but copied also laf_1012.jar  ]
    # Update your /forms/server/formsweb.cfg file.
    As it needs the Sun Java Plug-in instead of the Oracle JInitiator, you have to create a special section that uses the Sun Plug-in.
    You also need to add the corresponding JAR file to the archive tag (not the archive_jini). [modified it to archive=frmall.jar,laf.jar, laf_1012.jar, i didnt know what to do with the Sun Java Plug-in but when i debug and run the oracle there is an icon that shows the java icon launched]
    # Copy the forms.css file somewhere on your disk (by default, it is searched in the C:/ root directory). [done and i've put it in c:\]
    # Compile the laf.pll PL/SQL library, then copy the pll.plx to one of the directories pointed by the FORMS_PATH variable.
    *i've put the laf.pll in my C:\DevSuiteHome_1\forms as shown in the FORMS_PATH of the default.env
    *tried to open the laf.pll from the oracle froms and reports, choosed Program -> Compile PL/SQL -> All, but errors like PKG_DB_LAF_LOV.PREPARE must be declared ...
    *tried to compile it using f60gen module=laf.pll userid=Administrator/pass module_type=LIBRARY output_file=laf.plx batch=yes compile_all=SPECIAL but the f60gen is no where to be found
    *i tried to replace f60gen by envshell.cmd from the $APPL_TOP but i cant find any environment variable called $APPL_TOP, i even searched the whole hard disk for envshell.cmd and couldnt find anything
    Please help as this is the final step of implementation, waiting any response asap!

    Hello,
    Please, don't ask question about the LAF on this forum. Ask them on the dedicated mail address : [email protected]
    Thanks,
    Francois

  • We want to create an online contract form with different options which will determine different prices as they make their choices. We will also require a legally binding e-signature. Is Acrobat the best product or even an option for this?

    We want to create an online contract form with different options which will determine different prices as they make their choices. We will also require a legally binding e-signature. Is Acrobat the best product or even an option for this?

    You need to use form fields. See the Acrobat help section and this site: https://acrobatusers.com/tutorials/
    However, that last part (receiving an automatic response when a form is submitted) has nothing to do with Acrobat, or even with the PDF file. This is something you'll need to set up on your web (or email) server.

  • Is there a way to specify compiler options in mxml file?

    I would like to implement the module optimization techniques
    that require "-link-report=parentLinkReport.xml" when compiling the
    main module, and "-load-externs=parentLinkReport.xml" when
    compiling the submodules. and can't find a convenient way to do so
    without manually compiling the mxml files from the command line.
    I am hoping there is a way of specifiying compiler directives
    in the mxml file directly, does anyone know if/how this can be
    done?
    Paul

    I asked a same question in flexbuilder forum but no answer so
    far.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1295210&highlight_key=y&keyword1=load%2Dexterns

  • How to use mxml file as a documnet class Pro CS6?

    Hello.
    I was given a gam example, and I cannot seem to get it to work. The document class is an mxml file, and for some reason when I put the directory in the Properties box it doesn't pick up the right file (clicking the pencil brings up an empty .as file)
    Does anyone have experience with this? Do I need to do something special to use an mxml document class?
    thanks.

    You only can use mxml files in Flex/FlashBuilder. They use a component model different from Flash Pro.
    With enough knowledge you could "translate"all the functionality and change most of the components manually, though.
    But there is no "automated" conversion, as far as I know.

  • DataGrid SelectedIndices from a different MXML component

    Hello
    I am refreshing a data grid that resides in my main component, from a sub-component. This works if I invoke the web service method to rebind the dataprovider, and I do not reference the datagrid directly from the sub component.
    My trouble is that I use checkboxes in my datagrid. I need to reset the selectIndices of the datagrid, but anytime I try to reference the datagrid directly it is NULL. The datagrid loses its checkbox selections every time I call the refresh, so I must explicitly reset the selectedIndices.
    How can I reset the datagrid's selectedIndices from a different MXML component? Why is my datagrid always NULL in my web service's result event handler?
    How can I directly reference my main component's datagrid, from my sub-component?

    Hi Devtron,
    You can figure this out by using events..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete();" xmlns:comp="comp.*">
    <mx:Script>
      <![CDATA[
       private function onCreationComplete():void
        comp2.addEventListener("refreshGridEvent",refreshGrid);
       private function refreshGrid(event:Event):void
        comp1.dataGrid.dataProvider = null;
      ]]>
    </mx:Script>
    <comp:Component1 id="comp1" />
    <comp:Component2 id="comp2" />
    </mx:Application>
    Now in your Component2 dispatch the refreshGridEvent event either on a button click or when your UI elements changes based on your requirement...this.dispatchEvent(new Event('refreshGridEvent')); and listen for the evet in manin mxml file and change the dataProvider of the dataGrid in Component1.
    Note: This solution is if your both components are placed in the main mxml file. Is your structure is same as I mentioned in the code above..I mean
    whether your two components are placed in the main mxml file.
    Thanks,
    Bhasker

Maybe you are looking for

  • How can I find the source for an authentication window

    All of a sudden every time I restart I'm presented with a Google Login window. It's prefilled with my correct email address and password, and has the typical "Cancel" and "OK" buttons. If I press Cancel it goes away...if I press OK it goes away, and

  • How do you go about purchasing microsoft word for your mac laptop?

    i was just wondering how you go about buying microsoft office for your mac air? can you buy the package online and download it? or do you have to go into a retail store and physically purchase it? thanks

  • Php form for unix server

    Hellow to everybody i would like to know, witch files or carpets do i need to have on a server unix to run a php form (method post, get). I mean if a need to create a carpet example "cgi-bin", or if a need any archive similar "formail.pl" or what els

  • Hints in Oracle Forms

    HI, I would like to indentify all the forms using some type of index in the sql queries. We are upgrading to 10 database running Oracle applications 11.5.10.2. We are on Linux x86-64. Apprecaite if anybody have any script to do that. Thanks Robert

  • Trouble building an installer with NI-DAQmx and tasks

    I am having trouble getting an installer that includes my tasks for NI-DAQmx.  I select the configuration wizard from the hardware tab, it shows my tasks with checkboxes but i cannot 'check' the task I want, it says "the item cannot be checked becaus