]
Pete Muir closed JBSEAM-3059.
-----------------------------
Resolution: Rejected
Please see the example apps for how to use s:selectItems and use the forums for support,
not JIRA.
<s:selectItems> doesn't retain selected value
---------------------------------------------
Key: JBSEAM-3059
URL:
http://jira.jboss.com/jira/browse/JBSEAM-3059
Project: Seam
Issue Type: Bug
Components: JSF Controls
Affects Versions: 2.0.1.GA, 2.0.2.GA, 2.0.2.SP1
Environment: Windows XP SP2, JBoss 4,2,1
Reporter: Priya M
Priority: Minor
Currently there is no way to select a particular item by default using
<s:selectItems>.
Example used in facelet
<h:selectOneMenu id="fof" value="#{selectedFoo}">
<s:selectItems value="#{foosQuery.resultList}" var="foo"
label="#{foo.name}"/>
<s:convertEntity/>
</h:selectOneMenu>
It's assumed that the html attribute
"selected" in <option="foo" selected> would be automatically
identified by <s:selectItems> depending on the bound value in
<h:selectOneMenu id="fof" value="#{selectedFoo}"> but that
doesn't work.
selectedFoo, however is printing the correct value but the selection doesn't retain.
If there is way to do this, either the reference doc should be updated on how to do
this.
(HTML reference or for instance, Spring MVC's similar implementation documents it
clearly and it works perfectly.
http://static.springframework.org/spring/docs/2.0.x/reference/spring-form...)
Otherwise, this is possibly a bug.
Other info:-
The property Foo has been overridden with hashcode() and equals().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: