JSON ARRAY and JSF
Posted
by Debbech
on Stack Overflow
See other posts from Stack Overflow
or by Debbech
Published on 2010-06-14T09:57:53Z
Indexed on
2010/06/14
10:02 UTC
Read the original article
Hit count: 272
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
© Stack Overflow or respective owner