EFW Examples

Collection of example implementations and tests with documentation links

Examples

efw Framework Input Test Example

This example demonstrates how to use the efw framework to handle various types of HTML input elements.


efw Framework Output Test Example

Output Test is a complete example demonstrating the data output functionality in the efw framework, showing how to dynamically populate various HTML form elements with JSON data. This example includes both frontend JSP pages and backend JavaScript event handling logic.


efw Framework Action Test Example

ActionTest is a complete example that demonstrates user interface interactions and operations in the efw framework, showing how to implement various frontend operation functions including shortcut keys, element control, dialogs, file operations, and page navigation.


efw Dialog Example

This example demonstrates the complete implementation of dialog functionality in the efw framework, including the usage of various dialog types (alert, confirm, wait, preview, and custom dialogs). The efw framework provides a concise API for creating and managing various user interaction dialogs.

With JQuery UI

With Bootstrap4

With Bootstrap5


efw File Upload Example

This example demonstrates the implementation of file upload functionality in the efw framework, specifically showing how to restrict upload file types (only .xlsx format allowed). The efw framework provides a concise API for handling file upload, save, and management operations, while supporting file type validation.


efw elFinder File Manager Example

The efw framework integrates the elFinder file manager, enabling complete file management functionality in web applications through simple tags. elFinder is a popular file manager based on JavaScript and PHP. The efw framework encapsulates it, provides a Java connector, and offers it in the form of JSP tags.


efw Chart Component Example

The efw framework provides powerful charting capabilities that enable various types of chart displays through simple JSP tags. This component supports two rendering engines - Google Charts and Chart.js - meeting chart requirements for both online and offline environments.


efw Barcode and QR Code Generation Example

The efw framework provides powerful barcode and QR code generation capabilities that can generate various types of barcodes and QR codes through simple Servlet calls. This functionality is implemented based on ZXing and Barcode4j libraries, supporting multiple barcode formats including QR Code, Code 128, EAN-13, and more.


efw Excel Operation Example

The efw framework provides a set of APIs that simplify Excel operations by encapsulating the complexities of Apache POI, making the creation, editing, and processing of Excel files more straightforward and intuitive. This example demonstrates various Excel operation functionalities within the efw framework.


efw Large File Processing Technology Example

This example demonstrates various optimization techniques of the efw framework for processing large text and CSV files. It provides a complete solution specifically for memory management, I/O efficiency, and concurrent processing in big data scenarios.


efw Database Operation Example

The efw framework provides a complete database operation solution that supports connection pool management, external SQL definition, and data transformation processing. This example demonstrates how to use efw for various database operations, including basic CRUD operations such as table creation, data insertion, update, and deletion.


efw Email Sending Function Example

The efw framework provides a simple and easy-to-use email sending function that supports sending emails through Gmail SMTP servers. This functionality supports advanced features such as templated email content, attachment sending, and multiple recipient settings, while maintaining ease of use.


efw Multilingual Support Example

The efw framework provides complete internationalization (i18n) support, enabling applications to easily implement multilingual functionality. Through externalized language resource files and simple tag usage, you can quickly build web applications that support multiple languages.


efw PDF Processing Function Examples

The efw framework provides powerful PDF processing capabilities, supporting two main PDF operation methods:

  1. PDF form field population (Field filling function)
  2. HTML to PDF conversion (HTML conversion function) This example demonstrates how to use efw’s PDF module for efficient PDF document generation and processing.

efw and Vue.js Integration Example

This example demonstrates how to integrate the efw framework with the Vue.js frontend framework to implement a frontend-backend separation development model. efw is responsible for backend data processing and business logic, Vue.js handles frontend user interface and state management, and the two communicate through efw events.


efw WebSocket Mode Example

The efw framework provides WebSocket mode support, implementing real-time communication, progress feedback, and broadcast functionality. This example demonstrates how to use WebSocket mode for efficient client-server communication, including progress display and real-time message broadcasting.


efw Framework Login and Authorization Control Example

This is a sample web application based on the efw framework, demonstrating comprehensive login control and authorization management functionality. Designed for both internal enterprise systems and internet-facing web applications, it provides a defense-in-depth security architecture that effectively prevents direct URL access and malicious calls through developer tools.


efw Batch Processing Example

EFW provides powerful batch processing capabilities that allow developers to write batch processing logic using JavaScript and execute it in both Windows and Linux environments. The following is a complete batch processing example.