Author: nbelaevski
Date: 2007-12-06 18:38:31 -0500 (Thu, 06 Dec 2007)
New Revision: 4580
Modified:
branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/OptionItemConverter.java
branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
orderingListDemo updated to comply jsf 1.1
Modified:
branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/OptionItemConverter.java
===================================================================
---
branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/OptionItemConverter.java 2007-12-06
22:57:45 UTC (rev 4579)
+++
branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/OptionItemConverter.java 2007-12-06
23:38:31 UTC (rev 4580)
@@ -21,7 +21,7 @@
int index = value.indexOf(':');
- return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index
+ 1)));
+ return new OptionItem(value.substring(0, index), Integer.valueOf(value.substring(index
+ 1)).intValue());
}
/* (non-Javadoc)
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-12-06
22:57:45 UTC (rev 4579)
+++ branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-12-06
23:38:31 UTC (rev 4580)
@@ -90,22 +90,22 @@
</ol:orderingList>
<h:panelGrid columns="2">
- <h:panelGroup layout="block" styleClass="eventDiv"
id="ontopclickDiv" >
+ <h:panelGroup styleClass="eventDiv" id="ontopclickDiv"
>
<h:outputText value="ontopclick" />
</h:panelGroup>
- <h:panelGroup layout="block" styleClass="eventDiv"
id="onbottomclickDiv" >
+ <h:panelGroup styleClass="eventDiv" id="onbottomclickDiv"
>
<h:outputText value="onbottomclick" />
</h:panelGroup>
- <h:panelGroup layout="block" styleClass="eventDiv"
id="onorderchangedDiv" >
+ <h:panelGroup styleClass="eventDiv" id="onorderchangedDiv"
>
<h:outputText value="onorderchanged" />
</h:panelGroup>
- <h:panelGroup layout="block" styleClass="eventDiv"
id="ondownclickDiv" >
+ <h:panelGroup styleClass="eventDiv" id="ondownclickDiv"
>
<h:outputText value="ondownclick" />
</h:panelGroup>
- <h:panelGroup layout="block" styleClass="eventDiv"
id="onupclickDiv">
+ <h:panelGroup styleClass="eventDiv" id="onupclickDiv">
<h:outputText value="onupclick" />
</h:panelGroup>
- <h:panelGroup layout="block" styleClass="eventDiv"
id="onheaderclickDiv" >
+ <h:panelGroup styleClass="eventDiv" id="onheaderclickDiv"
>
<h:outputText value="onheaderclick" />
</h:panelGroup>
</h:panelGrid>
@@ -144,15 +144,15 @@
<h:outputText value="Order Controls Visible" />
<h:selectOneRadio value="#{demoBean.orderControlsVisible}" >
- <f:selectItem itemValue="true" itemLabel="true" />
- <f:selectItem itemValue="false" itemLabel="false" />
+ <f:selectItem itemValue="#{true}" itemLabel="true" />
+ <f:selectItem itemValue="#{false}" itemLabel="false"
/>
<a4j:support event="onchange" reRender="orderingList1"
/>
</h:selectOneRadio>
<h:outputText value="Fast Order Controls Visible" />
<h:selectOneRadio value="#{demoBean.fastOrderControlsVisible}" >
- <f:selectItem itemValue="true" itemLabel="true" />
- <f:selectItem itemValue="false" itemLabel="false" />
+ <f:selectItem itemValue="#{true}" itemLabel="true" />
+ <f:selectItem itemValue="#{false}" itemLabel="false"
/>
<a4j:support event="onchange" reRender="orderingList1"
/>
</h:selectOneRadio>