convert any java object to javascript representation , converting types properly , e.g. : java primitives arrays : toscript new int 1 , 2 , 3 - > 1 , 2 , 3 collections sets , lists : toscript arrays.aslist new int 1 , 2 , 3 - > 1 , 2 , 3 maps : toscript map < string , string > map - > \ `` a \ '' :\ `` foo \ '' , \ `` b \ '' :\ `` bar \ '' , \ `` c \ '' :\ `` baz \ '' beans / objects : toscript new bean new bean 1 , true , `` bar '' - > \ `` bool \ '' : true , \ `` foo \ '' :\ `` bar \ '' , \ `` integer \ '' :1 dates and timezones combinations of above this function delegates to org.richfaces.javascript.scriptutils #toscript object concode_field_sep RendererUtils RENDERER_UTILS concode_elem_sep ComponentLocator locator concode_field_sep String component concode_elem_sep UIComponent findComponent concode_elem_sep UIComponent findComponent concode_elem_sep UIComponent findComponent concode_elem_sep UIComponent findComponent concode_elem_sep String clientId concode_elem_sep String jQuery concode_elem_sep void setComponentLocator concode_elem_sep boolean isUserInRole concode_elem_sep String element concode_elem_sep String jQuerySelector concode_elem_sep String jQuerySelector
String function ( Object arg0 ) { return ScriptUtils . toScript ( arg0 ) ; }