Questions tagged [inputformatter]
29 questions
7
votes
1 answer
inputFormatter should allow just decimal numbers and negative numbers
I want to allow users to just adding numbers "12345" and decimal numbers like "21321.12312" and negative numbers like -23423.32432. Users shouldn't be able to add multiple "." like "12..32" and add "-" just in first of input like -324.34 not like…

Mr. ZeroOne
- 904
- 6
- 20
5
votes
1 answer
Implementation for CombineFileInputFormat Hadoop 0.20.205
Can someone please point out where I could find an implementation for CombineFileInputFormat (org. using Hadoop 0.20.205? this is to create large splits from very small log files (text in lines) using EMR.
It is surprising that Hadoop does not have…

vladimir montealegre
- 2,010
- 2
- 15
- 17
3
votes
1 answer
Ensure only valid input number format in Flutter TextField
I've got a TextField in my flutter app, for help inputting numbers for a calculator function. For this TextField, I have set the keyboard to be numbers only, using
keyboardType: TextInputType.number
Now, this works perfectly, in a sense that it…

James
- 669
- 1
- 10
- 21
3
votes
1 answer
HttpPost with JSON parameter is not working in ASP.NET Core 3
So, I migrated my RestAPI project to ASP.NET Core 3.0 from ASP.NET Core 2.1 and the HttpPost function that previously worked stopped working.
[AllowAnonymous]
[HttpPost]
public IActionResult Login([FromBody]Application login)
{
…

Samra
- 1,815
- 4
- 35
- 71
3
votes
1 answer
Is there any way to add open generic formatters to ASP.Net Core 2.0 via ConfigureServices in Startup
As per the title, I would like to be able to add open generic InputFormatter and OutputFormatter instances as part of ConfigureServices in Startup.cs, similarly to how it is possible to add open generic services.
What I would like would look…

tker
- 266
- 1
- 9
3
votes
0 answers
Why does Cleave numeral formatting stop after two decimal places?
I am trying to format in input field using a Cleave component which groups the raw input value into thousands. I am using React JS.

Johan Jansen van Vuuren
- 75
- 1
- 8
3
votes
2 answers
Custom InputFormatter is getting ignored in ASP.NET Core 2.0
I need to build an ASP.NET Core 2.0 Web API app that will be able to have custom XML input and output formatting done.
I have been having success in setting up a custom output formatter but not a custom input formatter.
more precisely, this is the…

Andrei Rînea
- 20,288
- 17
- 117
- 166
2
votes
1 answer
Timer Formatter right to left in flutter
I Have to text field in A row I want user input in the minute text field and after two inputs automatically shifted to the left side text field which is the hours' text field
I want this:-
first I input 2 then it shows 00:02
second I input 6 then…

Shubham vyas
- 156
- 1
- 7
2
votes
1 answer
Flutter TextFormField inputFormatters regular expression (RegEx) doesn't work
I want to have a regular expression in flutter on my TextFormField, that only numbers between -999 & 999 can be put in. When I tested the expression everything worked how I wanted to, but I don't know why I can not write "-" in the…

Nobee
- 23
- 3
2
votes
1 answer
Flutter - Change text input type and input formatters dynamically on tap
I want to change the text input type and input formatters of a text field dynamically on tap. But the problem is once the text input type is done it is not changed on tap whereas the label text acts as expected.
I have done like below
bool…

Jagadish
- 1,005
- 11
- 30
2
votes
2 answers
POST body to parameter through input formatter
I'm trying to write my own Input Formatter which will read the request body, split it by line and pass it into a string array parameter in a controller action.
This works (passing the entire body as a string):
Startup.cs
public void…

morgoth84
- 1,070
- 2
- 11
- 25
2
votes
1 answer
ASP.NET Core 2.2, input formatters for XML
I'm using asp.net core 2.2 and trying to allow additional content-type value for XML. So I configured in Startup.cs like this.
services.AddMvc(options =>
{
options.ReturnHttpNotAcceptable = true;
…

bbusdriver
- 1,577
- 3
- 26
- 58
2
votes
2 answers
Apply .NET Core MVC InputFormatter to controller
I'm pretty new to .NET Core. I'm trying to set up a little MVC application. Where i implemented a controller with a defined Route.
[Route("api/ota")]
public class OTAController : ControllerBase
{
[HttpPost]
public async Task…

Michel
- 178
- 7
2
votes
1 answer
Passing data from a ModelBinder to a custom InputFormatter
The Context: In a WebAPI under Asp.net Core 2.1, I must create a POST endpoint,
[server]/MyController/{Parameter1}/MoreRouteThing/. I have to create a custom IInputFormatter because the body isn't readable by the default formatters.
The Problem:…

Tipx
- 7,367
- 4
- 37
- 59
2
votes
1 answer
Mapreduce mapper to pass both key and value as text fields
I have a small project where I have a file with 2 tab-separated text columns.
I want my mapper to read them from the file and set the second column as key and the first column as value to the reducer, but I can't seem to get it done.
Then, I want to…

Yuval Haran
- 119
- 1
- 13