Author: awiner
Date: Thu Oct 5 16:40:00 2006
New Revision: 453427
URL: http://svn.apache.org/viewvc?view=rev&rev=453427
Log:
Switch demo pages back to tr:forEach where they use varStatus
Modified:
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx
Modified:
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx
URL:
http://svn.apache.org/viewvc/incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx?view=diff&rev=453427&r1=453426&r2=453427
==============================================================================
---
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx
(original)
+++
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage3.jspx
Thu Oct 5 16:40:00 2006
@@ -30,11 +30,11 @@
<tr:selectOneRadio label="#{survey.q2.prompt}"
required="true"
value="#{survey.a2}">
- <c:forEach var="item" varStatus="iter"
+ <tr:forEach var="item" varStatus="iter"
items="#{survey.q2.answerStrings}">
<!-- The strange EL syntax for "value" forces it to be a string
-->
<tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
- </c:forEach>
+ </tr:forEach>
</tr:selectOneRadio >
</tr:panelFormLayout>
</tr:panelHeader>
Modified:
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx
URL:
http://svn.apache.org/viewvc/incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx?view=diff&rev=453427&r1=453426&r2=453427
==============================================================================
---
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx
(original)
+++
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyPage5.jspx
Thu Oct 5 16:40:00 2006
@@ -29,11 +29,11 @@
<tr:selectOneRadio label="#{survey.q4.prompt}"
required="true"
value="#{survey.a4}">
- <c:forEach var="item" varStatus="iter"
+ <tr:forEach var="item" varStatus="iter"
items="#{survey.q4.answerStrings}">
<!-- The strange EL syntax for "value" forces it to be a string
-->
<tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
- </c:forEach>
+ </tr:forEach>
</tr:selectOneRadio >
</tr:panelFormLayout>
</tr:panelHeader>
Modified:
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx
URL:
http://svn.apache.org/viewvc/incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx?view=diff&rev=453427&r1=453426&r2=453427
==============================================================================
---
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx
(original)
+++
incubator/adffaces/branches/faces-1_2/trinidad/trinidad-demo/src/main/webapp/surveydemo/surveyResults.jspx
Thu Oct 5 16:40:00 2006
@@ -32,11 +32,11 @@
<tr:selectOneRadio label="#{survey.q0.prompt}"
required="true"
value="#{survey.a0}">
- <c:forEach var="item" varStatus="iter"
+ <tr:forEach var="item" varStatus="iter"
items="#{survey.q0.answerStrings}">
<!-- The strange EL syntax for "value" forces it to be a
string -->
<tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
- </c:forEach>
+ </tr:forEach>
<survey:validate_answer questionIndex="0"/>
</tr:selectOneRadio >
@@ -54,11 +54,11 @@
<tr:selectOneRadio label="#{survey.q2.prompt}"
required="true"
value="#{survey.a2}">
- <c:forEach var="item" varStatus="iter"
+ <tr:forEach var="item" varStatus="iter"
items="#{survey.q2.answerStrings}">
<!-- The strange EL syntax for "value" forces it to be a
string -->
<tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
- </c:forEach>
+ </tr:forEach>
<survey:validate_answer questionIndex="2"/>
</tr:selectOneRadio >
@@ -89,11 +89,11 @@
<tr:selectOneRadio label="#{survey.q4.prompt}"
required="true"
value="#{survey.a4}">
- <c:forEach var="item" varStatus="iter"
+ <tr:forEach var="item" varStatus="iter"
items="#{survey.q4.answerStrings}">
<!-- The strange EL syntax for "value" forces it to be a
string -->
<tr:selectItem label="#{item}" value="#{''}#{iter.index}"/>
- </c:forEach>
+ </tr:forEach>
<survey:validate_answer questionIndex="4"/>
</tr:selectOneRadio >