Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
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.
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>