Problem :
I want to insert Javascript to the <h:commandButton />
's onclick
property as the action
is already rendering the ajax table.
What I want to do is to get a selected items in the list box and turn them into the parameters to be used in the JSF FileServlet
. i.e. para2=value1¶m=value2¶m=value3
What I get when the page is loaded as below:
javax.servlet.ServletException: Error Parsing /page.xhtml: Error Traced[line:15] The content of elements must consist of well-formed character data or markup.
As soon as I add the for (var i = 0; i < length; i++)
or even the for (var i = 0; i < 10; i++)
my page wouldn't load. How can I fix my for loop issue?