Hi Patrick
Funny, i never used number values in a combo but it seems that it doesn't really work.. if you use string, its no problem (not even a default value needed if you set it in the java managed bean):
XPage:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:comboBox id="cbDefViewRows" value="#{config.numViewRows}">
<xp:selectItem itemLabel="5" itemValue="5" />
<xp:selectItem itemLabel="15" itemValue="15" />
<xp:selectItem itemLabel="25" itemValue="25" />
<xp:selectItem itemLabel="50" itemValue="50" />
<xp:selectItem itemLabel="75" itemValue="75" />
<xp:selectItem itemLabel="100" itemValue="100" />
</xp:comboBox>
</xp:view>
Java Class:
package com.test;
public class Config {
private String numViewRows = "75";
public String getNumViewRows() {
return numViewRows;
}
public void setNumViewRows(String numViewRows) {
this.numViewRows = numViewRows;
}
}
Also when i used a converter in the xpage (integer only) it didn't work.. mbe its best to just convert it in your java class and handle the values as strings (ugly i know..).
have a nice weekend