MXML attributes

The <mx:ProjectBar> tag has a source attribute. I have
created a custom MXML component that has a source attribute, but I
want it to accept only a specific object type. Right now I have it
set to to receive a generic Object type. If I change it to a custom
object type, example MyCustomType:
public var myCustomASClass:MyCustomType;
<myforms:MyCustomMXMLComponent
source="myCustomASClass"/>
FlexBuilder shows this error:
Initializer for 'source': values of type MyCustomType cannot
be represented in text.
The application compiles, but Flex Builder continues to show
an error.
Is it possible to pass a typed instance of an AS class to a
custom MXML component?

<myforms:MyCustomMXMLComponent
source="{myCustomASClass}"/>
Tracy

Similar Messages

  • MXML attributes accessed via AS3

    Hi,
    I have a Delphi background and am struggling to learn Flex.
    Understand that MXML and AS3 are effectively equivalent and
    that MXML is translated into AS3.
    However I do not seem to be able to access the same
    properties, events in AS3 as I can access in MXML.
    For example a Button component in MXML - I can access
    properties and events (horizontalCenter, verticalCentre, click
    event) which I do not seem to be able to access in a button object
    instantiated in AS3.
    Could anyone confirm that this difference is real or am I
    missing something OR how can I access these properties, events in
    AS3?

    "MalcolmSkels" <[email protected]> wrote in
    message
    news:gm768m$jqr$[email protected]..
    > Hi,
    >
    > Thanks for the replies ? and patience for such a basic
    query ? which has
    > helped clarify things. It was mainly the Style issue
    that was confusing
    > me. I
    > think I have got it now but would appreciate if someone
    could confirm that
    > I am
    > correct in the following:
    >
    > <mx:Button label=?Test It?
    click=?myButtonClickHandler()?
    > horizontalCenter=?0?
    > VerticalCenter=?0? />
    >
    > 1.
    > In AS3 you cannot access any events of an object other
    than by adding an
    > event
    > listener with the addEventListener method. So although
    there is a click
    > event
    > for a Button which you can access in MXML as in the
    example above there
    > is no
    > direct equivalent in AS3 ? you have to add a listener.
    In fact, this is
    > what
    > the MXML translation does - in AS3 you have to do it
    yourself.
    >
    > As you have both said a lot of properties are Styles and
    can only be
    > accessed
    > in AS3 via the SetStyle method which adds up to a lot of
    work just to set
    > a few
    > properties.
    > Overall I am concluding that AS3 is pretty labour
    intensive and that I
    > should
    > use MXML if at all possible and only drop into AS3 if
    absolutely
    > necessary. Is
    > that correct? (Not intuitive for me)
    If you're setting several properties at once, create an
    object with all the
    properties and use setStyle to set that or just set the
    styleName to a style
    you've set up in advance.
    MPO is that AS3 is more intuitive, because most of the real
    fine tuning
    you'll need to do once you get past the roughing in will only
    be documented
    in the API, and I find that to use it in MXML you often need
    to do a lot of
    translating from the API documentation into how it works in
    MXML, whereas it
    pretty much works in as like it's documented in the API (most
    of the time).

  • Flash Builder 4 - design view - states basedOn + design area widget

    Hello,
    Since i updated my project from Flex 3 to Flash Builder (4), i have very annoying issues in the design area.
    The one in Flex 3 was quite usefull, but the new version is not easy, and straight forward usable.
    Here are the 3 issues:
    - when i have states designed from another one, i use the basedOn mxml attribute, which was used in Flex 3  and still exist in SDK 4 states system.
    But the designer view in Flash Builder don't take those basedOn properties in account!
    What can i do? and is it a known bug?
    -  When i have at least one precific state, i must define a defautl state, in the new SDK. Ok, but in design view, i cant add a new component without making the change only for one state. I can only make the change for the default state, but it will not be taken in account for all the other states, like i can do in Flex 3.
    What i want to be able to do this: making changes in design view without selecting ANY state.
    Is it possible? How can i do?
    - In flex 3, there were a design area widget to select the resolution used for the preview design.
    It was very usefull when the application has very dynamic width and height.
    In Flash Builder, this widget has been removed.
    Why has it been removed? and how can i preview my mxml views wihtout changing width and height values?
    Thanks.
    Seb

    The update has been improved in every other areas, so it is not that much important.
    I just hope that the new release will fix that (as it has been answered to my post).
    The only thing i don't like in new releases of FB is that when the architecture of SDK is aimed to seperate the work between design and code, they focused only on catalyst to create the tools to manipulate design, and they forgot to keep an easy way to do design app directly in FB (with the design view and the style properties of MXML in FB3). But i'm confident that they will give such a tool soon.
    But for now, if you don't like the restriction of the new release, you can continue to work with Flex 3 for 0$! And even in Flex 4, you can create MX components for which the design view will work as before. The fact that tools can manage a mix between MX and Spark components is a great thing. It is up to you to choose which you need which its own advantages and drawbacks.
    Xcode is real pain to use with outdated ergonomy. It is only usefull to code in Objective C which is another real pain to do.
    XCode can be cheapper because all Apple products are quite expansive, so the software to create softwares for them can be much more cheapper.
    And Apple get a good revenue share from AppStore, so again they can give a cheap soft to create apps. You also have to pay 100$ to be able to send app to appstore, in ly opinion the good price for XCode should be 0$, not even 80$!
    Flash builder 4 is very stable, but if you don't like it, you can choose another tool. Main competitor has no designer at all!

  • Tab out of quotes, parens, and brackets

    I have developed quite a bit in eclipse, for both java and flex. One of my favorite features in java development is the ability to "tab" out of quotes, and parens. I would like to see this abiltiy in mxml and as files as well. They say the things that make a product the most appealing are the small and simple things, and this is defenently one of those small things that would make flex development a whole lot nicer, especially when you are putting a bunch of attributes in mxml.
    If anyone knows of a way to enable this feature in flash builder, i would love to know how, and if there isn't any way to get this feature going, where could I post this to request it as a feature in the final version of flash builder?

    Yes, I'd like to have this too -- along with the ability to "type through" quotes and parens, i.e. if FB inserts quotes or parens for you (for instance, with MXML attribute code hints), you can still type the quote and it'll skip over the existing one, rather than inserting a second.
    I thought there was a bug for the latter, but now I can't find it. (Jason, have you seen it?)
    And Sean, I saw FB-21819 regarding your idea, thanks for opening that.
    gse

  • Forcing State to Refresh in an ItemRenderer during a Drag and Drop

    Following the excellent dicussion here
    http://forums.adobe.com/message/2091088
    I override getCurrentRendererState so that my itemRender can reflect the new states that I've declared. I want the state to update during a drag and drop operation within a Tree control. Within a dragOverHandler, I set a boolean property on the itemRenderer (which causes the return value of getCurrentRendererState to change). Nothing happens during the drag since getCurrentRendererState isn't being called by...
    How can I force the itemRenderer to refresh its state? When I just mouse over the item renderer, I see that 'getCurrentRendererState' is being invoked and the state updates. I've tried invoking invalidateDisplayList, invalidateProperties, invalidateSize, validateNow but they seem to be on hold during a drag operation.
    Any insights?

    After you change something that might affect your renderer's state, you need to call:
      setCurrentState(getCurrentRendererState(), (mx_internal::playTransitions as Boolean));
    Unfortunately, state can depend on many things, and it's difficult to make sure that you make this call every single time you change any of those things that may ultimately affect a renderer's self-determined state.  In fact, if you're trying to write extensible code, it's impossible to implement it this way, because you have no way of knowing what properties will affect state in some future implementation that someone might come up with.
    So... instead of calling the above directly, I suggest that you simply override commitProperties() and do it there - like this:
      override protected function commitProperties():void
        setCurrentState(getCurrentRendererState(), (mx_internal::playTransitions as Boolean));
        super.commitProperties();
    Make sure you call setCurrentState() *before* you call super.commitProperties().  If you do it the other way around, then other state-dependent properties in your renderer (like state-dependent mxml attributes) will reflect the old state instead of the new state.  This is not as inefficient as it looks, since setCurrentState is basically a no-op when the current state is already equal to the requested new state.
    Now, just call invalidateProperties() whenever you change anything that might affect your renderer's state.  For example:
      // a custom property setter, "revealed"
      // when revealed is false, the renderer will stay in the "notLoaded" state
      // [see getCurrentRendererState(), below]
      public function set revealed(value:Boolean):void {
        _revealed = value;
        invalidateProperties();
      // the built-in property setter, "data"
      // set by the renderer owner (the list component) when the data item is bound
      // to the renderer instance. Our state depends on the contents of data, so we override
      // here, and call invalidateProperties(), which ultimately causes the framework to call
      // commitProperties(), which in turn will cause the renderer state to be set via a call
      // to our state logic in getCurrentRendererState().
      override public function set data(value:Object):void {
        super.data = value;
        invalidateProperties();
      // override built-in state logic to include logic for our own custom state, "notLoaded".
      override protected function getCurrentRendererState():String {
        if( (!_revealed) || (data==null) ) {
          return "notLoaded";
        return super.getCurrentRendererState();
    good luck!
    -Lee

  • Interface not found in implements-attribute for MXML component

    Hi,
    I am trying to use the "implements" attribute for an
    MXML-component in order to implement an interface from a library
    like below (Flex 3). I get the error "Interface IClonable not
    found". The compiler does not complain about " import
    com.yworks.support.IClonable;", so the library is installed
    correctly. I use the library in many places in my project, it just
    does not find it in the "implements" tag. How can I fix this
    without reimplementing the component in ActionScript?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    implements="com.yworks.support.IClonable">
    <mx:Script>
    <![CDATA[
    import com.yworks.support.IClonable;
    ]]>
    </mx:Script>
    </mx:VBox>

    "mavdzee" <[email protected]> wrote in
    message
    news:gldjg8$js8$[email protected]..
    > Hi,
    >
    > I am trying to use the "implements" attribute for an
    MXML-component in
    > order
    > to implement an interface from a library like below
    (Flex 3). I get the
    > error
    > "Interface IClonable not found". The compiler does not
    complain about "
    > import
    > com.yworks.support.IClonable;", so the library is
    installed correctly. I
    > use
    > the library in many places in my project, it just does
    not find it in the
    > "implements" tag. How can I fix this without
    reimplementing the component
    > in
    > ActionScript?
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    > implements="com.yworks.support.IClonable">
    >
    > <mx:Script>
    > <![CDATA[
    >
    > import com.yworks.support.IClonable;
    >
    > ]]>
    > </mx:Script>
    >
    > </mx:VBox>
    I don't see anything where you're actually _implementing_ the
    interface, but
    I'd expect to see a different error if that's the problem.
    Still, I'd go
    ahead and implement the properties and methods in the
    interface, just to
    make sure.
    HTH;
    Amy

  • Is there a tool for identifying style-ized properties/attributes in mxml

    Hello Everyone,
    With FlashBuilder it is quite easy to work within the mxml file due to the code completion feature. The same holds true when I try to use code completion for any css files that I'm including in my flex apllication. But often enough, without switching to a css file and trying to type out the name of a property and seeing if there is a code completion for it ... I don't know which of the properties can be moved to style sheets and which can not. I could ofcourse refer to the docs but that is an even slower process.
    Does adobe or any one out there on the web (that you know of) offer a tool to look over all the *.mxml files and spit out a list of all the attributes/properties that one could afford to move-out into style sheets?
    Thanks!

    OK, I've got to go see if I can find the definition for "*" in the stylesheet(s).  I'll bet it's in layout.css and I just missed it.
    Thanks.
    H

  • [svn:fx-trunk] 12912: With TLF 571 checked in we can now revert the MXML 2009 changes for how the id language attribute is processed .

    Revision: 12912
    Revision: 12912
    Author:   [email protected]
    Date:     2009-12-14 12:08:35 -0800 (Mon, 14 Dec 2009)
    Log Message:
    With TLF 571 checked in we can now revert the MXML 2009 changes for how the id language attribute is processed.
    An unqualified id property will no longer be seen as a setter for a normal public, writable, non-static "id" property - which matches Flex 3 behavior.
    As in earlier versions of Flex, the mechanism to retain MXML id attribute information at runtime is to implement mx.core.IMXMLObject. The compiler will generate a call to the intialized() method and pass in the id information.
    Note: One exception to this rule seems to be UIComponent which instead get id attribute information via mx.core.IDeferredInstantiationUIComponent (although there seems to be a TODO in the codebase to remove this mechanism and thus should not be relied on by third parties).
    QE notes: Please add tests for the TLF id property on flow elements (div, span, p, etc).
    Doc notes: Please check that we have not documented
    Bugs: N/A
    Reviewer: Paul
    Tests run: Checkintests, local test cases.
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Type.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.ja va
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IID.as

    This is a duplicate post.  This should be locked to avoid further confusion.
    My CSS wont change
    Nancy O.

  • How can I fetch the element's attribute value by AS in a mxml file?

    Sample code:
    <mx:MenuBar id="myMenuBar" labelField="@label"
    width="100%">
    <mx:XMLList>
    <menuitem label="MenuItem A">
    <menuitem label="SubMenuItem A-1" enabled="false"/>
    <menuitem label="SubMenuItem A-2"/>
    </menuitem>
    </mx:XMLList>
    </mx:MenuBar>
    How can I fetch the myMenuBar's width value by AS in a mxml
    file. I can't find any API about it!

    quote:
    Originally posted by:
    atta707
    myMenuBar.width
    assuming your AS file/class has access to this component
    under the same id, myMenuBar.
    Yes,you are right. Width is a existed property in myMenuBar
    object in AS. I ignore this case.
    But now, I want to fectch attribute "label"'s value in
    <menuitem label="MenuItem A">.
    How can I get attribute "label"'s value if "label" is
    additional attribute for the element.

  •       Specifying class properties in MXML elements instead of attributes (e.g. DataGridColumns)

    Hi there,
    In all the examples I've seen so far, specifying the columns
    for a
    DataGrid is done as follows:
    <mx:DataGrid>
    <mx:columns>
    <mx:DataGridColumn />
    <mx:DataGridColumn />
    <mx:columns>
    </mx:DataGrid>
    However, I'm wonder whether there's a way to express the data
    grid
    columns simply as an _attribute_ value on the
    <mx:DataGrid> element?
    If not, does anybody know of an explanation of the syntax for
    setting
    class properties when they are not set as attributes?
    For example, since "columns" is a property of the DataGrid
    class, but
    it is set via an XML element, and not via an XML attribute, I
    would
    assume you can do something similar for other properties.
    However, I
    can't seem to find official documentation on this in the Flex
    3
    Language Reference.
    Joubert

    This works:
    <mx:Array id="theMXMLColumns">
    <mx:DataGridColumn headerText="Column 1" />
    <mx:DataGridColumn headerText="Column 2" />
    </mx:Array>
    <mx:DataGrid id="dg2" columns="{theMXMLColumns}" />
    However, the "columns" property of DataGrid must be an array,
    and arrays are not bindable, so ActionScript updates to the array
    would not be shown. e.g. This will not work:
    <mx:Script>
    <![CDATA[
    import mx.collections.*;
    import mx.controls.dataGridClasses.*;
    private var theASColumns:Array;
    private function doCreationComplete():void{
    var dgc:DataGridColumn;
    theASColumns = new Array();
    dgc = new DataGridColumn();
    dgc.headerText = "Column 1";
    theASColumns.push(dgc);
    dgc = new DataGridColumn();
    dgc.headerText = "Column 2";
    theASColumns.push(dgc);
    ]]>
    </mx:Script>
    <mx:DataGrid id="dg" columns="{theASColumns}" />

  • Exercise 6 - Error: Cannot resolve attribute 'selectedOptions' for component type components.ReservationForm.     AdobeODT/src     AdobeODT.mxml     line 71

    Hi,
    I'm getting this error when I'm trying to save AdobeODT.mxml file.  I've declared the "selectedOptions" variable as public. Can you please tell me where I went wrong? Please find my code below. I'm getting error on the line marked in red.
    Thanks in advance
    AdobeODT.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical" backgroundColor="#FFFFFF"
    creationComplete="init()"
    horizontalAlign="left"
    paddingTop="5"
    xmlns:comp="components.*">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.events.ListEvent;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.FaultEvent;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import events.OptionSelectEvent;
    [Bindable] private var roomList:ArrayCollection;
    [Bindable]
    public var selectedOptions:ArrayCollection = new ArrayCollection();
    private function changeHandler(event:ListEvent):void{
    private function init():void{
    rooms.send();
    private function httpFaultHandler(event:FaultEvent):void{
    Alert.show("There is an error","Error");
    private function httpResultHandler(event:ResultEvent):void{
    roomList=event.result.rooms.room;
    private function optionHandler(event:OptionSelectEvent):void{
    var index:int=selectedOptions.getItemIndex(event.option);
    if(index == -1){
    selectedOptions.addItem(event.option);
    else{
    selectedOptions.removeItemAt(index);
    ]]>
    </mx:Script>
    <mx:HTTPService id="rooms" url="assets/roomList.xml"
    fault="httpFaultHandler(event)"
    result="httpResultHandler(event)"/>
    <mx:Label text="XYZ Convention Center"
    x="10" y="10"
    fontSize="21" fontWeight="bold"/>
    <mx:HBox>
    <mx:Text x="10" y="41"
    text="111 49th Ave, Denver, CO 80634"/>
    <mx:Text text="Phone: 303-555-1212" x="208" y="41"/>
    <mx:Text text="Fax: 303-555-1234" x="345" y="41"/>
    </mx:HBox>
    <mx:Label text="Room Reservation System"
    fontWeight="bold" fontSize="14"
    x="10" y="72" />
    <mx:Canvas height="100%">
    <mx:Label x="0" text="Please select any additional amenities needed for your room. Our staff will contact you to finalize your reservation" />
    <comp:Options x="0" y="26"
    optionSelected="optionHandler(event)"/>
    <mx:Label text="Room Available:" x="0" y="116"/>
    <mx:List id="dg" x="0" y="142" width="250"
    dataProvider="{roomList}"
    itemClick="changeHandler(event)"
    labelField="name"/>
    <comp:ReservationForm x="439" y="114" width="318" height="529" selectedOptions="{selectedOptions}"/>
    </mx:Canvas>
    </mx:Application>

    Hi,
    We tested the student files to the latest FB4.6 version and followed the steps according to the exercise and everything worked.  Are you running the latest version of FB4.6?
    Hope this helps,
    FiaW

  • 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

  • I can't found my request attributes in FlexContext.getHttpRequest()

    I´m including an swf (the compiled version of my mxml
    page) in a jsp which is part of my Struts application, like this:
    <embed pluginspage='
    http://www.macromedia.com/go/getflashplayer'
    width='750'
    height='200'
    src='
    http://pc8251e:7001/samples/pruebasAle/chooser.swf'/>
    This is the chooser.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="{myClientillo.getList()}">
    <mx:RemoteObject id="myClientillo"
    destination="chooserProvider"
    showBusyCursor="true" />
    <mx:DataGrid height="200" width="750"
    dataProvider="{myClientillo.getList.lastResult}" >
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn dataField="id" headerText="Id"/>
    <mx:DataGridColumn dataField="campo1"
    headerText="Nombre"/>
    <mx:DataGridColumn dataField="campo2"
    headerText="Apellido"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    I' ve configured in the remoting-config.xml the Remote Object
    chooserProvider like this:
    <destination id="chooserProvider" >
    <properties>
    <source>samples.providers.ChooserProvider</source>
    <scope>application</scope>
    </properties>
    </destination>
    In the samples.providers.ChooserProvider.java, I want to
    acces the attributes that are setted in the HTTP request. I tried
    using the FlexContext.getHttpRequest() and the
    FlexContext.getFlexSession(), but the attributes doesn´t
    exist. Here is the code of the ChooserProvider.java
    public Object[] getList()
    System.out.println("OTRA VEZ EN ChooserProvider.getList()");
    HttpServletRequest req = FlexContext.getHttpRequest();
    FlexSession flxSession = FlexContext.getFlexSession();
    System.out.println("FlexContext.getHttpRequest(): "+req);
    System.out.println("FlexContext.getFlexSession() :
    "+flxSession);
    Enumeration enum = req.getAttributeNames();
    while (enum.hasMoreElements()) {
    String element = (String) enum.nextElement();
    System.out.println(element+" <>
    "+req.getAttribute(element));
    Enumeration en = flxSession.getAttributeNames();
    while (en.hasMoreElements()) {
    String element = (String) en.nextElement();
    System.out.println(element+" -->
    "+flxSession.getAttribute(element));
    ArrayList list=new ArrayList();
    return list.toArray();
    but this is the output in the console
    OTRA VEZ EN ChooserProvider.getList()
    FlexContext.getHttpRequest(): Http Request:
    /samples/messagebroker/amf
    FlexContext.getFlexSession() :
    flex.messaging.HttpFlexSession@1a0d111
    weblogic.servlet.network_channel.port <> 7001
    __flexSession --> flex.messaging.HttpFlexSession@1a0d111
    Where are the attributes that i have setted in the request in
    the previous page? How can I access them ?
    I'm using weblogic 8.1 and Flex 2 with Flex Data
    Services

    Have you signed up for a personal hotspot with your cell provider?

  • How to use mxml in a jsp file?

    I'm trying to use flex in a .jsp file. I followed the
    suggestion that I use the Flex 2 Tag library as suggested by this
    link:
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP#Download_and_Installation
    but I couldn't find it. I also downloaded LiveCycle Data Services
    ES but couldn't find the flex-bootstrap.jar.
    I have a simple example:
    <!--<%@ taglib uri="FlexTagLib" prefix="mm" %>-->
    Use the <mxml> tag to insert a Flex application in an
    existing JSP page. The following example shows the <mxml> tag
    with the source attribute to include an external MXML file:
    <mm:mxml source="CustomerServiceChat.mxml"/>
    Alternatively, you can use the <mxml> tag with inline
    MXML source code, as the following example shows:
    <mm:mxml>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*">
    <mx:Text label="Hello World">
    </mx:Application>
    </mm:mxml>
    I also added the following code in my web.xml:
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/lib/flex-bootstrap.jar</taglib-location>
    </taglib>
    and obviously I get an error because I don't have the
    flex-bootstrap.jar file. Please let me know how this can be
    corrected. Thanks in advance!

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Adobe - Developer Center : Flex quick start guide for PHP
    developers:
    Apr 30, 2007 ... In this example, I changed the result data
    type to XML with E4X support by setting .... In Flex you would
    download a file using this code:
    Link:
    http://www.adobe.com/devnet/flex/articles/php_getstarted.html
    2d. Tutorial - Flex 3 Getting Started - Adobe Learning
    Resources:
    See Calling XML Web Services over the Web Using the Web
    Service References ... For information on integrating PHP and Flex
    using AMF to encode the data,
    Link:
    http://learn.adobe.com/wiki/display/Flex/2d.+Tutorial
    Mike Potter: Flex and PHP - A simple sample:
    I have other example with PHP and MySql and give the same
    error, and a example .... Flex Data Services... I choose None (???)
    because I work with php and
    Link:
    http://blogs.adobe.com/mikepotter/2006/02/flex_and_php_a_1.html
    Adobe - Developer Center : Transmitting data between Flex and
    PHP:
    Sep 4, 2007 ... Now that the user interface is set up and
    ready to go you can add the HTTP services to go ask for the data
    from the PHP code. In Flex you
    Link:
    http://www.adobe.com/devnet/flex/articles/flex_php_json.html
    Integrating Adobe Flex and PHP:
    Mar 1, 2006 ... The first step is to download Flex Builder
    2.0 from the Adobe labs ... For example, you could use this same
    PHP script to pass data to a
    Link:
    http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Trying to assign an XML attribute value to a button label

    I have a Flex app (developed in FLEX 2) that reads from
    multiple XML files and populates datagrids with element values.
    What I'm trying to do now, is to create a second column with a
    button, enabling users to view archived versions for each current
    report.
    My problem is: I can't get the <mx:Button> label to
    accept the attribute "name". I've tried atleast 10 - 20 different
    syntax.
    My XML file looks like this:
    <metrics>
    <report name="test">
    <link>test Report 10/28/2008</link>
    <url>test-10_28_2008.zip</url>
    <status>active</status>
    </report>
    </metrics>
    The mxml looks like this:
    <mx:Button buttonMode="true" useHandCursor="true"
    click="handleClick()" label="{data.@name}" width="80">
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new
    URLRequest([L=http://new.test.com/pages/r_archive_apps/"+data.link+".html");[/L]]http://n ew.test.com/pages/r_archive_apps/"+data.link+".html");[/L][/L]
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:Button>
    When I try to label a button with an element it works fine.
    Some of the other sytax I've used are:
    - label="{data.report.@name}"
    - label="{data.report.(@name=='test')}"
    - label="{data.report.(@name='test')}"
    - label="{data.@name}"
    - label="{data.metrics.report.@name}"
    - label="{data.metrics.report.(@name=='test')}"
    - label="{data.metrics.report.(@name='test')}"

    quote:
    Originally posted by:
    rtalton
    Can you post some code so we can see how you are using the
    button? I think you may be using the button within a datagrid
    itemRenderer, which might make a difference.
    You're right, the button is in a datagrid itemRenderer. I've
    pasted more dataGrid code below - thanks again.
    <mx:DataGrid id="dgCatalog" dataProvider="{_xlcCatalog}"
    rowCount="4" editable="false" sortableColumns="false"
    left="148" top="65" bottom="42" borderStyle="solid"
    alternatingItemColors="[#ecf8ff, #ffffff]"
    themeColor="#ffff80" alpha="1.0" cornerRadius="0"
    dropShadowEnabled="true" dropShadowColor="#000000" width="549"
    creationCompleteEffect="{glow3}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn editable="false" headerText="Daily -
    Report Names" dataField="link" textAlign="left" width="200">
    <mx:itemRenderer>
    <mx:Component>
    <mx:LinkButton click="handleClick()" label="{data.link}"
    >
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new URLRequest("
    http://test.new.com/test/"+data.url);
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:LinkButton>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn editable="false" headerText="Daily -
    Report Archives" dataField="link" textAlign="left" width="80">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Button buttonMode="true" useHandCursor="true"
    click="handleClick()" label="{data.report.@name}" width="80">
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new URLRequest("
    http://test.new.com/pages/test_apps/"+data.link+".html");
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:Button>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <!--mx:DataGridColumn headerText="URL" dataField="url"
    width="350"/>
    <mx:DataGridColumn headerText="Status" dataField="status"
    width="70"/-->
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>

Maybe you are looking for

  • ITunes on XP 64 bit ... Can I Run a 32-bit Version?

    I understand that there is no supported version of iTunes that will run on XP 64-bit, but I followed a hack that I found and got it running on my XP 64-bit machine at work. The problem is that I am now getting an error message that says something abo

  • Parallel processing in background using Job scheduling...

    (Note: Please understand my question completely before redirecting me to parallel processing links in sdn. I hve gone through most of them.) Hi ABAP Gurus, I have read a bit till now about parallel processing. But I have a doubt. I am working on data

  • JVM Error : 4349254E560E43505000EC

    Getting the following Randomly: AnyIdea whats going on ? # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # Error ID: 4349254E560E43505000EC # Problematic Thread: prio=5 tid=0x2

  • Is it possible to use two queries in a bw workbook?

    How can i attach two queries into a bw workbook?

  • External hard drive recommendations for OSX 10.4.7 and Windows XP

    I just purchased an iMac20. I used bootcamp and have Windows XP running on a partition. I want to purchase an external hard drive for backup. Recommendations for an easy to use device that will allow backup of both operating systems without too much