ev.ratio is Float ,when i convert using f:convertNumber ,allways error!!!.
<h:inputText value="#{ev.ratio}" id="evratio" maxlength="6"
styleClass="input1" size="6" rendered="#{ev.evalType.name!='实证材料'}"
required="true" requiredMessage="学分比例需要填写,没有启用则填0%"><f:convertNumber
pattern="0.##%"/></h:inputText>
javax.faces.FacesException: Exception while setting value for expression :
#{ev.ratio} of component with path : {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId:
/donuts/init/SubjectEdit.jsp][Class: javax.faces.component.html.HtmlForm,Id:
form1][Class: org.apache.myfaces.component.html.ext.HtmlDataTable,Id:
evals][Class: javax.faces.component.UIColumn,Id:
j_id_jsp_1971073722_53][Class: javax.faces.component.html.HtmlInputText,Id:
evratio]}
at
javax.faces.component.UIInput.queueExceptionInRequest(UIInput.java:322)
at javax.faces.component.UIInput.updateModel(UIInput.java:304)
at javax.faces.component.UIInput.processUpdates(UIInput.java:214)
at javax.faces.component.UIData.process(UIData.java:937)
at javax.faces.component.UIData.processColumnChildren(UIData.java:918)
at javax.faces.component.UIData.processUpdates(UIData.java:824)
at
org.apache.myfaces.component.html.ext.HtmlDataTableHack.processUpdates(HtmlDataTableHack.java:146)
at
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.processUpdates(AbstractHtmlDataTable.java:469)
at javax.faces.component.UIForm.processUpdates(UIForm.java:99)
--
View this message in context:
http://www.nabble.com/f%3AconvertNumber-can-not-use-with-myfaces-core-1.2.4%21%21%21-tp19692255p19692255.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.