Search code examples
javajspframeworkspresentation

Any framework for customizing different view for different vendor?


We have integration with several vendor for showing our product catalouge. Every-time, we have to customizing the view according to the provided templates by Vendor. I have find following points after analyzing all the templates i.e. as follows:

  1. Commonly, i have found out there are total 6 different type of blocks. Let's suppose A,B,C,D,E,F.

Vendor John templates contains A,C,E. And the layout of the template is

          ---------------------- 
          |         A          |
          ----------------------
          |     C    |    E    |
          ----------------------

Vendor Micheal templates contains B,D,E,F. And the layout of the template is

          ---------------------- 
          |     B    |    F    |
          ----------------------
          |     D    |    E    |
          ----------------------

Vendor Shane templates contains A,B,C,D,E,F. And the layout of the template is

          ---------------------- 
          |     B    |    F    |
          ----------------------
          |     D    |    E    |
          ----------------------
          |     A    |    C    |
          ----------------------

  1. Business logic for A,B,C,D,E,F is same in all the above case.
  2. CSS, Image File and Html structure is different in all the above case.

I am trying to find out a generic solution where i can customize the view and prepare the presentation. Is there any framework in java who can help to solve my problem or any suggestion.


Solution

  • Apache tiles or Sitemesh might suit your needs. They're frameworks designed for "tiling" your view however you desire.