JSON ARRAY and JSF
- by Debbech
Hi,
Im working with JSF and EXT js.
I have a JSONArray created in the server-side and I want to pass it to client-side.
I used to get the array and put it in javascript var. but this tag adds a html tag (span) which make an error in javascript var !
this is the code I wrote :
var data1 = <h:outputFormat value="#{actorBean.newactors}" />
and this is the code of my page after running :
var data1 =<span>[["aaaaaaa","bbbbbbb"]]</span>
so do u have any idea how to get the array without all the tags added ?
thanks