0 Replies Latest reply on Aug 1, 2011 5:39 AM by satyakatti

    Provide JSON as data for extendedDataTable

    satyakatti

      Hello All,

       

      I am implementing a full text search in my project and for that the result of search comes from SOLR server as JSON.

       

      Is it possible to provide JSON for `data or value` attribute of the `richfaces` component `extendedDatatTable or simple dataTable`.

       

      Resultant JSON would look something like :

       

      resultObj = {

              "numberOfResults":25,

              "results":[

              {

                  "instanceId":100,

                  "inj_Name":"Inj4",

                  "i_IdentificationNumber":127,

                  "noz_Name":"Nozzle4",

                  "n_IdentificationNumber":460,

                  "thr_Name":"Throttleplate4",

                  "t_IdentificationNumber":0,

                  "act_Name":"Atuator4",

                  "a_IdentificationNumber":781

              },

              {

                  "instanceId":100,

                  "inj_Name":"Inj4",

                  "i_IdentificationNumber":127,

                  "noz_Name":"Nozzle4",

                  "n_IdentificationNumber":460,

                  "thr_Name":"Throttleplate4",

                  "t_IdentificationNumber":0,

                  "act_Name":"Atuator4",

                  "a_IdentificationNumber":781

              } ]

          };

       

      Regards,

      Satya