• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Intercepting Filter design pattern in class diagram

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How to use show the flow of Intercepting Filter design pattern in class diagram in JSF .Is the below mentioned flow correct
JSF page->Intercepting Filer->Managed Bean
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajan Choudhary wrote:If the filter is created for specific pages then your flow is right. If the filter is considered to be for all requests then showing dependency of controller on filter makes more sense and I have done the this.



Hi friends,

The class diagram below sounds good for JSF class diagram implementation?

client->jsp->frontcontroller->filter->managedbean

Best Regards,
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
looks ok to me. looks like you have filter chains, not sure the about the purpose of ExceptionHandleFilter at that place. faces-config is not required to be shown at all. If you show this one then why to leave web.xml as filter chain will be configured there. remember your business logic model classes take more importance than anything else in the class diagram. Do not miss out any backing bean model class.

As per cade's book, JSP uses Controller and controller uses model beans and that's enough. I did this.
 
Joao Bosco Jares
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rajan,

thanks a lot one more time!! One more beer in my account for you..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic