Tomahawk org.apache.myfaces.component.html.ext.HtmlDataTable.findComponent bug 
(numeric format exception at line 143)
---------------------------------------------------------------------------------------------------------------------

         Key: TOMAHAWK-407
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-407
     Project: MyFaces Tomahawk
        Type: Bug

    Versions: 1.1.3-SNAPSHOT    
 Environment: any
    Reporter: Mikhail Grushinskiy


When using forceIdIndexFormula which generates id as astring I'm receiving the 
following exception.
It happens if I have <f:convertNumber/> on same form. It should allow to use 
non numeric indexes too in case of forceIdIndexFormula.
I had to use this formula to compensate for missing generated Ids in 
master/detail table to combine master and detail IDs into single index value.



java.lang.NumberFormatException: For input string: "895o2397"
       at
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:48)
       at java.lang.Integer.parseInt(Integer.java:456)
       at java.lang.Integer.valueOf(Integer.java:553)
       at
org.apache.myfaces.component.html.ext.HtmlDataTable.findComponent(HtmlDa
taTable.java:143)
       at
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java
:426)
       at
org.apache.myfaces.component.html.ext.HtmlDataTable.findComponent(HtmlDa
taTable.java:152)
       at
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java
:426)
       at
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java
:426)
       at
javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java
:426)
       at
org.apache.myfaces.renderkit.html.ext.HtmlMessageRenderer.findInputLabel
(HtmlMessageRenderer.java:158)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to