I need to pass an array of strings from the backing bean to the JSP. I can use a h:dataTable and display each string as a h:column entry with no problem. But I need to display this list of strings in an alert box instead of embedding it into the JSP itself. How would I pass the list to a JavaScript function and iterate over it? I then want to append each string to a variable and show it.
Here is the original data table:
    <h:dataTable id="scriptCommandTable" value="#{viewScriptRules.scriptCommands}" var="scriptCommand" columnClasses="scriptCommandSequence,scriptCommandRule" rendered="#{viewScriptRules.scriptCommandsSize > 0}">
        <h:column>
            <h:outputText value="#{scriptCommand.sequence}."/>
        </h:column>
        <h:column>
            <h:outputText value="#{scriptCommand.rule}" escape="false"/>
        </h:column>
    </h:dataTable>
 
     
     
    