Announcement Announcement Module
Collapse
No announcement yet.
Converter as Spring Managed Bean ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Converter as Spring Managed Bean ?

    Hi all,

    I am asking myself if it is a good practice or not to use a Converter as a Spring Managed Bean in order to use DAO resources.

    In converter I will read a "long" value from response, which is an ID actually, and load the entity and return it.

    So my owner will be set automatically at the end.

    How would you do?

    Code:
    <h:selectOneMenu id="owner"
    value="#createProject.project.owner}">
    <t:selectItems var="user"
    value="#{listUser.users}"
    itemLabel="#{user.lastName}, #{user.name}" itemValue="#{user.id}" />						
    </h:selectOneMenu>
Working...
X