ICEfaces
  1. ICEfaces
  2. ICE-1550

Seam: h:selectOneMenu current value not initialized using s:selectItems

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#2, 1.6DR#4
    • Fix Version/s: 1.6.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBoss Seam 1.2.1, also 1.2.0 Patch 1
      JBoss 4.0.5GA (JEMS with ejb option)
      Apache myfaces 1.4

      Description

      Using Seam with ICEfaces, a standard Seam feature does not work any more.
      By using the following code, a drop down is displayed and filled with a list.
      If ICEfaces is activated, the current selection supported by #{subcategoryEditor.instance.category} is not set as selected, the first value of the category list is selected instead:

                              <h:selectOneMenu id="#{data_messages['category']}" value="#{subcategoryEditor.instance.category}" required="true"
      converter="#{categoryFinder.categoryConverter}">
      <s:selectItems value="#{categories.resultList}" var="category" label="#{category.description}" noSelectionLabel="Please Select..." hideNoSelectionLabel="true" />
                              </h:selectOneMenu>

      Viewing HTML, the "selected" attribute of <item selected="selected" ...> is missing.
      When I disable ICEfaces, the above code is working and setting my current category.

      I tried ICEfaces 1.6DR#2 + Seam 1.2.0 Patch 1 and then updated to 1.6DR#4 + Seam 1.2.1 without success.

        Issue Links

          Activity

          Hide
          Judy Guglielmin added a comment -

          Are you using standard Request Scope? If not, you should ensure this is in your web.xml file. I have used ice:selectOneMenu, but not with the s:selectItems tag so will try it out.

          <context-param>
          <param-name>com.icesoft.faces.standardRequestScope</param-name>
          <param-value>true</param-value>
          </context-param>

          Show
          Judy Guglielmin added a comment - Are you using standard Request Scope? If not, you should ensure this is in your web.xml file. I have used ice:selectOneMenu, but not with the s:selectItems tag so will try it out. <context-param> <param-name>com.icesoft.faces.standardRequestScope</param-name> <param-value>true</param-value> </context-param>
          Hide
          Judy Guglielmin added a comment -

          I tried several variations of this(DR4 & Seam1.2.1) as well and always the value of the list is null. Am trying to track down in the component rendering where we are losing (or not getting this value). Of course, the <SelectItem> list could be created by a backing bean and then used in the selectOneMenu for now, but will let you know where we get to with reviewing this <s:selectItems

          Has anyone else here been looking at this as well? Recently we have been concentrating on getting our ice tags working as they would normally. Thanks for drawing this valuable s tag to our attention.

          Show
          Judy Guglielmin added a comment - I tried several variations of this(DR4 & Seam1.2.1) as well and always the value of the list is null. Am trying to track down in the component rendering where we are losing (or not getting this value). Of course, the <SelectItem> list could be created by a backing bean and then used in the selectOneMenu for now, but will let you know where we get to with reviewing this <s:selectItems Has anyone else here been looking at this as well? Recently we have been concentrating on getting our ice tags working as they would normally. Thanks for drawing this valuable s tag to our attention.
          Hide
          Judy Guglielmin added a comment -

          resolved by ICE-1665 for ICEfaces-1.6.1 release

          Show
          Judy Guglielmin added a comment - resolved by ICE-1665 for ICEfaces-1.6.1 release

            People

            • Assignee:
              Unassigned
              Reporter:
              Michael Veit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: