How can I use persistence to get results from query as a recordset, I can use directly in a dataTable-Element? asked 13.01.2014 at 11:53 Richard Schmid Reto Weiss ♦♦ |
Instead of using a Recordset in the dataTable element in the html user dialog you can use the list returned from persistence directly:
It is important that you declare the attribute
so that jsf knows the class of the list entries. You can then access the fields of the Basis class directly in the dataTable. E.g. the field xyz with with answered 14.01.2014 at 09:05 Reto Weiss ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 13.01.2014 at 11:53
Seen: 2,606 times
Last updated: 14.01.2014 at 09:08
Hello Mr. Schmid can you edit the title of the question so that it is more clear what topic this question is about. What is a dataTable-Element? Thanks
Hello Mr. Weiss,
If I use List basiswerte = ivy.persistence.bestandDatenPersistence.createNativeQuery("select * from basis").getResultList(); I get a list of entity class elements.
What I am looking for is a result as if I would have used a Database Step
Hello Mr. Schmid
I think the use case you want to implement is to display values of Basis objects in a HTML dialog. I answered to this question and not how to convert a list into a recordset.