Questions tagged as 'controller'

2
answers

Wait for a change in the database to return the result in web api controller

I have programmed some Web Api controllers to feed a mobile application with data ... In one of the controls I must wait for a column in a table for a specific ID to change to return a response (in this case a JSON) I was trying to use Sql...
asked by 18.10.2016 / 00:26
3
answers

HTTP Error 404.0 Not Found

Good day mates I have this code of the contrlador and the view in asp.net mvc but when clicking on edit I get this error and verify to have created the view, I think it does not identify by id but in my code in the controller what I put it to go...
asked by 28.06.2017 / 00:16
2
answers

Articles search by category Laravel 5.3

Good evening, I'm trying to get the categories and their respective articles. I would like the name of the category to appear in the view as a title and then each of your articles appear: For example: COMPUTATION: keyboard, mouse, laptop...
asked by 24.02.2017 / 03:58
2
answers

retrieve form data with spring?

I have this method in the controller that redirects me to the page where the form is @RequestMapping(value= "/views/consulta", method = RequestMethod.GET) public String redireccionaConsultaPage(Locale locale, Model model) {...
asked by 05.06.2018 / 05:48
1
answer

Symfony, do not show a field in a Type form

Good, I have a form in Symfony of type "type" that shows a series of attributes, but in a specific case I would like to show the whole form except one field. I tried to pass from the controller to the constructor of the buildForm in the Optio...
asked by 02.02.2018 / 16:10
1
answer

Internationalize variable in controllers?

Good, I would like to internationalize a variable in a controller. I have a form in which I fill some data and depending on the data I enter in the form I want to give value to a property of the entity that I show the form. I put you in situatio...
asked by 21.12.2017 / 17:53
1
answer

Problem with return back () - withInput (); Laravel 5.2

I am trying to return backwards, with the input values preloaded, although if it shows the warning messages that I am passing, the inputs are not loading with the passed values, but they are empty. Here the codes. Controller: public functio...
asked by 29.11.2017 / 18:39
1
answer

Error Internal Server 500 xhr.send (options.hasContent && options.data || null);

Good morning. I have a Javascript process that makes a POST call to a controller, and I'm getting Internal Server 500 error, and in jquery this line marks me xhr.send( options.hasContent && options.data || null ); This only happ...
asked by 10.10.2017 / 16:06
1
answer

One controller for each Tab - TabPane JavaFx

I have a TabPane with 5 tabs, each tab has a large number of controls, what I want is to assign each Tab / Tab its own controller, the scene builder only allows me to add a controller to the top panel (the root panel) , the idea of this is to fu...
asked by 18.09.2017 / 07:51
1
answer

Maintain features in a control after doing a PostBack

Greetings. It turns out that I have a Textbox that when it loses the focus it changes its background color, all this thanks to a function that I have over there in JavaScript . Later I have another Textbox that makes a Pos...
asked by 31.07.2017 / 19:47