in Education by
Using Play Framework, you can do something like this: public static void mymethod() { // do stuff here MyModel mymodel = new MyModel(); Binder.bindBean(params.getRootParamNode(), "mymodel", mymodel); // equivalent to specifying this in the method params : // mymethod (@Valid MyModel mymodel) } But that would require that you send your params as "mymodel.name", "mymodel.title", etc (with name & title in the model). What I'd like to do is getting rid of the "mymodel." in the params, just sending "name", "title", and bind them directly to my model. I know I can't do that with @Valid (well, as far as I know), but I tried something like this, and it didn't work : Binder.bindBean(params.getRootParamNode(), "", mymodel); // Nothing between quotes I know this is possible, I found it before but can't put my finger on it now, could you help me please? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Well, I'll answer myself on that one. All you have to do is replace this : Binder.bindBean(params.getRootParamNode(), "mymodel", mymodel) by this : Binder.bindBean(params.getRootParamNode(), mymodel, null);

Related questions

0 votes
    I have a json file contains a icons object like this: "icons" : { "logo" : "fa fa-caret-down ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    Which of these data models is an extension of the relational data model? (a) Object-oriented data model (b ... topic in section Storage and File Structures of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    I have an ASP.NET MVC website. In my backend I have a table called People with the following ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    I'm not sure why the change detection wouldn't work here. I've tried a few things, including a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    I'm not sure why the change detection wouldn't work here. I've tried a few things, including a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 16, 2022 in Education by JackTerrance
0 votes
    I have a split screen design. I'd like to access the folder ID from the parent route only when ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 30, 2022 in Education by JackTerrance
0 votes
    I have an angular 7 project and I'm using Angular universal. Everything is working fine except when I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 30, 2022 in Education by JackTerrance
0 votes
    I am using jquery ajax get. SO when my form is submitted it then submits to a php file but the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    I am using jquery ajax get. SO when my form is submitted it then submits to a php file but the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    What was the name of the first model which can perform wieghted sum of inputs? (a) McCulloch-pitts neuron model (b) ... (d) none of the mentioned Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    What is the name of the model in figure below? (a) Rosenblatt perceptron model (b) McCulloch-pitts model (c) Widrow ... (d) None of the mentioned Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    what is the another name of weight update rule in adaline model based on its functionality? (a) LMS error learning ... (d) none of the mentioned Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    Is it possible to get model's table name? I see that it's possible to get it from ModelStruct ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Using the WCF web programming model one can specify an operation contract like so: [OperationContract] [WebGet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I'm getting below error while fetching a response from SOAP service from a java client: [javax.xml.bind ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 8, 2022 in Education by JackTerrance
...