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
Post a Comment