0 Replies Latest reply on Nov 26, 2010 4:09 PM by Barış V

    How to get id from a list on selectOneMenu

    Barış V Newbie

      I have category entity that has an id, name and maincat(means that it can have a main category).

      For example;

      I am trying to add a category that will be a sub category of the book (i=1)

      I am putting all categories in a selectOneMenu. I wanna show category names but return ids because the main cat which I choose is an integer. How can I do that ?

      Thanks in advance.