royale-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <>
Subject Re: Work on Emulation
Date Sat, 29 Dec 2018 07:23:45 GMT
Verify that you are using [ResourceBundle] correctly, then verify that the resources are being
added to the output.  You can compare to the simpler example we got working recently to see
where the resource bundles end up in the output.


From: Serkan Taş <>
Reply-To: "" <>
Date: Friday, December 28, 2018 at 11:48 AM
To: "" <>
Subject: Re: Work on Emulation

Hi Alex,

I moved the content of toutdeflexmodule to my project and it is working as expected except
the ones coming from resource.

Here is the output :


Here is the source (Part of, not complete) :

    <mx:Panel title="Form Container Example"
              paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10"
              height="100%" width="100%">

        <mx:Text width="100%"
                 text="Moving from one form field to another triggers the validator."/>

        <mx:Form width="100%" height="100%">
            <mx:FormHeading label="Enter values into the form."/>

            <mx:FormItem label="{resourceManager.getString('messages', 'login')}">
                <mx:TextInput id="fname" width="200"/>

            <mx:FormItem label="Date of birth (mm/dd/yyyy)">
                <mx:TextInput id="dob" width="200"/>

            <mx:FormItem label="E-mail address">
                <mx:TextInput id="email" width="200"/>

            <mx:FormItem label="Age">
                <mx:TextInput id="age" width="200"/>

            <mx:FormItem label="SSN">
                <mx:TextInput id="ssn" width="200"/>

            <mx:FormItem label="Zip">
                <mx:TextInput id="zip" width="200"/>

            <mx:FormItem label="Phone">
                <mx:TextInput id="phone" width="200"/>

            <mx:FormItem paddingLeft="63">
                <s:Button id="button" width="64" label="{resourceManager.getString('messages',
'login')}" click="button_clickHandler(event)"/>


As you can see, the resource button is working but the ones in formitem does not. The label
of the first text field is missing but the same resource for button is working.


28.12.2018 03:35 tarihinde Alex Harui yazdı:
The basic process is to debug into the components and propose fixes for them.  It is probably
wise to check examples/mxroyale/tourdeflexexamples to see if the component is functioning
at all.  I thought that Form/FormItem was displaying something.  It can help you figure out
where to debug.


From: Serkan Taş <><>
Reply-To: ""<> <><>
Date: Thursday, December 27, 2018 at 12:32 PM
To: ""<> <><>
Subject: Re: Work on Emulation


For the beginning of my project, I am now working on problems with the emulated components

How should I continue for the emulated components ?

Components : mx.containers.From and mx.containers.FromItem

Problem :
·         Layout is not rendered as expected.
·         FormItem labels are not displayed
·         FormItem child text is not correctly rendered

Test source  :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx=""<>



            private var trIcon:Class;
            private var enIcon:Class;

            private function changeLocale(locale:String):void {

            protected function button_clickHandler(event:MouseEvent):void {



        title="{resourceManager.getString('messages', 'loginTitle')}"

        <mx:Button y="-27" right="30" width="20" click="changeLocale('tr_TR')" icon="{trIcon}"
        <mx:Button y="-27" right="5" width="20" click="changeLocale('en_US')" icon="{enIcon}"

        <mx:Form width="288"><!-- defaultButton="{button}" -->

            <mx:FormItem paddingTop="20" label="{resourceManager.getString('messages',
                <s:TextInput id="userName" />

            <mx:FormItem  x="29" y="74" label="{resourceManager.getString('messages', 'password')}">
                <s:TextInput id="password" displayAsPassword="true"/>

            <mx:FormItem paddingLeft="63">
                <s:Button id="button" width="64" label="{resourceManager.getString('messages',
'login')}" click="button_clickHandler(event)"/>


View :


Original in flex :

Not : Images are not included in test source, should be disregarded,


View raw message