mirror of
https://github.com/ralscha/extdirectspring.git
synced 2026-10-09 09:18:19 +02:00
Page:
Home
Pages
@JsonView
Api
Changelog
Changelog1_0_x
Changelog1_1_x
Changelog1_2_x
Changelog1_3_x
Changelog1_4_x
Changelog1_5_x
Changelog1_6_x
Config Spring Java Config
Config SpringXML
Configuration
Development
Form Load Method
Form Post Exception Handling
Form Post Method
Form Post Method1_0_x
Form Post Method1_1_x
Form Post With Upload
Form Post With Upload1_0_x
Form Post With Upload1_1_x
Home
Links
Migraton1_0_to_1_1
ModelGenerator
ModelGeneratorAPT
Polling Method
SSE Method
Setting Up Spring Java
Setup Maven
Simple Method
Simple Named Parameter Method
Store Modify Method
Store Read Method
Tree Load Method
No results
20
Home
İlhan Subaşı edited this page 2019-10-12 09:11:52 +03:00
ExtDirectSpring is a library that connects Ext JS (3.x,4.x,5.x,6.x) and Sencha Touch 2 JavaScript applications with Spring 3 MVC back ends. The library implements the Ext.Direct specification. It supports all the features of Ext.Direct, from simple remote calls to form posts with file upload.
To make a server method accessible it needs to be annotated with @ExtDirectMethod and it has to be a member of a Spring managed bean.
@Service
public class TestAction {
@ExtDirectMethod
public long multiply(long num) {
return num * 8;
}
}
and then call the method from JavaScript
testAction.multiply(2, function(result) {
Ext.MessageBox.alert("Result", result);
});
Table of Contents
- Introduction
- Changelog 1.7.x
- Setup Maven
- Configuration
- Server Methods
- Model Generator
- Model Generator APT
- Development
- Links