Author: nbelaevski
Date: 2010-05-31 09:18:36 -0400 (Mon, 31 May 2010)
New Revision: 17408
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml
Log:
document.getElementById(...) replaced with #{rfn:element(...)}
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml 2010-05-31
13:03:49 UTC (rev 17407)
+++
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml 2010-05-31
13:18:36 UTC (rev 17408)
@@ -3,6 +3,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rfn="http://richfaces.org/misc"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:rich="http://java.sun.com/jsf/composite/rich">
<p>JSF 2 provides queue mechanism out-of the box already. And RichFaces queue just
provides
@@ -63,11 +64,11 @@
</h:form>
</rich:panel>
<script type="text/javascript">
- var events=0;
- var updates=0;
- var outEvents=document.getElementById('form:events');
- var outUpdates=document.getElementById('form:updates');
- var outRequests=document.getElementById('form:requests');
+ var events = 0;
+ var updates = 0;
+ var outEvents = #{rfn:element('events')};
+ var outUpdates = #{rfn:element('updates')};
+ var outRequests = #{rfn:element('requests')};
var requests=0;
function addEvent(){