我收到以下异常org.zkoss.zk.ui.UiException
和java.lang.NumberFormatException
. 有人可以帮忙吗?我的堆栈跟踪如下:
Nov 08, 2013 10:43:17 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1359
SEVERE: >>org.zkoss.zk.ui.UiException: For input string: "Enter Number"
>>java.lang.NumberFormatException: For input string: "Enter Number"
>> at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
>> at java.lang.Double.parseDouble(Unknown Source)
>> at com.abcd.acd.a.web.viewmodel.FolderInfoEditViewModel.loadFolderInfoList(FolderInfoEditViewModel.java:633)
>> at com.abcd.acd.a.web.viewmodel.FolderInfoEditViewModel.afterCompose(FolderInfoEditViewModel.java:116)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
我的祖尔文件:
<zk if="${civilInfoData.infoType.equalsIgnoreCase('n') and !civilInfoData.encrypted }">
<doublebox value="@bind(civilInfoData.folderInforecord.infoValueNumeric)"
hflex="1" placeholder="@load(vm.getText('FolderInfoDetail:LABEL_VALUE'))"
mandatory="@load(civilInfoData.folderInforecord.valueRequired)"
maxlength="10"
tooltiptext="@load(vm.getText('FolderInfoDetail:ENTER_NUMBER'))">
</doublebox>
</zk>
视图模型(FolderInfoEditViewModel.java):
if (info.getInfoType().equalsIgnoreCase("n")) {
if (StringUtils.isNotBlank(info.getFolderInforecord().getInfoValue()) &&
!info.getFolderInforecord().getInfoValue().equalsIgnoreCase("null")) {
info.setInfoNumericValue(Double.parseDouble(
info.getFolderInforecord()
.getInfoValue()));
}
}
有人能告诉我如何解决这个问题吗?
谢谢