Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1715

ScrollableTable: Problem with rowKeyVar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.1.x, 3.2.1
    • Component/s: None
    • Labels:
      None

      Description

      this works fine
      <rich:scrollableDataTable value="#

      {capitalsBean.capitals}" var="cap" width="200px" height="250px" rowKeyVar="rkey">
      <rich:column>
      <h:outputText value="#{rkey}"/>
      </rich:column>
      ...

      and if I define like
      <rich:scrollableDataTable value="#{capitalsBean.capitals}

      " var="cap" width="200px" height="250px" rowKeyVar="rkey">
      <rich:column>
      <h:outputText value="#

      {rkey+1}

      "/>
      </rich:column>
      ...
      Exception thrown:
      SEVERE: Error Rendering View[/pages/scrollableTable.xhtml]
      java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key el.convert
      at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
      at java.util.ResourceBundle.getString(ResourceBundle.java:285)
      at org.apache.el.util.MessageFactory.getArray(MessageFactory.java:67)
      at org.apache.el.util.MessageFactory.get(MessageFactory.java:47)
      at org.apache.el.lang.ELArithmetic.coerce(ELArithmetic.java:367)
      at org.apache.el.lang.ELArithmetic.add(ELArithmetic.java:237)
      at org.apache.el.parser.AstPlus.getValue(AstPlus.java:24)
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
      at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
      at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
      at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer$6.renderContent(ScrollableDataTableBaseRenderer.java:247)
      at org.richfaces.renderkit.html.ExtendedColumnVisitor.visit(ExtendedColumnVisitor.java:31)
      at org.richfaces.renderkit.html.ColumnWalker.iterateOverColumns(ColumnWalker.java:42)
      at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer$7.process(ScrollableDataTableBaseRenderer.java:289)
      at org.richfaces.model.ScrollableTableDataModel.walk(ScrollableTableDataModel.java:129)
      at org.richfaces.model.DataModelCache.walk(DataModelCache.java:183)
      at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:994)
      at org.richfaces.component.UIScrollableDataTable.walk(UIScrollableDataTable.java:329)
      at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.renderGridBody(ScrollableDataTableBaseRenderer.java:459)
      at org.richfaces.renderkit.html.ScrollableDataTableRenderer.doEncodeEnd(ScrollableDataTableRenderer.java:392)
      at org.richfaces.renderkit.html.ScrollableDataTableRenderer.doEncodeEnd(ScrollableDataTableRenderer.java:551)
      at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
      at org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.encodeEnd(ScrollableDataTableBaseRenderer.java:746)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
      at org.richfaces.component.UIScrollableDataTable.encodeEnd(UIScrollableDataTable.java:335)
      at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
      at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
      at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                ilya_shaikovsky Ilya Shaikovsky
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: