ICEfaces
  1. ICEfaces
  2. ICE-8354

REGRESSION: "ui:repeat" attribute "value" always returns list of SelectItem objects and not

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.0.RC1
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mojorra 2.1.10, ICEfaces 3.1.0.RC1 vs. ICEfaces 3.0.1

      Description

      I have the following in an XHTML file

        <ui:repeat var="codeValue" value="#{crfItemInstance.selectableCodeValues}" rendered="#{!codeValue.subGroupExistent}"/>

      and the following underlying Java code within CRFItemInstance.java

        public List<CodeListItem> getSelectableCodeValues() {
          return this.selectableCodeValues;
        }

      and within CodeListItem.java also

        public boolean isSubGroupExistent() {
            return this.subGroupExistent;
        }

      Using the above in ICEfaces 3.0.1 with Mojorra 2.1.10 works fine but for ICEfaces 3.1.0.RC1 with Mojorra 2.1.10, I get the following exception

        javax.el.PropertyNotFoundException: /pages/print/crfPrintInstance.xhtml @49,151 rendered="#{!codeValue.subGroupExistent}": Property 'subGroupExistent' not found on type javax.faces.model.SelectItem

      So it seems that "#{crfItemInstance.selectableCodeValues}" returns a collection of SelectItem objects instead of a collection of CodeListItem objects.

        Activity

        Hide
        yip.ng added a comment - - edited

        Since there is no complete test app. provided, I modified QA test for calendar inside <ui:repeat> to be similar to above code snippets to test, but I couldn't reproduce problem. Everything worked fine. Snippets of modified code:
        <ui:repeat id="calRepeat1" value="#

        {calendarRepeatBean.calendars}

        " var="calendar" rendered="#

        {!calendar.subGroupExistent}

        ">
        public List<Calendar> getCalendars()

        { return calendars; }

        public class Calendar extends javax.faces.model.SelectItem {
        public boolean isSubGroupExistent()

        { return subGroupExistent; }
        Show
        yip.ng added a comment - - edited Since there is no complete test app. provided, I modified QA test for calendar inside <ui:repeat> to be similar to above code snippets to test, but I couldn't reproduce problem. Everything worked fine. Snippets of modified code: <ui:repeat id="calRepeat1" value="# {calendarRepeatBean.calendars} " var="calendar" rendered="# {!calendar.subGroupExistent} "> public List<Calendar> getCalendars() { return calendars; } public class Calendar extends javax.faces.model.SelectItem { public boolean isSubGroupExistent() { return subGroupExistent; }
        Hide
        Ken Fyten added a comment -

        Marking Cannot Reproduce. Please create a new JIRA (or Clone this one) with a test case if required.

        Show
        Ken Fyten added a comment - Marking Cannot Reproduce. Please create a new JIRA (or Clone this one) with a test case if required.

          People

          • Assignee:
            yip.ng
            Reporter:
            Holger Stenzhorn
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: