Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for extending JSF life cycle

A life cycle and view technology, applied in the computer field, can solve the problems of ununified view information saving and restoration, server memory overhead, performance problems, etc., and achieve the effect of improving system efficiency.

Inactive Publication Date: 2016-09-07
CHINA UNIONPAY
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When jumping from the current page to other pages and then jumping to the current page, the view of the current page will be lost during the jump due to the cross-view operation, so it is necessary to restart when jumping to the current page Create an empty view and manually restore the data before the cross-view operation, resulting in slow processing
Especially for enterprise-level transaction systems, due to the need to frequently jump between multiple pages, on the one hand, there is no unified method for saving and restoring view information, and additional code needs to be added for the transfer of parameters when each view is switched, which brings A lot of development, testing, and maintenance costs; on the other hand, there is no unified way to clean up the cache in the view, which may cause additional memory overhead on the server and even cause performance problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for extending JSF life cycle
  • Method and apparatus for extending JSF life cycle

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the application, not all of them. . Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0038] Such as figure 1 As shown, the embodiment of this application provides a schematic flowchart of a method for extending the JSF life cycle, including:

[0039] Step 101: Obtain the first view identifier, and create a first background managed bean of the first view corresponding to the first view identifier in the rendering response phase;

[0040] Step 102: If it is determined that the background data corresponding to the first background bean is cached in th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The application discloses a method and apparatus for extending the JSF life cycle. The method comprises the steps of obtaining a first view identifier and creating a first background bean of a first view corresponding to the first view identifier in a rendering response phase; if an access graph corresponding to the first view is determined to be cached with background data corresponding to the first background bean, conducting filling for the first background bean according to the background data corresponding to the first background bean in the access graph; and displaying the first view according to the first background bean after the filling.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for extending the life cycle of JSF (Java Server Faces). Background technique [0002] The JSF life cycle generally has 5 stages: restore the view stage, in which the JSF controller finds the corresponding component according to the view ID, and constructs the background view structure; Define the interface input and background view structure; update the model value stage, assign value to the background hosting (Bean); call the application stage, execute the specific business of the specific background Bean; render the response stage, display the new view or the original view. [0003] When loading a page for the first time, JSF creates an empty view. This empty view will be filled when the user event occurs, and then JSF will directly transition to the rendering response phase to display the new view. When jumping from the current page to other ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9577G06F16/958
Inventor 王述振
Owner CHINA UNIONPAY