[
https://jira.jboss.org/jira/browse/JBSEAM-4497?page=com.atlassian.jira.pl...
]
Nicklas Karlsson commented on JBSEAM-4497:
------------------------------------------
Hmm, not a bad idea. You would just need a PojoStore component (essentially a Object ->
Object) Map and the converter in both directions. You would probably have to populate the
store with then POJOs involved yourself, though(?)
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