Author: lfryc(a)redhat.com
Date: 2010-11-11 02:37:37 -0500 (Thu, 11 Nov 2010)
New Revision: 20027
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
Log:
fixed the a4j:repeat matrix sample using Nick's suggestion (RF-9375)
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2010-11-11
07:15:57 UTC (rev 20026)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml 2010-11-11
07:37:37 UTC (rev 20027)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j" >
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<!--
JBoss, Home of Professional Open Source
@@ -53,19 +53,19 @@
styleClass="cell
#{rowStatus.even ? 'row-even' : 'row-odd'} #{cellStatus.even ?
'cell-even' : 'cell-odd'}">
<h:inputText id="valueInput"
value="#{cell.value}" size="3">
<f:convertNumber />
- <a4j:ajax
render="form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output"
/>
+ <a4j:ajax
render="#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output"
/>
</h:inputText>
<h:commandLink id="clearLink"
action="#{cell.clearValueAction}" value="C">
- <a4j:ajax
render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput
form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax
render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput
#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output"
/>
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="increaseLink"
action="#{cell.increaseValueAction}" value="+">
- <a4j:ajax
render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput
form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax
render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput
#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output"
/>
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="decreaseLink"
action="#{cell.decreaseValueAction}" value="-">
- <a4j:ajax
render="form:a4jRepeatRows:#{rowStatus.index}:a4jRepeatColumns:#{cellStatus.index}:valueInput
form:outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
+ <a4j:ajax
render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput
#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output"
/>
</h:commandLink>
</h:panelGroup></td>
</a4j:repeat>