[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-28) ObjectConverter and EntityConverter

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Mon Aug 23 17:23:11 EDT 2010

    [ https://jira.jboss.org/browse/SEAMFACES-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12546491#action_12546491 ] 

Nicklas Karlsson commented on SEAMFACES-28:

I have some code for this (pretty similar EntityStore arch that Seam 2 had). Works on a conceptual level but currently waiting on the persistence module for polishing.

> ObjectConverter and EntityConverter
> -----------------------------------
>                 Key: SEAMFACES-28
>                 URL: https://jira.jboss.org/browse/SEAMFACES-28
>             Project: Seam Faces
>          Issue Type: Feature Request
>          Components: Transactions & Persistence, Validation & Conversion
>            Reporter: Pete Muir
>            Priority: Critical
> 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 contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list