List Info

Thread: Commented: (JBSEAM-1768) enhancement to allow for no




Commented: (JBSEAM-1768) <s:selectItems> enhancement to allow for no
country flaguser name
United States
2007-11-06 06:32:44
    [ http://jira.jboss.com/jira/browse/JBS
EAM-1768?page=comments#action_12386156 ] 
            
Pete Muir commented on JBSEAM-1768:
-----------------------------------

Override and extend the
org.jboss.seam.ui.entityIdentiferStore component
implementing the get and put methods. You can then use e.g.
a HashMap, and using the identifier and entity arguements to
put, store it under whatever key you like

> <s:selectItems> enhancement to allow for non-ID
field when used with <s:convertEntity/>
>
------------------------------------------------------------
---------------------------
>
>                 Key: JBSEAM-1768
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-1768
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Nicklas Karlsson
>         Assigned To: Pete Muir
>            Priority: Optional
>             Fix For: 2.0.1.GA
>
>
> When using an entity like 
> Entity
> public class Person {
>   Id
>   private Integer id;
>   private String firstName;
>   private String lastName;
>   private String personnelCode;
>   ...
> }
> It would be handy if it could be possible to use
> <h:selectOneMenu
value="#{project.managerCode}">
>   <s:selectItems
value="#{bean.managerList}"
var="manager" label="#{manager.lastName},
#{manager.firstName}" 
>    
insertValue="#{manage.personnelCode}"/>
>   <s:convertEntity />
> </h:selectOneMenu>
> e.g. being able to choose which field (in this case the
manager personnel code) would be selected (instead of the
entity ID)

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

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )