[Lift] Re: MINOR BREAKING CHANGE IN mapper.view.ModelView

2009-09-16 Thread glenn

Naftoli,

Since I don't seem to have the latest source to follow, how exactly
does this work now?.

If I currently have:this as my ModelView

class UserView(entity:User, snippet:ManageUsers) extends ModelView
[User](entity, snippet)

and

val view: ModelView[User] =  new UserView(new User,this)

in my ModelSnippet, leaving off the User type parameter doesn't
compile and neither does removing the this parameter or the snippet
parameter in the UserView type definition.

Glenn

On Sep 14, 3:10 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
 If you useModelViewin a ModelSnippet, read the following:
 I added an inner class to mapper.view.ModelSnippet calledModelView, which 
 extends mapper.view.ModelViewbut allows you to leave out the snippet 
 parameter.
 However if you were using these new classes you may have to make a small 
 change. If you useModelViewinside ModelSnippet, just leave out this from 
 the constructor.
 You may also be able to change ModelView to view.ModelView.
 The Wiki article may not yet reflect this.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Lift] Re: MINOR BREAKING CHANGE IN mapper.view.ModelView

2009-09-16 Thread Naftoli Gugenheim

Do you override anything in UserView? If not you can just write
val view = new ModelView(new User)
etc.
Otherwise
class UserView(user: User) extends ModelView(user)
should work.
What happened is that in addition to maper.view.ModelView, the latter is 
subclassed inside ModelSnippet so you can leave out the snippet parameter. You 
can still use the old ModelView outside of a snippet (for whatever reason) as 
usual, or inside a snippet as view.ModelView etc.


-
glenngl...@exmbly.com wrote:


Naftoli,

Since I don't seem to have the latest source to follow, how exactly
does this work now?.

If I currently have:this as my ModelView

class UserView(entity:User, snippet:ManageUsers) extends ModelView
[User](entity, snippet)

and

val view: ModelView[User] =  new UserView(new User,this)

in my ModelSnippet, leaving off the User type parameter doesn't
compile and neither does removing the this parameter or the snippet
parameter in the UserView type definition.

Glenn

On Sep 14, 3:10?pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
 If you useModelViewin a ModelSnippet, read the following:
 I added an inner class to mapper.view.ModelSnippet calledModelView, which 
 extends mapper.view.ModelViewbut allows you to leave out the snippet 
 parameter.
 However if you were using these new classes you may have to make a small 
 change. If you useModelViewinside ModelSnippet, just leave out this from 
 the constructor.
 You may also be able to change ModelView to view.ModelView.
 The Wiki article may not yet reflect this.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---