jsf a model -driven generation approach for web...

1
A Model-Driven Generation JSF A Model-Driven Generation JSF Approach for Web Applications JSF Approach for Web Applications JSF Automatic Generation of Web Applications from UWE-Models Automatic Generation of Web Applications from UWE-Models http://uwe.pst.ifi.lmu.de http://uwe.pst.ifi.lmu.de UWE UML-based Web Engineering UWE UML-based Web Engineering based on standards (e.g. UML, MDA) separation of concerns (content, navigation, presentation, …) separation of concerns (content, navigation, presentation, …) model-driven development process model-driven development process model consistency check model consistency check UWE JSF UWE JSF set of plug-ins for the Eclipse IDE based purely on technologies from the Eclipse Modeling Project (EMF, ATL, JET) seamless combination with other tools (e.g. Eclipse Web Tools Platform) Eclipse Web Tools Platform) uses the scripting Object-Graph Navigation uses the scripting Object-Graph Navigation Language (OGNL) Language (OGNL) generates complete JSF 1.2 web frontend generates complete JSF 1.2 web frontend easy integration of J2EE backend easy integration of J2EE backend support for JSF component libraries support for JSF component libraries (e.g. Apache MyFaces Tomahawk) (e.g. Apache MyFaces Tomahawk) UWE4JSF Generation Process Automatic Code Generation UWE4JSF Generation Process Automatic Code Generation input: UML models designed with UWE profile Complex data selection in navigation model input: UML models designed with UWE profile designed in any CASE tool that supports EMF UML2 2.x (e.g. MagicDraw) Complex data selection in navigation model with OGNL platform independent model (PIM) marked with presentation element mappings with OGNL configurable MDA-compliant transformation chain PIM PSM Code custom handlers for actions, persistence, etc. custom handlers for actions, persistence, etc. flexible integration of legacy code flexible integration of legacy code result: fully JSF 1.2 conformant web application result: fully JSF 1.2 conformant web application Flexible data manipulation Fine-grained mapping of abstract to concrete Generated Example Flexible data manipulation in processes with OGNL UI components (core-grained by rules) Generated Example Application Web Engineering Group Marianne Busch Web Engineering Group PST – Institute for Informatics Marianne Busch Alexander Knapp Ludwig-Maximilians-Universität München, Germany Nora Koch DFG project MAEWA II 841/7-2, Germany Christian Kroiss Martin Wirsing DFG project MAEWA II 841/7-2, Germany ICWE 2009 San Sebastian, Spain tool demostration Martin Wirsing Gefei Zhang ICWE 2009 San Sebastian, Spain tool demostration Gefei Zhang

Upload: others

Post on 24-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: JSF A Model -Driven Generation Approach for Web Applicationsuwe.pst.ifi.lmu.de/posters/UWE4JSF.pdf · 2016. 12. 20. · platform independent model (PIM) marked with presentation element

A Model-Driven GenerationJSF A Model-Driven GenerationJSF A Model-Driven GenerationApproach for Web ApplicationsJSF Approach for Web ApplicationsJSF

Automatic Generation of Web Applications from UWE-Models Automatic Generation of Web Applications from UWE-Models http://uwe.pst.ifi.lmu.dehttp://uwe.pst.ifi.lmu.de

UWE – UML-based Web Engineering UWE – UML-based Web Engineering

� based on standards (e.g. UML, MDA)� separation of concerns (content, navigation, presentation, …)� separation of concerns (content, navigation, presentation, …)� model-driven development process� model-driven development process� model consistency check� model consistency check

UWEJSFUWEJSF� set of plug-ins for the Eclipse IDE

UWEJSF� set of plug-ins for the Eclipse IDE

� based purely on technologies from the � based purely on technologies from the Eclipse Modeling Project (EMF, ATL, JET)

� seamless combination with other tools (e.g. Eclipse Web Tools Platform)Eclipse Web Tools Platform)

� uses the scripting Object-Graph Navigation � uses the scripting Object-Graph Navigation Language (OGNL)Language (OGNL)

� generates complete JSF 1.2 web frontend� generates complete JSF 1.2 web frontend

� easy integration of J2EE backend� easy integration of J2EE backend

� support for JSF component libraries� support for JSF component libraries(e.g. Apache MyFaces Tomahawk)(e.g. Apache MyFaces Tomahawk)

UWE4JSF Generation Process

Automatic Code GenerationUWE4JSF Generation Process

Automatic Code Generation

� input: UML models designed with UWE profile Complex data selection in navigation model � input: UML models designed with UWE profile � designed in any CASE tool that supports EMF UML2 2.x (e.g. MagicDraw)

Complex data selection in navigation modelwith OGNL � designed in any CASE tool that supports EMF UML2 2.x (e.g. MagicDraw)

� platform independent model (PIM) marked with presentation element mappingswith OGNL

� configurable MDA-compliant transformation chain PIM → PSM → Codecustom handlers for actions, persistence, etc. � custom handlers for actions, persistence, etc.

� flexible integration of legacy code� flexible integration of legacy code

� result: fully JSF 1.2 conformant web application� result: fully JSF 1.2 conformant web application

Flexible data manipulationFine-grained mapping of abstract to concrete Generated Example Flexible data manipulationin processes with OGNL

Fine-grained mapping of abstract to concrete UI components (core-grained by rules)

Generated Example Application

Web Engineering Group Marianne BuschWeb Engineering GroupPST – Institute for Informatics

Marianne BuschAlexander Knapp

Ludwig-Maximilians-Universität München, GermanyAlexander KnappNora Koch

DFG project MAEWA II 841/7-2, GermanyChristian KroissMartin WirsingDFG project MAEWA II 841/7-2, Germany

ICWE 2009 – San Sebastian, Spain – tool demostration

Martin WirsingGefei ZhangICWE 2009 – San Sebastian, Spain – tool demostration Gefei Zhang