Author: nbelaevski
Date: 2007-11-21 20:47:36 -0500 (Wed, 21 Nov 2007)
New Revision: 4166
Modified:
branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
Model handling corrected in UIOrderingList
Value holders made Serializable
OrderingList.js updated to be compatible with TEXTAREA tags
a4j:repeat resurrected for orderingListDemo
Modified: branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-22
01:09:25 UTC (rev 4165)
+++ branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-22
01:47:36 UTC (rev 4166)
@@ -26,6 +26,10 @@
</head>
<body>
<f:view>
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+ </a4j:outputPanel>
+
<h:form id="form" >
<h:selectOneRadio binding="#{skinBean.component}" />
<h:commandLink action="#{skinBean.change}" value="set skin"
/>
@@ -33,7 +37,7 @@
<a4j:status startText="START" startStyle="color: red;"
stopText="STOP" stopStyle="color: green;" />
<br />
- <h:panelGrid columns="2" columnClasses="columnClass">
+ <%--h:panelGrid columns="2" columnClasses="columnClass">
<h:panelGroup>
<ol:orderingList id="orderingList1"
value="#{demoBean.items}" var="item"
@@ -176,11 +180,43 @@
</h:column>
</ol:orderingList>
</h:panelGroup>
- </h:panelGrid>
+ </h:panelGrid--%>
<h3>Ordering lists within a4j:repeat</h3>
<a4j:commandButton reRender="repeat" value="Rerender
a4j:repeat" />
+ <h:commandButton value="Clear list"
action="#{demoBean.clear}"></h:commandButton>
+ <h:panelGrid columns="3" >
+ <a4j:repeat value="#{bean.lists}" var="list"
id="repeat">
+ <ol:orderingList value="#{list.items}" var="item" >
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:inputText value="#{item.name}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Price" />
+ </f:facet>
+ <h:outputText value="#{item.price}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Ajax Action" />
+ </f:facet>
+ <a4j:commandButton value="Ajax Action"
reRender="actionResult"
+ action="#{item.action}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Server Action" />
+ </f:facet>
+ <h:commandLink value="Server Action"
action="#{item.action}" />
+ </h:column>
+ </ol:orderingList>
- <h:commandButton value="Clear list"
action="#{demoBean.clear}"></h:commandButton>
+ <h:inputText value="123"/>
+ </a4j:repeat>
+ </h:panelGrid>
</h:form>
</f:view>
</body>
Show replies by date