ICEfaces
  1. ICEfaces
  2. ICE-4965

Design time renderer of selectOneMenu with f:selectItems throws NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: Tool Integrations
    • Labels:
      None
    • Environment:
      Eclipse Galileo,

      Description

      <ice:selectOneMenu value="#{whatever}">
       <f:selectItems value="#{somevalue}"></f:selectItems>
       </ice:selectOneMenu>

      Wep page editor displays perfectly. but reopening the page causes the following error.

      If i use <ice:selectOneMenu> whitout <f:selectItems> it works

      java.lang.NullPointerException
        at org.eclipse.wst.xml.core.internal.document.AttrImpl.setValueSource(AttrImpl.java:761)
        at org.eclipse.wst.xml.core.internal.document.AttrImpl.setValue(AttrImpl.java:744)
        at org.eclipse.wst.xml.core.internal.document.ElementImpl.setAttribute(ElementImpl.java:1210)
        at com.icesoft.ide.eclipse.designtime.converter.SelectBasedTagConverter.doConvertRefresh(SelectBasedTagConverter.java:68)
        at org.eclipse.jst.pagedesigner.converter.AbstractTagConverter.convertRefresh(AbstractTagConverter.java:85)
        at org.eclipse.jst.pagedesigner.parts.ElementEditPart.setModel(ElementEditPart.java:85)

        Activity

        Hide
        Liming Wu added a comment -

        Fixed with temporary solution as we will migrate to TransformOperation starting from next release.

        Show
        Liming Wu added a comment - Fixed with temporary solution as we will migrate to TransformOperation starting from next release.

          People

          • Assignee:
            Liming Wu
            Reporter:
            Liming Wu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: