First of all, instead of embedding the provided template put the markup 
straight in the view. See the wiki article for the markup of the default 
template as a starting point, and the scaladocs of 
mapper.view.snippet.TableEditor for the specs of the markup.
In general you can specify the list of fields using a fields attribute on the 
header:fields element. However, MappedManyToMany is not a field. So you can 
simply insert the extra xml into the correct place (after/before header:fields 
and item:fields). To bind
the new xml, either nest your own snippet inside the TableEditor snippet or the 
opposite, nest it inside yours. Then just bind your xml and let TableEditor 
binds its xml.

-------------------------------------
glenn<[email protected]> wrote:


Naftoli,

I tried using TableEditor with a MetaMapper instance of a ManyToMany
class, but <header:fields> and
<item:fields> tags in the template didn't pick up the MappedManyToMany
object in the class.

Is there some method that I need to override,or is there some way to
write the template that will
resolve this?

Glenn...

On Aug 12, 2:48 pm, Naftoli Gugenheim <[email protected]> wrote:
> I just wrote a brief wiki article on GitHub about using TableEditor, but not
> being familiar with the formatting syntax, the code snippets are truncated.
> Can anyone take a look at it and fix it? Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to