[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4497) s:convertPojo key="<fieldName>" component

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Tue Dec 8 05:49:29 EST 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-4497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12498756#action_12498756 ] 

Nicklas Karlsson commented on JBSEAM-4497:
------------------------------------------

I guess it could work in session scope also but you'd probably have to be careful with cleanups. And perhaps add a "context" attribute so that the storage would be Map<String, Map<String, Object>>...

> s:convertPojo key="<fieldName>" component
> -----------------------------------------
>
>                 Key: JBSEAM-4497
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4497
>             Project: Seam
>          Issue Type: Feature Request
>          Components: JSF Controls
>    Affects Versions: 2.2.0.GA
>            Reporter: deanhiller
>            Priority: Minor
>
> It would be awesome if we could have an <s:convertPojo key="<unique field>"> component with a key attribute that identifies a unique key in the pojo to do translation with.  ie. s:convertEntity uses the primary key of the entity but convertPojo could be used for entities that are not in the database yet if for instance the name was a unique.  Also, it could just be used for pojos from a webservice or something for that matter.  It could even throw a NonUniqueException if in the list of pojo's it finds two with the same exact key so people use it correctly and an exceptions is thrown when not used correctly so we know.  Anyways, just thought this would be a nice feature add to an already pretty damn sweet toolbox called seam.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list