Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-407

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.3-SNAPSHOT
    • None
    • ForceId
    • None
    • any

    Description

      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)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mgrouch Mikhail Grushinskiy

            Dates

              Created:
              Updated:

              Slack

                Issue deployment