[jboss-cvs] jboss-seam/examples/jee5/remoting/view ...
Michael Yuan
michael.yuan at jboss.com
Mon Aug 6 23:21:13 EDT 2007
User: myuan
Date: 07/08/06 23:21:13
Added: examples/jee5/remoting/view helloworld.xhtml index.html
Log:
re-structure the jee5 directory
Revision Changes Path
1.1 date: 2007/08/07 03:21:13; author: myuan; state: Exp;jboss-seam/examples/jee5/remoting/view/helloworld.xhtml
Index: helloworld.xhtml
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Seam Remoting - Hello World Example</title>
</head>
<body>
<h1>Seam Remoting - Hello World Example</h1>
<p>
</p>
<s:remote include="helloAction"/>
<script type="text/javascript">
//<![CDATA[
function sayHello() {
var name = prompt("What is your name?");
Seam.Component.getInstance("helloAction").sayHello(name, sayHelloCallback);
}
function sayHelloCallback(result) {
alert(result);
}
// ]]>
</script>
<button onclick="javascript:sayHello()">Say Hello</button>
</body>
</html>
1.1 date: 2007/08/07 03:21:13; author: myuan; state: Exp;jboss-seam/examples/jee5/remoting/view/index.html
Index: index.html
===================================================================
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=helloworld.seam">
</head>
</html>
More information about the jboss-cvs-commits
mailing list