RichFaces
  1. RichFaces
  2. RF-1158

IllegalArgumentException on page with tabPanel

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Since upgrading to 3.1.2, and also using the latest 3.1.3 snapshot, I get an IllegalArgumentException when displaying a page with tabs. The tab panel is:

      <rich:tabPanel id="questionTabPanel">
      <rich:tab id="collectionTab" label="#

      {msgs.qbankQuestionCollectionsFieldLabel}

      ">
      <ui:include src="questioncollectionedit.xhtml" />
      </rich:tab>
      <rich:tab id="myQuestionsTab" label="#

      {msgs.qbankQuestionsFieldLabel}

      ">
      <ui:include src="questionedit.xhtml" />
      </rich:tab>
      </rich:tabPanel>

      And the stack trace is:

      javax.faces.FacesException: Exception while calling encodeBegin on :

      {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /index.xhtml][Class: org.richfaces.component.html.HtmlTabPanel,Id: questionTabPanel]}

      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:677)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
      ...

      Caused by: java.lang.IllegalArgumentException: Unnamed parameter not allowed for AJAX components, parameter for collectionTab
      at org.richfaces.renderkit.TabHeaderRendererBase.encodeParams(TabHeaderRendererBase.java:76)
      at org.richfaces.renderkit.TabHeaderRendererBase.encodeTabLabel(TabHeaderRendererBase.java:135)
      at org.richfaces.renderkit.html.TabHeaderRenderer.doEncodeEnd(TabHeaderRenderer.java:100)
      at org.richfaces.renderkit.html.TabHeaderRenderer.doEncodeEnd(TabHeaderRenderer.java:168)
      at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
      at org.richfaces.renderkit.TabRendererBase.encodeTab(TabRendererBase.java:74)
      at org.richfaces.component.UITab.encodeTab(UITab.java:66)
      at org.richfaces.renderkit.TabPanelRendererBase.encodeTabs(TabPanelRendererBase.java:332)
      at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeBegin(TabPanelRenderer.java:227)
      at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeBegin(TabPanelRenderer.java:180)
      at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:101)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:674)
      ... 34 more

      Removing the include in the collectionTab simply changes the error to myQuestionsTab.

      The page displays without problems using 3.1.1.

        Activity

        Hide
        Anton Belevich
        added a comment -

        fixed in trunk

        Show
        Anton Belevich
        added a comment - fixed in trunk
        Hide
        Ilya Shaikovsky
        added a comment -

        commit for 3.1.x
        add proper resolution version 3.1.3

        Show
        Ilya Shaikovsky
        added a comment - commit for 3.1.x add proper resolution version 3.1.3
        Hide
        Tsikhon Kuprevich
        added a comment -

        verified, fixed

        Show
        Tsikhon Kuprevich
        added a comment - verified, fixed

          People

          • Assignee:
            Alexander Francuzov
            Reporter:
            Peter Mahoney
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: