[
http://jira.jboss.com/jira/browse/JBSEAM-2856?page=all ]
Pete Muir closed JBSEAM-2856.
-----------------------------
Resolution: Cannot Reproduce Bug
Assignee: Pete Muir
I tried to reproduce this in the ui example in both the branch and trunk and can't.
I modified the ui example to use itemValue.
s:selectItems with itemValue not submitting itemValue's data
------------------------------------------------------------
Key: JBSEAM-2856
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2856
Project: JBoss Seam
Issue Type: Bug
Components: JSF Controls
Affects Versions: 2.0.1.GA
Environment: JDK 1.6.0_03, JBoss Server 4.2.1
Reporter: Branimir Minkov
Assigned To: Pete Muir
Fix For: 2.0.2.CR2, 2.1.0.BETA1
I am trying to set a String value on a backing bean. Here is the Facelet part:
<h:selectOneMenu value="#{someEntity.someString}">
<s:selectItems value="#{someEjbQl.resultList}" var="obj"
label="#{obj.name}" itemValue="#{obj.code}"
noSelectionLabel="Please select..." />
<!-- <s:convertEntity /> -->
</h:selectOneMenu>
The issue is that I want to have a String submitted and set by Seam, in
{someEntity.someString}. I think that the usage of itemValue controls of what gets
submitted to the server. What happens is that in practice is different.
itemValue="#{obj.code}" is a String for sure.
Cleared browser and JBoss 4.2.1's cache. Here is the HTML output without using the
<s:convertEntity />:
<select name="editRelationForm:j_id143" size="1">
<option
value="org.jboss.seam.ui.NoSelectionConverter.noSelectionValue">Please
select...</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@100a7">ARC</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@10115">AUT</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@10266">BAP</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@1077b">CLO</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@12ff5">NEW</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@136fd">PAY</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@138f8">PRE</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@138fd">PRJ</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@1397b">PVL</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@139da">PYN</option>
<option
value="com.phpstruts.domain.IstsRfIstsRf@13eec">REJ</option>
</select>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira