1 Reply Latest reply on Mar 5, 2009 2:55 PM by pregnirit

    What converter to use in page.xml with selectManyListbox?

    pregnirit

      I have a selectManyListbox on my xxxList page that gets its values from a Factory method. I use s:convertEntity and the filter works perfectly, records are retrieved from the DB according to the selection in the selectManyListbox.


      However, I lose the selection on any orderBy related clicks on the list as I don't have a param defined in the page.xml for the selected values. I tried defining a converter for the param in the xxx.page.xml (just like for dates I use org.jboss.seam.ui.DateTimeConverter). First I tried org.jboss.seam.ui.EntityConverter (as this is what s:convertEntity uses), no luck. Then I tried org.jboss.seam.util.Conversions.ListConverter, nothing again.


      My question: Is there a Converter in Seam that can be used for this case or I need to create my own converter? Should I file a JIRA to request a generic Converter in Seam? (modify EntityConverter to handle Lists?)


      Waiting for your inputs! Pete?