Interleaving the xforms processing model with java server faces request processing
AssigneeInternational Business Machines Corporation
InventorsDerek W. Carr, Carol A. Jones, Ajamu A. Wesley, Cesar A. Wong
Life of this patent
Estimating the term…
Abstract
A method, system and apparatus for interleaving XForms with JSF request processing can be provided. The system can include an XForms definition generated for a form configured for rendering in a Web application. Specifically, the XForms definition can specify a data model for data to be processed within the form. The system further can include a JSF code generation module programmed to process the forms model to produce a form bean, a faces configuration, and a JSF page for each navigable view defined in the XForms definition.
Claims14
A data processing system for interleaving XForms with Java server faces (JSF) request processing, the system comprising:
- a computer with memory and at least one processor;
- an XForms definition stored in the memory and generated for a form configured for rendering in a Web application, said XForms definition specifying a data model for data to be processed within said form;
- a JSF code generation module registered as a validator for any control in said form which has been bound to data for said form, the module being programmed to process said forms model to produce a form bean, a faces configuration, and a JSF page for each navigable view defined in said XForms definition, the form bean comprising getter and setter methods for every binding element, arbitrary data, control properties, event handler and submission in the form, the module executing in the memory of the computer;
- and,
- a lifecycle phase listener for forms processor integration, the listener dispatching every event which generates JSF request processing to a forms processing engine through the form bean in response to detecting the event.
A method for interleaving XForms with Java server faces (JSF) request processing, the method comprising:
- rendering a JSF request to generate a forms context for a form;
- registering a forms processor as a validator for at least one control in said form which has been bound to data for said form;
- accepting data for said form and applying control data for said accepted data;
- calling said validator to perform validations on said control data for said accepted data;
- applying said accepted data to a model instance inside said form;
- and,
- dispatching every event which generates JSF request processing to said forms processor through a form bean in response to detecting the event which generates request processing, the form bean comprising getter and setter methods for every binding element, arbitrary data, control properties, event handler and submission in the form.
(canceled)
A computer program product comprising a computer usable medium including computer usable program code for interleaving XForms with Java server faces (JSF) request processing, said computer program product including;
- computer usable program code for rendering a JSF request to generate a forms context for a form;
- computer usable program code for registering a forms processor as a validator for at least one control in said form which has been bound to data for said form;
- computer usable program code for accepting data for said form and applying control data for said accepted data;
- computer usable program code for calling said validator to perform validations on said control data for said accepted data;
- computer usable program code for applying said accepted data to a model instance inside said form;
- and,
- computer usable program code for dispatching every event which generates JSF request processing to said forms processor through a form bean in response to detecting the event which generates request processing, the form bean comprising getter and setter methods for every binding element, arbitrary data, control properties, event handler and submission in the form.
(canceled)
Dependencies are inferred from the claim text.