Created
June 21, 2011 19:15
-
-
Save werpu/1038629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:cust="http://java.sun.com/jsf/composite/components"> | |
<h:head> | |
<title>MyFaces 2.0 Javascript API Tests Part1</title> | |
<cust:loadscripts /> | |
<style type="text/css"> | |
@import "./styles/style.css"; | |
</style> | |
</h:head> | |
<h:body> | |
<h2>this script checks for a double eval by embedding an inline alert | |
after blurring the input text the alert should be retriggered</h2> | |
<h:form id="testForm"> | |
<h:panelGroup id="testGroup"> | |
<h:inputText id="myTest" value="#{myBean2.searchTerm}"> | |
<f:ajax render="testGroup"/> | |
</h:inputText> | |
<script type="text/javascript"> | |
alert("inline script issuing command"); | |
</script> | |
</h:panelGroup> | |
</h:form> | |
</h:body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment