Questions tagged [value-provider]

39 questions
2
votes
2 answers

ASP.net MVC JsonValueProvider byte type issue

I am posting JSON to a controller method, and it appears as if the JsonValueProvider included with ASP.Net MVC 3 is broken when it tries to cast JSON numbers into the byte type. Basically what is happening is that any non-null value that needs to be…
LRFalk01
  • 961
  • 8
  • 17
1
vote
1 answer

DefaultModelBinder not binding model (always null) even though ModelState contains all required values

I am working with the sample ASP.NET MVC 3 application. I am working on a proof of concept for an API for a project I'm working on, by sending log in requests using HttpWebRequests. I am submitting data as JSON and am using the Content Type…
Dan Joseph
  • 685
  • 1
  • 6
  • 15
1
vote
1 answer

Dataflow. ValueProvider. How to create from several options?

I successfully use NestedValueProvider if I need to perform some transformations with input value before providing it into step. But how should I act if I need to combine 2+ Value inputs? In documentations it said: Note: NestedValueProvider accepts…
1
vote
1 answer

force mvc to use Custom Value Provider based on Cookies instead of default use of Querystring

I have a Custom Value Provider implemented. And I have a link with containing querystring something like ads?lid=val and my action definition public async ReturnType ads(int lid=0) I registered Value provider in Global.asax like …
user786
  • 3,902
  • 4
  • 40
  • 72
1
vote
1 answer

Difference between MVC Model binding and Web API Model binding?

When I'm passing data in both url and content: My MVC controllers are able to read data from it and gives me proper model. My WEB API controller doesn't provide proper object it misses a data which is passed as a content. What is the difference…
1
vote
1 answer

How to use ServiceStack.Text for Json deserialization in ASP.NET MVC ValueProvider

How can I use ServiceStack.Text Json serializer for deserializing strings in ASP.NET MVC request during value binding for the controller method parameters?
Sumrak
  • 3,740
  • 7
  • 31
  • 37
1
vote
1 answer

Value Provider Path null issue GXT 3.0

In GXT 3.0, valueProvider, I have a null pointer exception issue. I have this code snippet, @Path("xxx.yyy") ValueProvider zzz(); I use a ValueProvider like this, and in this situation, if xxx or yyy is null, I simply got null pointer…
Uğurcan Şengit
  • 976
  • 1
  • 11
  • 31
1
vote
2 answers

ASP.NET MVC3 ValueProvider drops string input to a double property

I'm attempting to validate the input of a text box which corresponds to a property of type double in my model. If the user inputs "foo" I want to know about it so I can display an error. However, the ValueProvider is dropping the value silently (no…
Daniel Koverman
  • 2,545
  • 2
  • 21
  • 30
1
vote
1 answer

MVC3 How to modify incoming model before TryUpdate?

This should be simple, but I'm not seeing it, so I hope somebody can help (all my posts probably start this way). So I have a model coming into a controller. [HttpPost] public ActionResult Index(Policy screenModel) I want to do something specific…
James in Indy
  • 2,804
  • 2
  • 25
  • 25
0
votes
1 answer

Mock MVC3 ControllerContext query string collection and ValueProvider

I followed code sample in Steve Sanderson's MVC3 book, there is a piece of ControlContext mock code there I can setup form and query string values. In order to support TryUpdateModel in unit test I made some change to the code, for example I have…
hardywang
  • 4,864
  • 11
  • 65
  • 101
0
votes
1 answer

MVC2 - Checkboxes added to form via JQuery not seen in formcollection on JQuery submit

I took over another project and have fixed everything else except this one problem. I think I've seen this before, but can't for the life of me remember what the solution was. The table in the .spark view looks like this. Then a JQuery script,…
Andy Evans
  • 6,997
  • 18
  • 72
  • 118
0
votes
1 answer

get valueprovider from vaadin grid column in vaadin 24

I'm working on a project that exports vaadin grid data to excel. To get the data from the grid cells, the column.getRenderer().getValueProviders() method is used, similar to how it's done in this addon. Renderer.getValueProviders() was deprecated in…
0
votes
1 answer

KafkaIO withBootStrapServers

I am trying to get a server ID as a parameter while executing the run command using ValueProvider For the Value Provider in Options Interface: ValueProvider getKafkaServer(); void setKafkaServer(ValueProvider
0
votes
0 answers

Is it possible to route and bind multiple content types to the same action?

From microsoft docs: By default, model binding gets data in the form of key-value pairs from the following sources in an HTTP request: Form fields The request body (For controllers that have the [ApiController] attribute.) Route data Query string…
0
votes
1 answer

How to get the value of a ValueProvider and write it in a BigQuery table?

Good Morning, I created a DataFlow template that read some informations in BigQuery, apply some transformations and write the result in a new BigQuery Table. This template takes 2 parameters : Input query Project's name I wanted to write the…