displayAsPassword attribute does not work

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

displayAsPassword attribute does not work

T-san

Hi,

displayAsPassword attribute does not work with the following markup.  Did I miss something?

===============================================================================

<?xml version = "1.0" encoding = "utf-8"?>
<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.apache.org/royale/spark"            
               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">
    <s:layout>
        <s:BasicLayout/>
    </s:layout>
    
    <s:VGroup x="50" y="50">        
        <s:TextInput id="textA"
            text="royale007"
            editable="true"
            displayAsPassword="false"
            maxChars="10" />
        <s:TextInput id="textB"
            displayAsPassword="true" />
    </s:VGroup> 
    
</s:Application>

S. Takeshita
Reply | Threaded
Open this post in threaded view
|

Re: displayAsPassword attribute does not work

Alex Harui-2

It hasn’t been implemented in Spark TextInput yet.  You should be able to copy the code from MX TextInput into Spark TextInput (as an override of SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how to modify the framework code and provide pull requests.  Then you will be less dependent on other volunteers in the future.

 

Thanks,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[hidden email]" <[hidden email]>
Subject: displayAsPassword attribute does not work

 


Hi,

 

displayAsPassword attribute does not work with the following markup.  Did I miss something?

 

===============================================================================

 

 

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

 

<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

 

               xmlns:s="library://ns.apache.org/royale/spark"            

 

               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">

 

    <s:layout>

 

        <s:BasicLayout/>

 

    </s:layout>

 

    

 

    <s:VGroup x="50" y="50">        

 

        <s:TextInput id="textA"

 

            text="royale007"

 

            editable="true"

 

            displayAsPassword="false"

 

            maxChars="10" />

 

        <s:TextInput id="textB"

 

            displayAsPassword="true" />

 

    </s:VGroup> 

 

    

 

</s:Application>

 



 

S. Takeshita

 

Reply | Threaded
Open this post in threaded view
|

Re: displayAsPassword attribute does not work

T-san
Alex, OK.  I will try.  I need some time to understand the process.

Do I need to create an issue for this error?
I think I should do the FORK before doing the work at my terminal, correct?

Thanks.

ST

On Fri, Dec 6, 2019 at 1:53 AM Alex Harui <[hidden email]> wrote:

It hasn’t been implemented in Spark TextInput yet.  You should be able to copy the code from MX TextInput into Spark TextInput (as an override of SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how to modify the framework code and provide pull requests.  Then you will be less dependent on other volunteers in the future.

 

Thanks,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[hidden email]" <[hidden email]>
Subject: displayAsPassword attribute does not work

 


Hi,

 

displayAsPassword attribute does not work with the following markup.  Did I miss something?

 

===============================================================================

 

 

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

 

<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

 

               xmlns:s="library://ns.apache.org/royale/spark"            

 

               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">

 

    <s:layout>

 

        <s:BasicLayout/>

 

    </s:layout>

 

    

 

    <s:VGroup x="50" y="50">        

 

        <s:TextInput id="textA"

 

            text="royale007"

 

            editable="true"

 

            displayAsPassword="false"

 

            maxChars="10" />

 

        <s:TextInput id="textB"

 

            displayAsPassword="true" />

 

    </s:VGroup> 

 

    

 

</s:Application>

 



 

S. Takeshita

 



--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: displayAsPassword attribute does not work

Alex Harui-2

Thanks in advance for trying.

 

You can try following the “Squashing Bugs” instructions https://royale.apache.org/get-involved/

 

Let us know if the instructions need improvement as well.

 

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 2:05 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: displayAsPassword attribute does not work

 

Alex, OK.  I will try.  I need some time to understand the process.

 

Do I need to create an issue for this error?

I think I should do the FORK before doing the work at my terminal, correct?

 

Thanks.

 

ST

 

On Fri, Dec 6, 2019 at 1:53 AM Alex Harui <[hidden email]> wrote:

It hasn’t been implemented in Spark TextInput yet.  You should be able to copy the code from MX TextInput into Spark TextInput (as an override of SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how to modify the framework code and provide pull requests.  Then you will be less dependent on other volunteers in the future.

 

Thanks,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[hidden email]" <[hidden email]>
Subject: displayAsPassword attribute does not work

 


Hi,

 

displayAsPassword attribute does not work with the following markup.  Did I miss something?

 

===============================================================================

 

 

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

 

<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

 

               xmlns:s="library://ns.apache.org/royale/spark"            

 

               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">

 

    <s:layout>

 

        <s:BasicLayout/>

 

    </s:layout>

 

    

 

    <s:VGroup x="50" y="50">        

 

        <s:TextInput id="textA"

 

            text="royale007"

 

            editable="true"

 

            displayAsPassword="false"

 

            maxChars="10" />

 

        <s:TextInput id="textB"

 

            displayAsPassword="true" />

 

    </s:VGroup> 

 

    

 

</s:Application>

 

 

 

S. Takeshita

 


 

--

Shoichiro Takeshita
武下 祥一郎

Reply | Threaded
Open this post in threaded view
|

Re: displayAsPassword attribute does not work

T-san
Alex, I did the following:

1. Copy mx’s displayAsPasswod section of TextInput.as to the end of spark’s TextInout.as.

2. Add override in front of public function get displayAsPassword() and public function set displayAsPassword().

3. Add import org.apache.royale.html.accessaries.PasswordInputBead.

It seems these functions are not overdriven.  When moving the mouse over the dusplayAsPassword attribute, the pop up still points SkinnableTextBase.  And the password column in the HTML field is not yet masked. Did I miss something?  Thanks.

2019年12月6日(金) 7:17 Alex Harui <[hidden email]>:

Thanks in advance for trying.

 

You can try following the “Squashing Bugs” instructions https://royale.apache.org/get-involved/

 

Let us know if the instructions need improvement as well.

 

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 2:05 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: displayAsPassword attribute does not work

 

Alex, OK.  I will try.  I need some time to understand the process.

 

Do I need to create an issue for this error?

I think I should do the FORK before doing the work at my terminal, correct?

 

Thanks.

 

ST

 

On Fri, Dec 6, 2019 at 1:53 AM Alex Harui <[hidden email]> wrote:

It hasn’t been implemented in Spark TextInput yet.  You should be able to copy the code from MX TextInput into Spark TextInput (as an override of SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how to modify the framework code and provide pull requests.  Then you will be less dependent on other volunteers in the future.

 

Thanks,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[hidden email]" <[hidden email]>
Subject: displayAsPassword attribute does not work

 


Hi,

 

displayAsPassword attribute does not work with the following markup.  Did I miss something?

 

===============================================================================

 

 

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

 

<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

 

               xmlns:s="library://ns.apache.org/royale/spark"            

 

               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">

 

    <s:layout>

 

        <s:BasicLayout/>

 

    </s:layout>

 

    

 

    <s:VGroup x="50" y="50">        

 

        <s:TextInput id="textA"

 

            text="royale007"

 

            editable="true"

 

            displayAsPassword="false"

 

            maxChars="10" />

 

        <s:TextInput id="textB"

 

            displayAsPassword="true" />

 

    </s:VGroup> 

 

    

 

</s:Application>

 

 

 

S. Takeshita

 


 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: displayAsPassword attribute does not work

Alex Harui-2

Hi T-San,

 

Sounds like a cache problem somewhere.  I’m guessing you are using an IDE.  The IDE is pointing to a set of SWCs usually from some frameworks/libs or frameworks/js/libs folder.  But often those SWCs are loaded at IDE startup and not reloaded after compiling a library project, and also the compilation of a library project from the IDE may not copy the SWC from the library project’s target folder to the libs folder.

 

When you get around to testing the code, a common mistake is to not clean out the bin and bin-debug and other output folders when compiling the application.

 

HTH,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, December 11, 2019 at 8:53 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: displayAsPassword attribute does not work

 

Alex, I did the following:

 

1. Copy mx’s displayAsPasswod section of TextInput.as to the end of spark’s TextInout.as.

 

2. Add override in front of public function get displayAsPassword() and public function set displayAsPassword().

 

3. Add import org.apache.royale.html.accessaries.PasswordInputBead.

 

It seems these functions are not overdriven.  When moving the mouse over the dusplayAsPassword attribute, the pop up still points SkinnableTextBase.  And the password column in the HTML field is not yet masked. Did I miss something?  Thanks.

 

2019126() 7:17 Alex Harui <[hidden email]>:

Thanks in advance for trying.

 

You can try following the “Squashing Bugs” instructions https://royale.apache.org/get-involved/

 

Let us know if the instructions need improvement as well.

 

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 2:05 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: displayAsPassword attribute does not work

 

Alex, OK.  I will try.  I need some time to understand the process.

 

Do I need to create an issue for this error?

I think I should do the FORK before doing the work at my terminal, correct?

 

Thanks.

 

ST

 

On Fri, Dec 6, 2019 at 1:53 AM Alex Harui <[hidden email]> wrote:

It hasn’t been implemented in Spark TextInput yet.  You should be able to copy the code from MX TextInput into Spark TextInput (as an override of SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how to modify the framework code and provide pull requests.  Then you will be less dependent on other volunteers in the future.

 

Thanks,

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[hidden email]" <[hidden email]>
Subject: displayAsPassword attribute does not work

 


Hi,

 

displayAsPassword attribute does not work with the following markup.  Did I miss something?

 

===============================================================================

 

 

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

 

<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"

 

               xmlns:s="library://ns.apache.org/royale/spark"            

 

               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="1024" minHeight="768">

 

    <s:layout>

 

        <s:BasicLayout/>

 

    </s:layout>

 

    

 

    <s:VGroup x="50" y="50">        

 

        <s:TextInput id="textA"

 

            text="royale007"

 

            editable="true"

 

            displayAsPassword="false"

 

            maxChars="10" />

 

        <s:TextInput id="textB"

 

            displayAsPassword="true" />

 

    </s:VGroup> 

 

    

 

</s:Application>

 

 

 

S. Takeshita

 


 

--

Shoichiro Takeshita
武下 祥一郎

--

Shoichiro Takeshita
武下 祥一郎