grails - ListItemRenderer 'data' parameter -


i using listitemrenderer(zk ui , grails) render list of books database table called "book". have different types of books in table. book types determined booktype attribute. issue having when do: book bookinstance = (book) data shows null point exception when there different types of books in table. in case when there books of single type, works fine.

is there way filter parameter 'data' of listitemrenderer books of type want? again, there attribute booktype in database table distinguishes different types of book.

thank you!!!

you can use query string 'where' clause specifying 'book_type'. way use can fetch desired result.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -