0 Replies Latest reply on Nov 26, 2010 4:09 PM by bv.iletisim.barisvelioglu.net

    How to get id from a list on selectOneMenu

    bv.iletisim.barisvelioglu.net
      Hi,

      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.