question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InputNumber: Safari keyboard entry not working

See original GitHub issue

Describe the defect Keyboard’s Input of numbers is cleared by force.

Environment:

  • PF Version: 8.0
  • JSF + version: Mojarra 2.2.19
  • Affected browsers: Safari 13.1(MacOSX)

Example XHTML

<f:view>
<h:head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="content-language" content="ja"/>
</h:head>
<h:body>
    <h:form>
        <p:dataTable var="row" value="#{BackingBean.list}" editable="true" editMode="cell">
          <p:column headerText="p:inputText:string">
            <p:inputText value="#{row.string}"/>
          </p:column>
          <p:column headerText="p:inputText:integer">
            <p:inputText value="#{row.integer}"/>
          </p:column>
          <p:column headerText="p:inputNumber:integer">
            <p:inputNumber value="#{row.integer}"/>
          </p:column>
          <p:column headerText="p:inputText:decimal">
            <p:inputText value="#{row.decimal}"/>
          </p:column>
          <p:column headerText="p:inputNumber:decimal">
            <p:inputNumber value="#{row.decimal}"/>
          </p:column>
        </p:dataTable>
    </h:form>
</h:body>
</f:view>

Example Bean

@ManagedBean(name="BackingBean")
@ViewScoped
public class BackingBean {
	private List<Bean> list = new ArrayList<>();
	public BackingBean() {
		list.add(new Bean());
		list.add(new Bean());
		list.add(new Bean());
		list.add(new Bean());
	}
	public List<Bean> getList() {
		return list;
	}
	public void setList(List<Bean> list) {
		this.list = list;
	}
}
public class Bean {
	private String string;
	private int integer;
	private BigDecimal decimal;
	public String getString() {
		return string;
	}
	public void setString(String string) {
		this.string = string;
	}
	public int getInteger() {
		return integer;
	}
	public void setInteger(int integer) {
		this.integer = integer;
	}
	public BigDecimal getDecimal() {
		return decimal;
	}
	public void setDecimal(BigDecimal decimal) {
		this.decimal = decimal;
	}
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mellowarecommented, May 19, 2020

ok good at least we have narrowed it down. let me investigate and see what I can find out

0reactions
mellowarecommented, May 20, 2020

OK issue is reported at AutoNumeric. https://github.com/autoNumeric/autoNumeric/issues/681

I watching that issue and will upgrade AutoNumberic when they fix it. For now closing this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

safari - input type number not working on ipad - Stack Overflow
On iOS the numeric keypad only shows 0-9, and that specific "pattern" is the only one allowed. You cannot add "." or ","...
Read more >
<input type="number"> - HTML: HyperText Markup Language
<input> elements of type number are used to let the user enter a number. They include built-in validation to reject non-numerical entries.
Read more >
Finger-friendly numerical inputs with `inputmode` - CSS-Tricks
This big button numeric keyboard is finger-friendly and will help prevent users bouncing from your form in frustration. However, type="number" ...
Read more >
If a numeric keypad doesn't work on Mac - Apple Support
If your keyboard has a separate keypad but no Num Lock key, try pressing Shift-Delete. If the numeric keypad still doesn't work as...
Read more >
Why the number input is the worst input - Stack Overflow Blog
The thing is, the issues cited in that article weren't even the primary ... for example, by forcing a numeric keypad on a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found