Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

single page type of UI and UML  RSS feed

 
Alexander Petrov
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hei, lets suppose that we have AJAXified JSF pages and we use facelets as well. If we have an application that is with separate pages we will put them in the CLASS diegram as XHTML pages. But if we have a situation where we have everything in one page, can we again put several XHTML classes in the class and component diagram After all these controls that are placed on the single page application are XHTML fragments. Basicly my question is in terms of UML how do you declare the XHTML stuff. It should be the same as multi page web application?
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the class diagram I would have those JSF fragments as separate classes. Just make sure you label/stereotype them as "fragment"

For the component diagram, one component for the whole set of pages/fragments representing common thing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!