I had a similar requirement, so I factored out ItemsListEditor. Subclass it and override its items with an ItemsList subclass. You can also override title, onInsert/Remove/Submit, sortFn, and fieldFilter. Actually you have to "override" items and title because they're abstract. Then use the ItemsListEditor instance's edit method as the snippet function. If you have any other questions please ask!
------------------------------------- Dave<davidtgoldb...@gmail.com> wrote: After checking the table editor example, I was keen to try it out, and it works GREAT. So thanks for all of your hard work. Here is my problem though. I want to filter the table so that only entries linked to a certain user are displayed. So for instance say I have class foo: class Foo extends LongKeyedMapper[Foo] with IdPK { ... object owner extends MappedLongForeignKey(this, Owner) } I want the table to only display the Foo if (Foo.owner == CurrentUser.id). I figure I can override the reload (to something like current = metaMapper.findAll(By....) and save methods (to include the currentUserId) in the ItemList implementation, but then I'm having trouble conceptually figuring out how to inject my new extended type back into the TableEditor code, or if this is possible at all. Any help would be much appreciated. Thanks in advance. Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---