ICEfaces
  1. ICEfaces
  2. ICE-6120

Add support for f:selectItems String to be cast to SelectItem

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use a String[] instead of List<String>

      Description

      We have created a JSF2 application for training. After adding ICEfaces to the application the select items menu is not allowing a List<String> and complains about casting String to SelectItem.

      Probably something in our compat components that could be easily adjusted.

      The workaround is to bind the selectItems tag to a String[] instead of List<String>

        Activity

        Brad Kroeger created issue -
        Brad Kroeger made changes -
        Field Original Value New Value
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Brad Kroeger made changes -
        Summary SelectItems NPE f:selectItems String cannot be cast to SelectItem
        Salesforce Case []
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.0.0 [ 10230 ]
        Assignee Deryk Sinotte [ deryk.sinotte ] Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Salesforce Case []
        Component/s Components [ 10012 ]
        Component/s Framework [ 10013 ]
        Affects [Compatibility/Configuration]
        Ken Fyten made changes -
        Summary f:selectItems String cannot be cast to SelectItem Add support for f:selectItems String to be cast to SelectItem
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Salesforce Case []
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Compatibility/Configuration] [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration]
        Assignee Mark Collette [ mark.collette ] Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Assignee Priority P1
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: