Pete,
I'm getting the same error here, using you latest build (linked from this
thread). However, I'm using an Enum.
Error is:
| java.lang.IllegalArgumentException: selectItems' value="#{companyTypes}"
must implement java.lang.Iteratable but it is null (null)
| at
org.jboss.seam.selectitems.ui.UISeamSelectItems.createSelectItems(UISeamSelectItems.java:225)
| at
org.jboss.seam.selectitems.ui.UISeamSelectItems.getValue(UISeamSelectItems.java:204)
| at
org.apache.myfaces.shared_impl.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:102)
| at
org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:477)
|
| <h:selectOneRadio value="#{companyRegistration.companyType}"
| required="true" valueChangeListener="onCompTypeChanged()"
tabindex="3">
| <si:selectItems value="#{companyTypes}" var="companyType"
label="#{messages[companyType.labelKey]}"
| noSelectionLabel="#{messages['label_selectOne']}"
cache="false"/>
| </h:selectOneRadio>
|
| public enum CompanyType {
| MAIN("Main"),
| BRANCH("Branch");
|
| private final String name;
| private final String labelKey;
|
| private CompanyType(String name) {
| this.name = name;
| labelKey = "label_companyType_" + name;
| }
|
| public String getLabelKey() {
| return labelKey;
| }
|
| public String getName() {
| return name;
| }
|
| public String toString() {
| return name;
| }
| }
|
I just followed you wiki article and looked at the examples. Any idea what's
wrong?
/Kris
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993403#3993403
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993403
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user