Hello. I work with a web application. The task appeared to transfer data from js to jsf2.0(PrimeFaces) for further processing. What ways are there? How can I implement it. From jsf to js I can transfer data using jQuery and from there to Jsf is not. Tell me the path in which direction to go, and so on ... I will be grateful.

  • Well, most likely you can get it in some other way. - elik
  • I don’t really need anything, just one var in which the width is written in java - elik

1 answer 1

At the moment, I found one way of compatibility is through @ManagedBean I @ManagedBean down the text there and then I use it. Most likely this method is caster but working. I will try to optimize the answer somehow, but at the moment we have what we have :)

  <h:form> <h:inputText id="list1SortOrder" value=""#{hope.youo}> </h:inputText> </h:form> <script type="text/javascript"> function saveOrder() { $("inputText[id*='list1SortOrder']").val("wrtie here "); }; </script>