Skip to main content

Questions tagged [model-view-controller]

Model–View–Controller (MVC) is an architectural pattern, introduced in mid 1970-s in PARC into how to compose software interfacing also with user-interactions. For Microsoft ASP.NET MVC, please use [asp.net-mvc] or [asp.net-core-mvc] tag instead. For Spring MVC, please use [spring-mvc] tag instead.

model-view-controller
0 votes
1 answer
34 views

dropdown MVC don't keep focus for selected option

I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option: @{ ViewData["Title"] = "Index"; IsOpenFilterState ...
Maciek's user avatar
  • 171
0 votes
0 answers
13 views

Ideal use of controller and service layer

I have a question between the controller and the service, so I leave a question. Below is an example. There is an API that creates a company. The process of creating a company is Check if the company ...
유남균's user avatar
-3 votes
0 answers
63 views

How to properly design a program with multiple menus using MVC

I am creating a program in which I have a MainMenu class which represents the main menu of the program. The main menu will have several different options to choose from through buttons, one of which ...
Alexander Jonsson's user avatar
0 votes
1 answer
57 views

How do I make sure that I only load flights on search and not initial page load

Rails baby here! trying to work it out with Rails 7. I have a small toy app here that tries to search for flights then have users book a flight. I have managed to string together the app to a point of ...
Taku Mapfumo's user avatar
0 votes
0 answers
13 views

how to automatically load a custom view in a plugin in cakephp?

Here I developed a nano system to publish thoughts in a diary, very simple, but functional for the need. The content is in a Json structure and there would be a need to change the aesthetics of the ...
Jootah's user avatar
  • 1
0 votes
0 answers
11 views

I am trying to add a new event i to the existing events in a date or new events to a date using n Jquery Fullcalendar control

I am trying to add a new event to the jquery calendar control. I can see existing event in each date but I cannot add a new event . I am looking for a help to add new event to the calendar control. ...
Alevel's user avatar
  • 47
1 vote
0 answers
47 views

How can I enable HTTPS support for localhost?

I am new to Helidon, and we want our Java app to support HTTPS for REST calls. I have a sample controller that returns some string, and my app currently runs on http://localhost:8080. How can I enable ...
NotACat's user avatar
  • 39
0 votes
1 answer
29 views

CKEditor 5 " Cannot Upload File : [Filename] " in Laravel 11

I want to upload an image to Ckeditor, but when I upload it to the text editor, I can't public function upload(Request $request) { if ($request->hasFile('upload')) { $...
Rezki Andika's user avatar
0 votes
0 answers
17 views

Refernce to RouteValueDictionary claims it is defined in System.Web but could not be found

I am currently learning to unit test in ASP.NET MVC, and I have encountered an issue while working on my Controller Test class. The error message states, "Reference to RouteValueDictionary claims ...
Stutee Rath's user avatar
0 votes
0 answers
73 views

JavaFX: setting list for comboBox does not work

I am working in a JavaFX project. There I have fxml included in other fxml files. Now I need to send data from the outer controller to the inner controller. I've tried it, but the combobox looses its ...
PalBeron's user avatar
0 votes
0 answers
48 views

The instance of entity type 'ApplicationUser' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked

I have an app that uses the entity framework. I have 2 DB contexts, one for the live sql database and another using InMemory for users to demo the site without changing the live db. The problem is ...
ball's user avatar
  • 39
1 vote
1 answer
43 views

How and Should We Validate Optional Query Parameters in Spring REST Controller

I have a Spring REST API endpoint defined as follows: @GetMapping("/books") public List<Book> getBooks( @RequestParam @NotNull Long id, @RequestParam(required = false) ...
NoobCoder's user avatar
  • 605
0 votes
1 answer
56 views

spring boot redirecting post request to Login

I'm currently developing a Spring Boot application with Spring Security, and I'm facing issues with securing a specific endpoint. Despite configuring security, authenticated users are unable to create ...
kasim alshaikh ali's user avatar
0 votes
2 answers
47 views

Resolving InvalidOperationException when Passing ViewBag Content List to Partial View in ASP.NET MVC

When I call the partial view inside normal view, I'm getting this error; InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.String', but this ...
Omer Arpaci's user avatar
2 votes
3 answers
49 views

How to extend existing third party model?

I have a third party library i am using. The have provided some of the classes for me to use to transfer data from one page to another, but i dont have the source code to make changes, for example ...
KeithViking's user avatar

15 30 50 per page
1
2 3 4 5
2242