Questions tagged [model-driven]

An interface to support model component of the Struts2 MVC architecture.

An interface to support model component of the Struts2 MVC architecture. This interface should implement action classes which applying a user model as a generic parameter. If an action class implements the interface ModelDriven then it needs to return an object from the getModel() method. Struts2 will then populate the fields of this object with the request parameters, and this object will be placed on top of the valueStack once the action is executed. Validation will also be performed on this model object, instead of the action.

ModelDriven action uses it's own interceptor modelDriven which included in the defaultStack interceptor stack. Thus every action that uses that stack invokes this interceptor to check if an action is instance of ModelDriven then applying a model to it.

There's also a ScopedModelDriven interface that is used for models that has lifecycle for the specified scope.

128 questions
10
votes
3 answers

Angular 2 ng-required

I made a model-driven form in angular 2, and one of the input fields must show up only if a checkbox above is unchecked.I did this with *ngIf. My question is how can I set that input required only if the checkbox is unchecked? In angular 1.x i could…
valiNidelciu
  • 103
  • 1
  • 1
  • 6
9
votes
3 answers

How Struts2 ModelDriven interface works

I have a doubt. How the Struts2 Modeldriven interface works. In my application I used for a single form. And I placed setters and getters as same as form names. Is it possible to place multiple ModelDriven objects with setter and getter. If I placed…
jayavardhan
  • 587
  • 5
  • 9
  • 19
7
votes
2 answers

symbolic execution and model-checking

What is the difference between symbolic execution and model checking (for example in model transformation)? I don't understand difference of them. Are they the same?!
7
votes
9 answers

Do you use MDA/MDD/MDSD, any kind of model-driven approach? Will it be the future?

Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. that promise…
Martin Klinke
  • 7,294
  • 5
  • 42
  • 64
7
votes
1 answer

Struts 2 Ajax Validation with jsonValidationWorkflowStack and Model Driven

I'm trying to use Ajax validation in my Struts2 web app (with JQuery plugin) and i have an issue. I had problems using the @Validations annotations so I'd just overrided the validate() method and all works fine with my xhtml forms now during the…
Saveriu CIANELLI
  • 510
  • 5
  • 17
6
votes
2 answers

Unexpected Exception caught setting 'xxx' on 'class xxx: Error setting expression 'xxx' with value ['x', ]

I'm passing some parameters to an action class implementing ModelDriven through a query-string.
Tiny
  • 27,221
  • 105
  • 339
  • 599
5
votes
7 answers

Metamodelling tools

What tools are available for metamodelling? Especially for developing diagram editors, at the moment trying out Eclipse GMF Wondering what other options are out there? Any comparison available?
prakash
  • 58,901
  • 25
  • 93
  • 115
5
votes
0 answers

Angular 4 - Ng2MDFValidationMessagesModule - Error encountered resolving symbol values statically

I know that there are a lot of questions answered for this particular error but after trying out the combination of those solutions, none tend to help with this package. ng2-mdf-validation-messages -…
Kunal Dethe
  • 1,254
  • 1
  • 18
  • 38
5
votes
1 answer

Add pipe to formControlName in Angular2

I am looking to add a number pipe to an input field in Angular2. I am using model driven forms and all my inputs have a formControlName instead of using data binding. The problem I have is formControlName="number | number : '1.2-2'" is not valid…
Andrew Anderson
  • 143
  • 1
  • 15
5
votes
1 answer

How to get ActionForm in Struts 2?

I am migrating an Struts 1 app to Struts2 and trying to minimize the code changes required. I need to know how to access the ActionForm in a Struts2 Action class. Below is my current code and I am getting NPE when trying to access ActionForm. Public…
Ravi Gupta
  • 4,468
  • 12
  • 54
  • 85
5
votes
3 answers

CakePHP multi-model view

I am creating a website in CakePHP and I am kind of new on it. I couldn't find good resources on this matter, so there you go: I have a three table structure for registering users: Users, Addresses and Contacts. I have to build a view with info of…
Fernando Barrocal
  • 12,584
  • 9
  • 44
  • 51
4
votes
6 answers

Recommended Model Based Testing Tools

Does anyone have any suggestions on what Model Based Testing Tools to use? Is Spec Explorer/SPEC# worth it's weight in tester training? What I have traditionally done is create a Visio Model where I call out the states and associated variables,…
ModelTester
  • 49
  • 1
  • 4
4
votes
1 answer

Mapping an Enum to form elements using struts2

I'm trying to create a form which contains a radio button that maps to a class that extends java.lang.Enum.
slurride
  • 127
  • 2
  • 9
4
votes
1 answer

Input fields updates when mouse is over

I made an angular 2 model-driven form with nested fields. One of this fields is a numeric field and I am using a jquery plugin to make numeric formatted. I created a directive to init this plugin when a new line of input are added, but when I add a…
3
votes
1 answer

getting ERROR TypeError: Cannot read property 'valid' of undefined for Angular 5 template form

I am trying to create a Model-Driven Angular template that is supposed to register new users. To do this, I have created 2 files for main use: admin-register.component.html admin-register-form.component.ts When attempting to go to the page that…
Casey Harrils
  • 2,793
  • 12
  • 52
  • 93
1
2 3
8 9