Password hide in textfield codenameone - codenameone

I used the following code to hide password in textfield.
TextField passwordTextField = new TextField("", "PASSWORD", 20, TextField.PASSWORD);
What happens in device is that when I start entering the password, only black dot is shown. A letter should be shown while typing and when other letter is typed, the former letter should be hidden(black dot). But only black dot is seen. The same code works in iOS though.

That sounds like a security feature of the native device that is probably unrelated to Codename One.

Related

React-Native: Code compiling correctly but screens are empty

I am fairly new to react native and have been attempting to build a very simple registration app.
Currently I have 2 screens running, the first landingscreen.js includes a button to prompt the first registration screen.
This screen works fine but its title shows as blank. (I am using react-navigator)
Below is the screen and you can find the corresponding code here.
On clicking the register here button the next screen is prompted which should show two fields an email and password field with the title "Let's create an account". As you can see below , all that works is the next button but I have no compilation errors. The code pertaining to this screen may be accessed here.
Any help or way pointing would be more than appreciated.
Thanks,
J.
Change navigation(you have written navigtion) spelling
static navigationOptions= {
title: "Let's make an account",
}
The headers not being seen was solved as #Paras Watts noted by fixing a spelling mistake.
To get the fields to show I then put the jsx pertaining to the form in the same render as the navigation also changing any tags to view to stick to the format of jsx.

playground/application command shortcut different behavior

sorry my english. Hi
check this little example
Playground example
Go to table, start edition of some cell, then press Escape, and press Escape again:
the edition cancel, and the command's execute listener work fine.
All is Ok.
Now copy this example to blank new Qooxdoo 5.0.2 application, run and edit a cell.
The behavior change: the command completely nullifies the table's keypress listener when I press Escape key.
What is good, what is bad?
If I change the line
if (! table.isEditing()) this.debug("escape");
to
if (! table.isEditing()) {
this.debug("escape")
} else {
table.cancelEditing();
table.focus();
}
the behavior is reasonable.
But I want the Playground behavior. And I want understand, because when I subclass table widget and interact with several commands I get similar problems.
I'm doing something wrong? How can solutionate this differente behavior?
Im using Firefox 49 and Windows 8.1.
Thanks

What's a way to implement backspace working in field in ncurses

I am try to create tui via ncurses. And I have same problem.
There are two fields:
Name
_______
Password
_______
How to implement backspace-support in each field ?
And how to use '*' to show each character in password-field ? (Now I use field_opts_off(field[1], O_PUBLIC);and it doesn't show characters in password-field, only move cursor).
Thank you.
There is no tutorial for the forms package that I recall. However, the ncurses test-programs (which are available separately as ncurses-examples) contains a program demo_forms which does implement deletion by maintaining the edited field contents as a hidden field buffer, and decrementing its length in the case for REQ_DEL_CHAR.
Here is a screenshot of the program:
Regarding the "non-ncurses" suggestion: dialog is a curses/ncurses application, and has no particular dependency upon bash.
"Non-ncurses" solution (just for an alternative):
You can use dialog program to perform this task in a very easy way. Just run some linux system commands from C to achieve a nice TUI.
If you want to install it, the package name is dialog too.
For a textfield, you can do: dialog --inputbox <text> <height> <width> [<init>]
For a password field: dialog --passwordbox <text> <height> <width> [<init>]
For more info: http://bash.cyberciti.biz/guide/Bash_display_dialog_boxes

Firefox returns blank $viewValue when type="number" with space in field

I'm trying to setup a credit card entry field, and I need to be able to separate the digit-groups with a space. But on a mobile device, I want the number keyboard to appear, so I'm using input[type="number"] instead of just input[type="text"].
Currently, when I test on Chrome it's working. The $viewValue appearing in the directive for the credit card field shows the 16-digit number (Angular even auto-removes the spaces because of number type field).
But in Firefox, as soon as you type a space, $viewValue returns as "" (even though the field value is "5555 5555 5555 4444").
Is there any way to make this work as expected?
Wow Maybe this a serious Mozilla Bug, with no solution for now, then you may apply other ways to resolve this.
Use mask (lose number on mobile): Try Plugins, library like this http://digitalbush.com/projects/masked-input-plugin/ , the bad user loses the PAD NUMBER on mobile devices.
To keep input number (complex only for fun): Make a input type hidden, then when the user type on number field, fill the hidden input with the value.
Use text field (best way): yes number is the new era on HTML5, but users don't care that for now, yeah show only numbers with the pad (like most apps) is awesome, now ask is really necesary?
Dynamic Form JS: verify the browser version, if Wild Mozilla appears, change type number to type text ;)
Good luck !!
best regards from http://elporfirio.com

J2ME Polish Textfields and Symbian^3 Touch Devices

today's question is about the use of textfields in J2ME Polish for Symbian^3 devices.
In my code I have something like this:
TextField digitValueText = new TextField ("Number", "", 1, TextField.NUMERIC);
This works perfectly fine on other symbian devices (s40, s60, etc), however, when I go and test it on a Nokia N8 (Symbian^3) I can't input numbers, nor does the device allow me to select the textfield to popup the keyboard.
Has anyone else gone through this problem?
the textField has to be numbers-only since we don't want the users to input text (it's for authentication).
Thanks in advance!
EDIT: So it seems that this behavior is from polish.TextField.useDirectInput, TextField.NUMERIC inherits the behavior by default...
still any ideas on this?
Change the project configuration to Generic/AnyPhone.

Resources