4 Replies Latest reply on Nov 25, 2010 11:06 AM by ilya_shaikovsky

    Creating database driven page components using richfaces

    cnish_09

      Hi All,

                I have a requirement where, in a page there will be 3 drop downs and based on the combination of values selected in these drop downs my forth coming page would be rendered. Let me explain a sample scenario

       

      DropDown 1: A,

                         B

                         C

                         D

       

      DropDown 2: E

                          F

                         G

                         H

       

      DropDown 3: I

                         J

                         K

                         L

       

      So in the above prototype if use select A,F,K his next page will be having a 10 Text box 2 dropdown 1 date picker etc

       

      Or in the above prototype if use select B,H,J his next page will be having a 3 Text box no dropdowns 2 text areas.

       

      We are planning to store this combination details in a database table like for combination 1 we will store the component type etc and we are planning to pull it from database and render the components dynamically.

       

      Now my question is: Is there a better way to handle this in richfaces by using a templates etc. Or please let me know if my approach is correct.

       

      Regards,

      Nishanth.C