[jboss-cvs] jboss-seam/examples/wiki/view/themes/default ...
Christian Bauer
christian at hibernate.org
Thu May 3 10:10:48 EDT 2007
User: cbauer
Date: 07/05/03 10:10:48
Modified: examples/wiki/view/themes/default template.xhtml
Log:
Resizable text editor area with jQuery
Revision Changes Path
1.20 +27 -0 jboss-seam/examples/wiki/view/themes/default/template.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: template.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/themes/default/template.xhtml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- template.xhtml 22 Apr 2007 10:15:32 -0000 1.19
+++ template.xhtml 3 May 2007 14:10:48 -0000 1.20
@@ -26,7 +26,29 @@
thisfield.value = defaulttext;
}
}
+ function jsf(id) {
+ // Find the dynamic JSF client identifier by looking up
+ // the static identifier of its j4j proxy child element
+ var realId = document.getElementById(id).title;
+ var element = document.getElementById(realId);
+ return $(element);
+ }
</script>
+ <script type="text/javascript" src="#{themePath}/js/jquery.js"></script>
+ <script type="text/javascript" src="#{themePath}/js/interface.js"></script>
+ <script type="text/javascript">$(function() {
+/* jQuery example
+ jsf("documentDisplay_").find("a").hover(
+ function() {
+ $(this).parents("div").css("background", "lightGreen")
+ },
+ function() {
+ $(this).parents("div").css("background", "white")
+ }
+ );
+ */
+
+ });</script>
</head>
<body>
@@ -111,6 +133,11 @@
<div id="footer">
<ui:insert name="footer"/>
+ <div align="right" style="font-size:smaller;">
+ LaceWiki is using
+ <a href="http://www.jboss.com/products/seam">JBoss Seam</a> and
+ running on <a href="http://www.jboss.org/products/jbossas">JBoss Application Server</a>.
+ </div>
</div>
<!-- Remove this to disable Facelets JSF debugging
More information about the jboss-cvs-commits
mailing list