Am 14.11.13 14:22, schrieb Andreas Ernst:
Am 14.11.13 12:06, schrieb Thiago H de Paula Figueiredo:
On Thu, 14 Nov 2013 08:40:21 -0200, Andreas Ernst <a...@ae-online.de>
wrote:
Hi,
Hi!
i got a strange issue with the table grid. Sometimes i get the
message: 'There is no data to display.'
This will happen if the source parameter provides zero objects to be
shown.
I know, but only the grid source is null. The database has datas.
To make it more clear:
@Log
void setupRender() {
List<Tachyon> produkte =
entityManager.createNamedQuery("Tachyon.findAllByStatusTrue").getResultList();
System.out.println("Count Products: " + produkte.size());
}
######################
Information: [DEBUG] pages.Tachyonprodukte [ENTER] setupRender()
Information: [EL Finer]: connection: 2013-11-14
14:56:52.084--ServerSession(2097590289)--Thread(Thread[http-listener-1(2),5,main])--client
acquired: 41491008
Information: [EL Finer]: transaction: 2013-11-14
14:56:52.084--ClientSession(41491008)--Thread(Thread[http-listener-1(2),5,main])--acquire
unit of work: 1554669828
Information: [EL Finest]: query: 2013-11-14
14:56:52.084--UnitOfWork(1554669828)--Thread(Thread[http-listener-1(2),5,main])--Execute
query ReadAllQuery(name="Tachyon.findAllByStatusTrue"
referenceClass=Tachyon sql="SELECT ARTNR, ARTIKEL, ATT_ARTIKEL,
ATT_VARIANTE, BESTAND, ID, ID_GRUPPE, SHOP, STATUS, URL FROM TACHYON
WHERE (STATUS = 1)")
Information: [EL Finest]: connection: 2013-11-14
14:56:52.084--ServerSession(2097590289)--Connection(473512611)--Thread(Thread[http-listener-1(2),5,main])--Connection
acquired from connection pool [default].
Information: [EL Fine]: sql: 2013-11-14
14:56:52.084--ServerSession(2097590289)--Connection(473512611)--Thread(Thread[http-listener-1(2),5,main])--SELECT
ARTNR, ARTIKEL, ATT_ARTIKEL, ATT_VARIANTE, BESTAND, ID, ID_GRUPPE, SHOP,
STATUS, URL FROM TACHYON WHERE (STATUS = 1)
Information: [EL Finest]: connection: 2013-11-14
14:56:52.106--ServerSession(2097590289)--Connection(473512611)--Thread(Thread[http-listener-1(2),5,main])--Connection
released to connection pool [default].
Information: Count Products: 406
Information: [DEBUG] pages.Tachyonprodukte [ EXIT] setupRender
######################
As you can see, the table has 'Count Products: 406' rows, but there is
no call of getTachyonenprodukte.
That is the issue, sometimes the method is called sometimes not.
--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-6484-91003
a...@ae-online.de | www.ae-online.de
www.tachyon-online.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org