[
https://issues.jboss.org/browse/SEAMFACES-28?page=com.atlassian.jira.plug...
]
hantsy bai commented on SEAMFACES-28:
-------------------------------------
I noticed a ObjectConverter was added into the Seam faces repository. But the apidoc said
it can only be applied in a long run Conversation scoped, how to process when I use
request, view, transient conversation scope.
why not put the converted objects in the viewMap of the view root? They can be created
when view root was created and be destroyed when the view root was destroyed.
ObjectConverter and EntityConverter
-----------------------------------
Key: SEAMFACES-28
URL:
https://issues.jboss.org/browse/SEAMFACES-28
Project: Seam Faces
Issue Type: Feature Request
Components: Transactions & Persistence, Validation & Conversion
Reporter: Pete Muir
Assignee: Jason Porter
Priority: Critical
Fix For: 3.1.0.Beta5
Given
class Foo {
Bar bar;
// Getters and setters
List<Bar> bars;
// Getters and setters
}
<h:selectOneMenu value="#{foo.bar}" >
<f:selectItems value="#{foo.bars}" var="bar"
itemLabel="#{bar.label}" itemValue="#{bar}" />
<s:convertEntity /> || <s:convertObject />
</h:selectOneMenu>
I want to be able to have my setter/getter reference an object and not write the
boilerplate for converting to/from a string.
I also want to reference a managed entity, and have that managed entity set back into the
setter so I can see the changes updated in the database with no boilerplate, and avoid
LIEs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira