InputNumber: Safari keyboard entry not working
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:14 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok good at least we have narrowed it down. let me investigate and see what I can find out
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.