Hello there,

I have a datatable is populated with a collection of items, and I want to
query each item that is returned to determine whether or not the currently
user has the rights to view/edit the item, thus returning the relevant
icon/link. 

The Item bean is unaware of which user is logged in and ideally i would put
this functionality in the backing bean, possibly using a parameterised query
(which I understand is not possible using EL). Although I could kludge this
as a workaround and make the Item bean aware of the user, this really breaks
the MVC setup of the application. 

I have used ASP.NET previously which has various events associated with the
datagrid such as 'ItemDataBound' which would allow me to alter the layout of
the row on the fly. I have done some searching and don't think that an
equivalent function is available on the dataTable. 

I'd be very grateful of any advice that would allow me to achieve this in
JSF.

Thanks in anticipation, Carl
-- 
View this message in context: 
http://www.nabble.com/Querying-data-on-row-creation-in-a-dataTable-tf2692094.html#a7507061
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to