[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-28) ObjectConverter and EntityConverter
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Thu Sep 8 01:03:26 EDT 2011
[ https://issues.jboss.org/browse/SEAMFACES-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627031#comment-12627031 ]
Brian Leathem commented on SEAMFACES-28:
----------------------------------------
>From IRC:
(09:51:34 PM) stuartdouglas: really EntityConverter can be replaced with a generic conversation scoped convertre
(09:52:13 PM) stuartdouglas: basically you have a conversation scoped components with a map<String, Object>
(09:52:29 PM) stuartdouglas: when you convert to a String you generate a arbitrary string id and store it
(09:52:39 PM) stuartdouglas: to convert back you just do a map lookup
(09:52:52 PM) stuartdouglas: so you can convert anything as long as you have a conversation active
(09:57:40 PM) bleathem: one could use the view scope, no?
(09:57:48 PM) bleathem: you always post back to the same page
(09:57:49 PM) stuartdouglas: yes, any long lived scope would work
> 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.Tracking
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list