[Lift] Automatic compiilation fails with lift-archetype-basic 2.0-M1 in Eclipse

2010-02-02 Thread glenn
y, so they are not the problem. Glenn -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more

[Lift] Re: Error saving Mapper object

2009-12-14 Thread glenn
Stupid me!! I mistakenly put the CRUDify trait on the class, not the object. Thanks a bunch for getting me out of this mess. Glenn On Dec 14, 10:13 am, David Pollak wrote: > On Mon, Dec 14, 2009 at 9:11 AM, glenn wrote: > > I started a new 1.1-Snapshot and am now getting the follow

[Lift] 1.1-M7 basic archetype errors

2009-12-14 Thread glenn
The 1.1-M7 basic archetype in http://scala-tools.org/repo-snapshots doesn't have a dependency on lift-json and so compilation fails. Adding this dependency in the pom solves this. Also, shouldn't the pom use the SNAPSHOT repo rather than, or at least in addition to, releases? Glen

[Lift] Error saving Mapper object

2009-12-14 Thread glenn
def getSingleton = test object name extends MappedString(this, 100){ override def displayName = "test name" } } Thanks in advance for any help to resolve this. Glenn -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to

[Lift] Re: Mapper <-> JObject bridge

2009-12-07 Thread glenn
David, I couldn't find encodeAsJSON_! on MetaMapper in the Lift source on github. Where is this code checked in? Glenn On Dec 2, 1:15 pm, David Pollak wrote: > Folks (HarryH -- this means you), > > I've just checked in code on the dpp_issue_213 that does Mapper <-> JOb

[Lift] Re: XSLT?

2009-12-04 Thread glenn
Jim, I've used a lot of XSLT in the past but have recently taken to Scala's use of XML literals and extraction methods coupled with case matching in place of XSL templates - no need to call into Xerces, Xalan or any other third-party libraries to do this. Glenn On Dec 4, 9:19 am

[Lift] Re: A sensible AJAX approach

2009-11-30 Thread glenn
efull enough to include something similar in a future release of Lift. Glenn . On Nov 24, 5:53 pm, David Pollak wrote: > Glenn, > > The issue is that you were creating call-back functions during an API call > (rather than as part of Lift's HTML/Ajax/Comet pipeline). > > In g

[Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread glenn
ion. Not a very satisfactory solution, but in a pinch... Glenn On Nov 24, 2:46 pm, Ross Mellgren wrote: > I considered this but my problem was that you could not place them   > into the middle of a static flow, without rummaging around in the   > CompleteMenu looking for known MenuItems

[Lift] Re: A sensible AJAX approach

2009-11-24 Thread glenn
st as it does for creating. In any case, I'm still at a loss on how to fix this. Glenn On Nov 20, 5:40 pm, glenn wrote: > David, > > I was able to put together a simplified application to demo the > problem. > It's just a basic lift archetype with a Role.scala adde

[Lift] Re: A sensible AJAX approach

2009-11-20 Thread glenn
as-is, you can add new roles to the db but you can't edit them. Glenn On Nov 20, 10:28 am, David Pollak wrote: > On Fri, Nov 20, 2009 at 10:14 AM, glenn wrote: > > David, > > > That's what I thought. All I needed to do was create the Mapper.toForm > > like so: &

[Lift] Re: A sensible AJAX approach

2009-11-20 Thread glenn
David, That's what I thought. All I needed to do was create the Mapper.toForm like so: item.toForm(Full("Save"), { _.save }) and the item would be saved on submit. But it doesn't work in my case. Glenn On Nov 20, 10:05 am, David Pollak wrote: > Glenn, > > A

[Lift] Re: A sensible AJAX approach

2009-11-20 Thread glenn
I've tried is to add a hidden form field to the Mapper.toForm html, SHtml.hidden(() => itemIdVar(id.toString)), where itemIdVar extends RequestVar[String]. But I couldn't make that work either. The hidden form field is suppose to run the ()=Any function, and it may do that, but n

[Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
ource jar isn't complete, or isn't in the maven repository, I'm out of luck. Glenn On Nov 18, 1:19 pm, Jeppe Nejsum Madsen wrote: > Kris Nuttycombe writes: > > On Wed, Nov 18, 2009 at 1:51 PM, Jeppe Nejsum Madsen > > wrote: > >> Kris Nuttycombe writes: >

[Lift] Re: Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
Ross, Yep, that fixes it. Thanks, although I'm not sure if the solution is worse than the problem. I mean, what possible side affects could turning off the use of Xhtml mime type have? Glenn On Nov 18, 11:23 am, Ross Mellgren wrote: > Try turning off the XHTML mime type by

[Lift] Re: Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
Kris, Don't want to clone the GitHub repo, as I need a Maven repo. Glenn On Nov 18, 11:19 am, Indrajit Raychaudhuri wrote: > Still, something looks wrong: > > http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.1-M7/l... > has the .scala sources > > buthttp

[Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
ath/jquery.js :: anonymous :: line 251" data: no] Anyone have an idea why this happening? Glenn -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this

[Lift] Missing source files in 1.1-SNAPSHOT

2009-11-18 Thread glenn
Where are all the java source files in http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/lift-webkit-1.1-SNAPSHOT-sources.jar? It's kind of hard to debug without them. Glenn -- You received this message because you are subscribed to the Google Groups "Lift&

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
en so marked. Glenn On Nov 12, 8:35 am, glenn wrote: > Naftoli, > > Isn't this really a cascading delete issue and not one isolated to > ManyToMany situations? Most ORM solutions allow for cascading deletes. > Such a feature could be added to the Mapper class, itself, and hol

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
r, if turned on. Glenn On Nov 11, 9:31 am, Naftoli Gugenheim wrote: > To clarify: The fundamental purpose of ManyToMany, like OneToMany, is that > rather than dealing with "children" of an entity as they are in the database > at a given moment, instead, they should hav

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-10 Thread glenn
= { case Req("webservices" :: c :: Nil, "", GetRequest)=> () => start_feed(c:String) and start_feed simply calls new Notifiier(). Given this code, the URL: http://localhost:8080/webservices/Notify successfully calls into start_feed and creates Notifier but the messageHandler

[Lift] Re: How do you consume a JsonResponse in a Mapper.toForm snippet

2009-11-10 Thread glenn
[Break on this error]   This line is inserted before the Save button in the Mapper-generated form. Glenn On Nov 10, 2:40 pm, glenn wrote: > I'm using XMLApiHelper to dispatch a JsonResponse to the client. My > problem is I don't see how to consume the JSON object in my templat

[Lift] How do you consume a JsonResponse in a Mapper.toForm snippet

2009-11-10 Thread glenn
N object is just the Mapper converted to JSON. I want the fields to be filled in with the data from the JsonResponse. Any help would be appreciated. Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift"

[Lift] Re: **Important** Migration guide Scala Actors -> Lift Actors

2009-11-03 Thread glenn
/webservices/Notify successfully calls into start_feed and creates Notifier but the messageHandler isn't called. Any help is appreciated? Thanks, Glenn On Oct 22, 10:57 am, David Pollak wrote: > Folks, > > I wrote a quick blog piece about migrating from Scala Actors to Lift Actors

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread glenn
and I fear that sticking with milestones will just delay the inevitable. I know this is a common issue in any development scenario, Lift or otherwise...and I don't know of a satsifactory solution. Glenn On Nov 3, 9:11 am, glenn wrote: > David, > > I understand how to fix the compil

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread glenn
David, I understand how to fix the compiler error in my code. Are you suggesting I'm better going back to the Snapshots, and taking my chances with the many code changes that requires? Glenn On Nov 3, 9:06 am, David Pollak wrote: > On Tue, Nov 3, 2009 at 8:56 AM, glenn wrote: > &g

[Lift] Compiler errors switching to M6

2009-11-03 Thread glenn
with M7 due to be released, what other problems am I going to face? Glenn --~--~-~--~~~---~--~~ 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 uns

[Lift] Re: How to create an rss?

2009-10-23 Thread glenn
ts to Get all reguest def showArticles():AtomResponse = { val eList = for(e <- Content.findAll) yield { e.toAtom } AtomResponse(feedWrapper(eList)) } Glenn On Oct 23, 6:24 am, wibblecp wrote: > hi guys, > I'm looking for a way to genera

[Lift] Re: Having trouble with form submission when using JavaScript to fetch the template

2009-10-07 Thread glenn
If it helps, the HTML produced is identical, regardless of how the template is fetched. So this might suggest there is a problem with Request state regarding the Mapper object, but I don't understand why that should be so. Glenn On Oct 7, 9:12 am, glenn wrote: > My JavaScrip

[Lift] Having trouble with form submission when using JavaScript to fetch the template

2009-10-07 Thread glenn
roblem with JavaScript in this case or is there something in the dispatch rule that I'm failing to do? Any thoughts would be appreciated. Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift&qu

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Never mind, I found it. Glenn On Oct 6, 9:02 am, glenn wrote: > Sounds like it might work for me. What package and class > is render found in. > > Glenn > > On Oct 6, 8:47 am, harryh wrote: > > > For now I am doing this.  It's not so bad. > > > def

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh wrote: > For now I am doing this.  It's not so bad. > > def xmlToJson(xml: Elem): JsExp = { >   val json = Xml.toJson(xml) map { >     // some mappings speci

[Lift] How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread glenn
I want to pass the result of Xml.toJson to JsonResponse. How can I do that, when JsonResponse takes a JsExp as a parameter, not a JValue. Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" grou

[Lift] Re: Help with using JSExp and JsCmd traits

2009-10-01 Thread glenn
many of my questions, so they can be answered. Many times, I've thought of abandoning Lift for "safer" harbors, but the help from you and all on this group brings me back to the fold. I've still got lots to learn. Glenn On Oct 1, 8:29 am, David Pollak wrote: > On Thu, Oct

[Lift] Re: Help with using JSExp and JsCmd traits

2009-10-01 Thread glenn
David, Excellent. This is exactly what I was looking for. Thanks. Glenn On Sep 30, 4:54 pm, David Pollak wrote: > JqHtml and JqEmptyAfter eagerly evaluate the NodeSeq on the server, so > there's no way to get client-side JS execution in a NodeSeq. > You can write something li

[Lift] Re: Help with using JSExp and JsCmd traits

2009-09-30 Thread glenn
if it can be avoided. Glenn On Sep 30, 1:20 pm, David Pollak wrote: > On Wed, Sep 30, 2009 at 1:08 PM, glenn wrote: > > > David, > > > The problem with writting the NodeSeq as {this.id} was toggled > div>) > > is that it generates the following JavaScript: > >

[Lift] Re: Help with using JSExp and JsCmd traits

2009-09-30 Thread glenn
ts the value in the JavaScript - not the result I'm after. Glenn... On Sep 30, 11:41 am, David Pollak wrote: > On Wed, Sep 30, 2009 at 11:36 AM, glenn wrote: > > > David, > > > I can't do this, AnonFunc(JqId("item-save") >> JqEmptyAfter > >

[Lift] Re: Help with using JSExp and JsCmd traits

2009-09-30 Thread glenn
and that won't do. What's needed is something more akin to: function() {jQuery('#'+"item-save").empty().after("" + this.id + "was toggled"); So, I guess my question is how do I define a NodeSeq to accomplish this? Glenn On Sep 30, 10:40 am, Dav

[Lift] Re: Help with using JSExp and JsCmd traits

2009-09-29 Thread glenn
) I was hoping for a more functional way to write func, in order to do more complex processing on the client. Glenn On Sep 29, 2:55 pm, Ross Mellgren wrote: > Oh I'm sorry, I got tunnel vision and did not read the rest of your   > code. You'll not be able to do quite what you want,

[Lift] Re: Help with using JSExp and JsCmd traits

2009-09-29 Thread glenn
Hi, Ross, Unfornately, all of these just result in: function() {jQuery('#'+"item-save").empty().after("this.id was toggled");} They simply treat this.id as part of the passed in NodeSeq, "this.id was toggled". I need it to output this.id + "was

[Lift] Help with using JSExp and JsCmd traits

2009-09-29 Thread glenn
s AnonFunc(JqId("item-save") >> JqEmptyAfter({JsRaw(this.id)} was toggled)) but nothing seems to work. It just treats this.id as ordinary text, not as a Javascript variable. Any ideas would be appreciated. Glenn --~--~-~--~~~---~--~~ You received th

[Lift] Re: Code Plugability in Lift

2009-09-29 Thread glenn
se it, just fine. Glenn On Sep 28, 11:01 am, Derek Chen-Becker wrote: > It's a really ugly corner that JPA paints us into here. There aren't any > vendor-neutral APIs for programmatically wiring entities up, so it's going > to have to be some sort of trickery. > &

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-25 Thread glenn
David, In this case, I was trying to see if there was a way to use the standard Lift menu generator to create a link with a callback for ajax handling, similar to SHtml.a. I don't know about menu generation from SiteMap. Perhaps that's what I really need. What would that look like?

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-25 Thread glenn
David, Thanks for the reply. The Loc, itself, though. How do I write that to create the Ajax link. I want to be able to modify an html element when the link is clicked, as in SetHtml("item-save", edit(item)). Glenn On Sep 24, 5:05 pm, David Pollak wrote: > val myLoc: Loc[_] =

[Lift] Using Mapper to model entity hierarchies

2009-09-24 Thread glenn
great in Firefox, however. Glenn --~--~-~--~~~---~--~~ 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

[Lift] TreeView widget doesn't work with IE 8

2009-09-23 Thread glenn
The TreeView widget doesn't work in IE 8. I haven't tested in earlier versions. It does work in the latest FireFox. Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post

[Lift] How can I replace SHtml.a with a Loc

2009-09-23 Thread glenn
ate the same or similar link using a Loc? Glenn --~--~-~--~~~---~--~~ 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 fr

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread glenn
David, What about using implicits? implicit def stringDataWrapper(s :String) = ... to apply the requisite trait. Is that doable? Glenn On Sep 21, 2:03 pm, glenn wrote: > David, > > Does this mean you could write an entity class, like so: > > class User(val firstName: Strin

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread glenn
the ticket. Glenn On Sep 21, 12:47 pm, David Pollak wrote: > This is an impedance mis-match between POJOs (what JPA expects) and the > richer fields that Mapper and Record have. > I'm working on an interface > (http://github.com/dpp/liftweb/blob/master/lift-util/src/main/sc

[Lift] Code Plugability in Lift

2009-09-21 Thread glenn
endently, doesn't it. Glenn --~--~-~--~~~---~--~~ 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 liftw

[Lift] Re: JSON forms problem

2009-09-17 Thread glenn
ithout it (case case JsonCmd("processForm"...) Glenn On Sep 16, 10:11 am, Derek Chen-Becker wrote: > I'll fix the book right now, but could you please send your complete head > method so that I make sure to include the correct code? > > Derek > > On Wed, Sep

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

2009-09-16 Thread glenn
,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 wrote: > If you useModelViewin a ModelSnippet, read t

[Lift] Re: Code broken due to hanges to ModelView

2009-09-16 Thread glenn
Naftoli, Pardon this new discussion. I just discovered your earlier post on this issue. However, the source for ModelView still shows it taking a type parameter. Has that not been updated yet? Glenn On Sep 16, 8:53 am, glenn wrote: > Further compounding my confusion, is that the  mapper.v

[Lift] Re: Code broken due to hanges to ModelView

2009-09-16 Thread glenn
Further compounding my confusion, is that the mapper.view package from the maven repo, http://scala-tools.org/repo-snapshots, is not in GitHub, so are the two repositories out-of-sync, and have they always been so? Glenn On Sep 16, 8:45 am, glenn wrote: > I realize the  risk one takes

[Lift] Code broken due to hanges to ModelView

2009-09-16 Thread glenn
rView(new User, this) where UserView extends ModelView[User], what do I do to fix this error? Glenn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@g

[Lift] Re: JSON forms problem

2009-09-16 Thread glenn
Marius, You are right. I added to my head method, and everything works great. The issue here, is that the Lift Book example doesn't mention this. Glenn On Sep 15, 9:07 pm, "marius d." wrote: > Right ... the head method should not have the js script but did you > includ

[Lift] Re: JSON forms problem

2009-09-15 Thread glenn
arius > > On Sep 15, 5:55 pm, "marius d." wrote: > > > Do you see any errors in FireBug ? ... Do see the Ajax request being > > send out in FireBug? > > > On Sep 15, 5:49 pm,

[Lift] Re: JSON forms problem

2009-09-15 Thread glenn
Ahh... This function is not in the code. I did not see it in the Lift book. It seems I'm missing the classpath for the javascript file. The book has it as: def head = {Script(json.jsCmd)} with no src="/classpath" Could that be the culprit? Glenn On Sep 15, 3:59 pm, &qu

[Lift] Re: JSON forms problem

2009-09-15 Thread glenn
ny): JsCmd = SetHtml("json_result", Text("This is a test")) } I get the log output twice, not once, in the console. Glenn On Sep 15, 3:55 pm, "marius d." wrote: > Do you see any errors in FireBug ? ... Do see the Ajax request being > send

[Lift] Re: JSON forms problem

2009-09-15 Thread glenn
dler (from the apply method), but clicking on the submit button on the form doesn't populate the json_result div. In fact, it doesn't do anything even though, on the page source, the button's onclick method is wired up. Glenn On Sep 15, 11:59 am, Derek Chen-Becker wrote: > The

[Lift] Re: JSON forms problem

2009-09-14 Thread glenn
Actually, the JsonHandler in the example gets called, but not the apply (in:Any) method, as that is never called in the book example. Also, the handler seems to be called twice with every submit. Why is that? Glenn On Sep 14, 8:08 am, glenn wrote: > This may be a question for the Lift B

[Lift] JSON forms problem

2009-09-14 Thread glenn
This may be a question for the Lift Book forum, but has anyone gotten the JSON forms example 8.13 in the Lift Book to work? When I tried it, the JsonHandler in class JSONForm never gets called when the submit button is clicked. Glenn --~--~-~--~~~---~--~~ You

[Lift] Re: Wizard code in master

2009-09-11 Thread glenn
that content type (e.g. a file upload page, if that is required). Glenn On Sep 3, 3:38 am, Timothy Perrett wrote: > Thought as much ;-) > > Just something else to throw into discussion, but perhaps it would be > great ifwizardprocesses could be serialised into a couple of formats > (XML

[Lift] Re: Milestone 5 now available!

2009-09-09 Thread glenn
Does this milestone incorporate what's in 1.1-Snapshot? Glenn On Sep 8, 9:57 pm, "Charles F. Munat" wrote: > The Lift team proudly announces Milestone 5! Some text here that I > forgot to copy and paste. > > Go get it! > > Chas. Munat --~--~-~--~~

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-08 Thread glenn
ly, I will have to implement my own, perhaps using JaaS or one of its variants. If you have any thoughts on that issue, I'd like to hear them. Thanks, Glenn On Sep 8, 8:40 am, "marius d." wrote: > On Sep 8, 6:12 pm, glenn wrote: > > > Marius, > > > With

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-08 Thread glenn
ignment there. Does that make sense? This is not to say that I can't work tangentially to Http basic authentication in Lift and create my own, just that I'm trying to incorporate the work already done so I don't have to. Glenn On Sep 7, 11:24 pm, "marius d." wrote: &g

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
userRoles(_root_.net.liftweb.http.auth.AuthRole (roleName)) true } Full(new _root_.net.liftweb.http.auth.Role{ def name = roleName}) } case false => Empty } } Can't be in Boot, Glenn On Sep 7, 1:36

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
pplication. Dividing up read-only views and editable templates into different resources helps. And limiting data access is certainly doable. It would just be nice to centralize some of these features, and that's what I'm trying achieve in my code. Glenn . - oops, I almost lost myself ther

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
case (credentials._1, credentials._2, req) => AuthRole(roleName) true } Full(new _root_.net.liftweb.http.auth.Role{ def name = roleName}) } case false => Empty } Rather

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-05 Thread glenn
e authorization package and I would have been surprised if it had. Glenn... On Sep 5, 12:38 am, "marius d." wrote: > I'll let Tim provide you a concrete code example but AFAIK there is a > lift-authetication example in examples? > > A few points: > > 1. We suppo

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-05 Thread glenn
we would have set another role such as userRoles > (AuthRole > ("guest")) the resource would still not be served as guest has nothing > to do with > an admin. The lift-book describes the rules of Roles application. > > All this has nothing to do with Mapper or

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
o to speak, not that it can't be done. You guys have done too good a job on Lift to have overlooked that. Glenn... On Sep 4, 4:03 pm, Timothy Perrett wrote: > Glenn, > > If Marius doesn't beat ne to it, I'll reply tomorrow morning. The   > system we implemented

[Lift] Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
o the puzzle is managing the list of AuthRoles, create protected resources and build the Lift.authentication cases. If you limit this to Boot, then you give up on dynamic authentication and authorization, or do you? Glenn... --~--~-~--~~~---~--~~ You received this me

[Lift] Re: Mapper subclasses

2009-09-03 Thread glenn
Isn't this really a matter of type casting, and asInstanceOf is just Scala's way of doing this. It's always best if you don't have to downcast your objects, but sometimes its unavoidable. Glenn... On Sep 3, 10:29 am, glenn wrote: > I'm not sure of what the ex

[Lift] Re: Mapper subclasses

2009-09-03 Thread glenn
I'm not sure of what the exact problem is. I created an Address trait that I couple with a number of mapper classes. trait Address[OwnerType <: KeyedMapper[Long, OwnerType]]{ def owner = this.asInstanceOf[OwnerType] Where exactly does this construct break down? Glenn... On

[Lift] Re: Recent change in MappedField._toForm?

2009-09-01 Thread glenn
l(e % new UnprefixedAttribute(name, Text (value), Null)) case _ => Empty } I'm sure it's not the prettiest way to do this. But it does work. Glenn... On Sep 1, 10:30 am, David Pollak wrote: > On Tue, Sep 1, 2009 at 9:43 AM, glenn wrote: > > > It seems tha

[Lift] Re: Recent change in MappedField._toForm?

2009-09-01 Thread glenn
Now, I'm not sure what is going on? The latest source for BaseMappedField has def _toForm: Box[NodeSeq] But MappedTextarea overrides this as: def _toForm: Box[Elem]. How can that be? On Sep 1, 10:10 am, glenn wrote: > Oops, looks like my error. I didn't see any change

[Lift] Re: Recent change in MappedField._toForm?

2009-09-01 Thread glenn
David, So, it looks like I no longer need my helper function addElemClass. Cool. Glenn... On Sep 1, 10:30 am, David Pollak wrote: > On Tue, Sep 1, 2009 at 9:43 AM, glenn wrote: > > > It seems that MappedField._toForm method changed recently in 1.1- > > Snapshot to return

[Lift] Re: Recent change in MappedField._toForm?

2009-09-01 Thread glenn
Oops, looks like my error. I didn't see any change in the source. On Sep 1, 9:43 am, glenn wrote: > It seems that MappedField._toForm method changed recently in 1.1- > Snapshot to return Box[scala.xml.Elem] instead of a Box[NodeSeq]. > > I'm getting a type mismatch er

[Lift] Recent change in MappedField._toForm?

2009-09-01 Thread glenn
: Seq[scala.xml.Node] required: scala.xml.Elem Was there a reason for the change? glenn... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups

[Lift] Re: Modularization of Lift code

2009-08-30 Thread glenn
David, For all that you've said in defense of Lift's extensibility, answer one question: Could you override def _showAllTemplate in Crudify, without having the source at your disposal? And, this is not an isolated example. Glenn... On Aug 28, 12:05 pm, AlBlue wrote: > On Jul

[Lift] Re: Modularization of Lift code

2009-08-28 Thread glenn
David, I'll take a look at the ESME code to see if what you've done scratches my itch on this issue. I've run the war file and it looks interesting. I assume the source is also available. Thanks for the heads-up. Glenn... On Aug 27, 7:55 pm, David Pollak wrote: > On Thu, Au

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
, would be most helpful. Glenn... On Aug 27, 12:11 pm, David Pollak wrote: > On Thu, Aug 27, 2009 at 11:22 AM, glenn wrote: > > > David, > > > Returning menu items from your init function is OK, but forces the > > user > > of your module to guess on function-call or

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
Pardon, This may be more of an issue with Scala, not Lift. So, I apologize for polluting this group. I suppose I will have to live with imperfect modularization capabilities, and be sure to include the source with anything meant to be reused. Glenn... On Aug 27, 11:22 am, glenn wrote: > Da

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
think harder. This is not small potatoes There are plenty of languages on the dust heap precisely because of the extension problem. Glenn... On Aug 26, 2:53 pm, David Pollak wrote: > On Wed, Aug 26, 2009 at 10:13 AM, glenn wrote: > > > Timothy, > > > I'm still not co

[Lift] Re: Modularization of Lift code

2009-08-26 Thread glenn
anism in Loc to eliminate the need for html files, but that's only a small part of the problem. Glenn... On Jul 27, 4:01 pm, Timothy Perrett wrote: > Hi Glen... > > I actually do a lot of this - we have a product at work and i've just > written a bunch of abstractions

[Lift] Re: New features

2009-08-25 Thread glenn
Well, I managed to upload to github. Here is the repository: git://github.com/glennSilverman/UserMon.git Any feedback is appreciated. Glenn... On Aug 25, 10:43 am, Naftoli Gugenheim wrote: > Google code? Sourceforge? ProjectLocker? > There are a lot of choices... > > On Tue, Aug

[Lift] Re: New features

2009-08-25 Thread glenn
make it public. Any suggestions would be appreciated. Glenn... On Aug 25, 7:08 am, Naftoli Gugenheim wrote: > "This" meaning the problem, or meaning ManyToMany? > It's pretty simple to use. You're mapper should extend ManyToMany, and you > should have a "field": >

[Lift] Re: multiselect example in Liftbook problem

2009-08-24 Thread glenn
. Glenn... On Aug 24, 3:37 pm, glenn wrote: > There seems to be a problem with  SHtml.multiSelect following the > example in the Lift book (Listing 4.10: Using multiselect). The > example shows the last parameter to be a List, while the source for > multiSelect shows it to be >

[Lift] multiselect example in Liftbook problem

2009-08-24 Thread glenn
s no other callback function parameter on the multiSelect constructor. This is all very confusing. Glenn... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftwe

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
tside my own particular situation, I will let you know. Glenn... On Aug 21, 1:05 pm, Naftoli Gugenheim wrote: > I should have thought of that problem. > I could make TableEditor more flexible when I have time, but the truth is > that I don't know if it's worth it. The whole t

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
he tag in my template. It was really pretty simple. Glenn... On Aug 21, 11:06 am, glenn wrote: > Naftoli, > > I must be doing something wrong. I tried the following, as you > suggested, > inserting the extra xml after the item:fields tag, but > ManagerUsers.list does its > own iter

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
. Then, I have the added problem of saving changes to the item, since roles is not a field recognized by ItemsList.save. Any suggestions?? Kevin, I implemented asmselect in my app and it works great. Thanks for the heads up. Glenn

[Lift] Re: TableEditor article

2009-08-20 Thread glenn
buttons in between. I guess there is no good default solution. One enhancement to your tableeditor would be a tableviewer option, using a instead of a tag. Thanks for your help. Glenn... On Aug 20, 2:20 pm, Naftoli Gugenheim wrote: > The name is really a misnomer. It's not a MappedField.

[Lift] Re: TableEditor article

2009-08-20 Thread glenn
Naftoli, Sorry for the addendum, but ideally, it would be nice to do something like: override def validSelectValues: Box[List[(Long, String)]] ... as you can with MappedLongForeignKey, and have a select box display in the table. Glenn... On Aug 20, 12:51 pm, glenn wrote: > Naftoli, &g

[Lift] Re: TableEditor article

2009-08-20 Thread glenn
Naftoli, I tried using TableEditor with a MetaMapper instance of a ManyToMany class, but and 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?

[Lift] Re: Sitemap and mapper dependency's effects on object reuse

2009-08-19 Thread glenn
Complicating matters a bit, I decided to use the new ModelSnippet, which extends StatefulSniippet for my snippet class, so I'm not sure the Template can be refactored to not use it. Glenn... On Aug 19, 4:42 pm, glenn wrote: > David, > > Sounds like you know where I'm

[Lift] Re: Sitemap and mapper dependency's effects on object reuse

2009-08-19 Thread glenn
Email Roles }) On Aug 19, 3:08 pm, David Pollak wrote: > Glenn, > > Lemme see if I can put together some abstractions that might help out. > > Thanks, > > David > > > > On Tu

[Lift] Re: CMS for Lift?

2009-08-19 Thread glenn
: > > > FWIW... I got roped into hosting a CMS by the PTA of my kids' school.  I may > > knock something together in Lift or leverage off the work Glenn has done. > > > On Tue, Aug 18, 2009 at 3:26 PM, Timothy Perrett > > wrote: > > > > Just my tw

[Lift] Sitemap and mapper dependency's effects on object reuse

2009-08-18 Thread glenn
I'm looking for some answers on best coding practices, particularly when it comes to object reuse. In a data-centric application, where the Sitemap is used to navigate through your mapper entities, has anyone given much thought to the object dependencies this can create. In the case of page spec

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-18 Thread glenn
Actually, I used the Maven Eclipse plugin. File/New/Other/Maven/Maven Project. Click twice and select the Nexus Indexer Archetype catalog. Use lift to filter and select Group Id: repository.net.liftweb Artifact Id: lift.archetype.basic Version: 1.1-SNAPSHOT Glenn... On Aug 18, 10:32 am

  1   2   3   >