RepeaterDemo.mxml run locally

I can't get some of the Flex 2.0 samples running locally. In the Explorer of Flex 2.0 samples ( http://flexapps.macromedia.com/flex2beta3/explorer/explorer.html) the RepeaterDemo.mxml works fine, but when I copy the code in my FlexBuilder IDE I run into two questions.

First of all, it seems that the ArrayCollection collection needs an ArrayUtils.ToArray ()...
Second, it cannot find the name element in the product xml file.

What is the difference between the code example for the Explorer for Flex 2.0 samples and running in eclipse?

Code example

<? XML version = "1.0" encoding = "utf-8"? >

"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' backgroundAlpha = "0".
creationComplete = "srv.send ()" >

< mx:Script >

Import mx.collections.ArrayCollection;

[Bindable]
public var catalog: collection ArrayCollection;

< / mx:Script >


"< mx:HTTPService id ="srv"url =". http://flexapps.macromedia.com/flex2beta3/explorer/assets/catalog.xml ' useProxy = "false '"
result = "Catalog = new ArrayCollection (srv.lastResult.catalog.product)" / >

< mx:Tile >
< mx:Repeater id = "list" dataProvider = "{catalog}" >
< mx:VBox >
< mx:Label text="{list.currentItem.name}"/ >
< / mx:VBox >
< / mx:Repeater >
< / mx:Tile >

< / mx:Application >

The following code seems to work. Even if I was not exactly getting the errors that you receive, I received errors. "My key change used result ="Catalog = srv.lastResult.catalog.product as ArrayCollection collection instead of the result ="catalog = new ArrayCollection (srv.lastResult.catalog.product)" / >


backgroundAlpha http://www.adobe.com/2006/MXML"="0"creationComplete =" srv.send () ">"

Import mx.collections.ArrayCollection;

[Bindable]
public var catalog: collection ArrayCollection = new ArrayCollection();

useProxy http://flexapps.Macromedia.com/flex2beta3/Explorer/Assets/Catalog.xml"="false ".
result = "catalog = srv.lastResult.catalog.product as ArrayCollection collection" / > "








Tags: Flex

Similar Questions

  • Tools/database / SQLPlus broke my ability to run local applications

    Jdev 11.1.1.2.0

    I worked on a few practical applications for a few weeks. I was able to run their local and deploy on a dev server and run them from there.

    Yesterday I was looking through the menu items to see what is there and I clicked on tools/database / SQLPlus.

    I chose my connection and my SQLPlus.exe.

    SQLPlus worked fine, but now when I run my application on the built-in WL server it is stuck at the spinning O and never moves. If I update the stuck o it shows my app with no data.

    I'm fairly certain I don't change anything else between the time where he worked and where he was arrested.

    None of the applications that work work when I run local.

    When I open my DB connections and a hit test all return successfully. All DB in JDev tools seem to be functional, the only problem is when I run them on the built-in server of WL.

    I don't get any errors in the console and I can not find all the logs that contain errors, but I'm new on this and I can't look at the correct logs.

    I entered in config for and removed at runtime from SQLPlus, but which did not help.

    Any ideas?

    Is there a log somewhere that can show what is happening?

    Hello

    He doesn't have a problem with the WLS / approx. could you try with localhost (instead of 127.0.0.1) and also, you could try a different browser (IE/FF, say), and probably also a browser in another machine on your network?

    Arun-

  • Running an ADF base application fails on the remote server run. Running locally on Jdeveloper 12.1.3 works very well

    I'm deploying an ear with two war files file. One of the web applications in this EAR file acts as a basic authentication web application. I am able to do basic http very well, but when the welcome.jsf try to load, this error occurs:

    ADF_FACES-30200: for more information, see the error log of the server for an entry beginning with: The UIViewRoot is null. Fatal error during PhaseId: RESTORE_VIEW 1.

    Additional detail

    java.lang.NoClassDefFoundError: oracle, adf, model, RegionBinding

    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.getLifecycleContext(ADFPhaseListener.java:175)

    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:302)

    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:88)

    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:489)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:77)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:194)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    Caused by: java.lang.ClassNotFoundException: oracle.adf.model.RegionBinding

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:318)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:80)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:186)

    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:50)

    ... more than 49

    This problem does not occur on my installation local jdeveloper (12.1.3)

    Deploy the application to a 12 c Enterprise development environment manager, and there is only one target server.

    Have you checked that the target server has the right adf 12.1.3 installed on?

    The error normally means that the runtime is missing.

    Timo

  • If script running locally-make, if the remote control-do that

    Hi all

    need some advice on the best way to do it, don't know if it takes even a logic like that, I can be more thinking than he.

    Firstly a bit of background:

    I have a site clipbucket 2.6.  works very well on the remote control.  When I install with xampp on my personal computer errors being lifted from

    Call to undefined method ADODB_mysql::select()

    now, I found a fix for this on their site, it is to change a line in the code:

    need to 'adodb/adodb.inc.php ';

    something that will make reference to the file correctly in a local environment.  Some people suggest

    require ' / FULL PATH TO/adodb/adodb.inc.php ";

    but this does not work for me, I get an error of not being able to find the file, it turns out that this works only on wamp or XAMPP, I use xampp

    This is what works on my test server local xampp:

    need to 'C:\xampp\htdocs\videoz\includes\adodb\adodb.inc.php ';

    NOW MY QUESTION:

    need to 'C:\xampp\htdocs\videoz\includes\adodb\adodb.inc.php ';

    will not work on the remote control to reference the file correctly.

    How can I make a logic to decide if a script is running on local or remote and include a filepath as a result?

    If the file exist?

    the root of the server?

    suggestions?'

    ideas?

    is it still the right way to go on this subject?  I can't find a way for scructure include working with both, I disabled it to use variables in the include statements (regardless of its name), ha

    any suggestions on how to do this effectively and above all safely?

    Thanks a ton for your attention!

    You can do something like this:

    If ($_SERVER ['SERVER_NAME'] == 'mylittlehost') {}

    to do this

    } else {}

    do this

    }

    .. and Yes, to answer your question, it's a good way to go about it.

    Another way is to have an include with a set of functions, etc., which is for your local site and an inclusion of the same name which contains comparable functions for the remote site, but the day may come when you accidentally download your local version of the remote control, causing the remote site to break.

  • How can I determine in Java running local or weblogic server deployment

    Using JDeveloper 11.1.1.4.0

    I need to determine in my Java code, if I run my application locally (JDeveloper/Weblogic) or if the application runs on a Weblogic Server deployed. The code will be used to determine where to place the files in the test on PC the verses where to place the files when they are deployed. For example (c:\temp or/usr2/download).

    Thank you
    Troy

    Hello

    well one way is to identify using weblogic here system properties is the example to get the name of application weblogic managed server that runs in java http://www.baigzeeshan.com/2011/11/oracle-adf-how-to-get-managed-server.html

    check out other properties like http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/config_WLS.html#1019588 well

    Zitouni

  • Access to variables in Captivate swf load problem when run locally

    I am charge 3 Captivate SWF in a Flash drive custom. Here is pseudocode that arrives just at the point:

    var cp1_mc:MovieClip = this.createEmptyMovieClip ("cp1_mc", 1);
    cp1_mc.loadMovie ("captivate1.swf");

    [wait (cp1_mc.rdcmndGotoSlide! = undefined) through setInterval]

    cp1_mc.rdcmndGotoSlide IS

    var cp2_mc:MovieClip = this.createEmptyMovieClip ("cp2_mc", 2);
    cp2_mc.loadMovie ("captivate2.swf");

    [wait (cp2_mc.rdcmndGotoSlide! = undefined) through setInterval]

    cp2_mc.rdcmndGotoSlide REST UNDEFINED INDEFINITELY

    The thing is, this problem does not occur when you test the movie in Flash, or happens when the player.swf is run on a server. This happens when the player.swf plays locally in an html page.

    Can someone give me a clue as to what is happening? My best guess is that it has something to do with Flash Player Security, because it happens that locally in a browser, but I do not understand what is happening.

    It turns out that it was a Flash Player security issue and I had to put the security settings to "always trust" for my local directory.

  • CRIO/FPGA code to run locally

    So I'm currently write code that will run on a cRIO (the processor in real-time and FPGA).  Is there a way that I can run on my computer without be hung to the material?  I do not have easy access to the material and would really like to test the behavior of my code.

    Thank you.

    Hello

    You can create a cRIO in your LV project without having the hardware, you can compile the FPGA code and run in simulation mode too, but you cannot run the code of RT.

    Christian

  • popup swf run locally

    Hello

    I need a quick fix... I'm working on a project which will be embeded locally, and im in need of a solution to make a pop up swf that loads on click of a button from another swf.

    All the solutions I can find work for download on the web... but do not work on place.

    So im guessing I'm looking for something in the sense of "onclick load swf _blank."

    Is this possible? and it's faster to achieve?

    Thank you

    If you create an application air or projector, you can load the other swf in your application of projector or air (using the loader class), or you can open it in the browser of the user (using navigateToURL) or you can open another application of projector (using fscommand) or an air of exe for your air application.

  • Why when I ssh to another host, Firefox always run locally?

    foo_user@bar_system$ firefox &
    foo_user@bar_system$ slogin x foo@baz
    foo_user@baz_system$ firefox &

    Now, the two instances of firefox have exactly the same environment.
    Even plugins. Same access to file:/// directory.

    Why and how this happens?

    This is NOT what I want. I want to test the connectivity on BAZ, but when I do always
    is to see how things work on the BAR.

    Hey smaverick.

    try non-telecommande

    Or

    https://Bugzilla.Mozilla.org/show_bug.cgi?id=289383

    Reference http://askubuntu.com/questions/3515/how-do-i-launch-a-remote-firefox-win...

  • I get an error that Word (running locally but is Office 365) has stopped working when I try to save a word.doc to a .pdf file?

    Why does the word end when I try to save a .pdf file?

    I assume you are using the Save in format PDF Adobe Acrobat CC feature.

    If this is the case, the problem is in the code of Microsoft for which an update was issued the week last by Microsoft. Update your Office 365 and the problem should go away.

    -Dov

  • FLV files run locally but not on website

    My reading of the flash video when I do a preview, but after downloading the FLV and the new page to the web site files all the I square is empty, no videos. That is what it is?

    You have download all files related to the flash file, right?

  • Cannot run the form locally

    Cannot run forms when it is run locally on my machine instead of proceeding CJO race. Cannot display this page on the Web page displayed error message.
    can someone help me with this.

    cool buddy, enjoy and mark this post as correct. This will help others also.

  • ExternalInterface sometimes... other local running

    So I develop training on the web that will come eventually in a learning management system. When it is in the LMS, we use ExternalInterface and Javascript to communicate with Flash.

    But sometimes the same course must run locally or publish possibly to a projector.

    I use ExternalInterface.available to check if it is available. If it isn't then there is no ExternalInterface available then clearly there is no LMS communication (light version).

    But the other bits is complicated. When you test locally in the Flash IDE ExternalInterface.available returns the value true, but there is nothing really to interface with.

    Any suggestions on how to know if it actually is javascript to help me to get out and communicate with the LMS?

    Thank you.

    Create a js function that returns something.  If your ExternalInterface.call("saveglobalscore",score) does not return the expected, the swf file is not embedded by a html file.

  • I wrote the software for 33 years. I have a lot of apps. I would use html/xml to replace my aging FDI. Firefox is no longer execuate a binary file called directly to Hypertext on the local system. Why?

    I would rather not re - write the old of the IDE I have used for years but rather replace them with the style sheets for xml/html/web. Konqueror is running locally the binary with a launcher script. Firefox, Chrome, re-Konq, WebPositive and IE Explorer will not. If Firefox or SeaMonkey should run my binary that I could easily replace the old of the IDE and myself and my customers save a lot of time and money.

    Firefox does not execute binary files for security reasons. In other words, to prevent novice users to install malicious software.

  • VBAI running on computers of 32 and 64 bit

    I have a standard VBAI routine developed on a 32 - bit computer, using a lot of files .vi and running on multiple hosts.  To date, all VBAI instances were on 32-bit computers, without any problem, for example, I just copy the VBAI routine to the new machine and run it.

    But the last instance is a 64-bit server, and while VBAI installs and runs locally, he moved to the folder "...\Program Files (x 86)-...» "that throws all my calls file .vi.  I tried to put the .vi files in the folder maintinaing «...\Program Files\...» "the structure folders and it seemed to work, but it wasn't all parameters, and I couldn't change all the steps...

    So here's my question: is there a way to make my VBAI routine standard running on the 64-bit computer, or do I have to load LabView and recompile the routine?

    Thank you

    Eric

    When you say that you can not change the steps, what do you mean? You get an error on the VI is broken when you change a step execute a VBAI LabVIEW VI? I would recommend that you follow the instructions to create your VI in a LLB built for deployment. You will find these instructions when you change the step run a LabVIEW VI, and you go to help > context display help. There will be a link to 'Saving VI for Distribution' in the FAQ tab, which will guide you in how to do a Bachelor's degree in LAW with all the dependencies that are required in a LAW degree who can travel more easily with your inspection when you move systems.

    I also recommend that you include all in the project of LV, the your source required screws through the various stages of LV run in your VBAI inspection, and that you will have a unique LAW degree which is easy to carry. I also recommend that you put this LLB single in a place that will not change when you move from a (64 bit) (32 bit) to another system, so do put it not in your c:\Program Files (x 86). On the RT, we expect in C:\User VIs\, so you can put your LLB at the same location on your windows machine, and then if ever you move RT, it will be very easy to have found LLB.

    It is important to have your source screw in one place (as well as the LV that allows you to create your LLB) and LLB/source distribution generated in another location (e.g. c:\User VIs\) and when you want to change, change your source screws and use the same project for you rebuild LLB VBAI will use. You do not want to edit your distribution of LLB\source built and accidentally put screws in there, vi.lib or good things will break.

    Hope this helps,

    Brad

Maybe you are looking for

  • Satellite Pro L20 - no audio output device installed

    Hi, I would appreciate some help with my installation of 32 bit Vista on my Satellite Pro L20 series. Installation went well but my sound icon has a cross with her and when I place the mouse over it I see the message: no audio output device installed

  • HP 1000-1b09AU Notebook PC: max of 1000-1b09AU HP laptop memory

    Hello I am user of HP laptop with the above specifications. Could someone find out about this type of HP memory max ? I only have 2 GB of RAM, and I want to rank up to the RAM up to 4 or 8 GB.  But there is no information on the max memory. Am I capa

  • How to make a layer in Ultiboard mask?

    I need to create a mask layers (except paint coating PCB solder points). Tell me how to do it. Best regards, Vladimir.

  • Ports USB 3.0 on HP Pavilion dv6-6015tx laptop computer

    I have a HP Pavilion dv6-6015tx-Notebook that I've upgraded to Windows 8.1 (transcript).Now my problem is that when I connect my USB 3.0 drive to my laptop the transfer speed is not more than 40-45 Mbps. So, help me and tell me which two ports are US

  • Forcing scrollbars on Playbook Soft

    In the app I I do have onefixed height. User entered the longer div on the list, and eventually it will go beyond the bottom border. In my CSS I overflow set to auto so that when the list is longer that the div displays scroll bars. This works in all