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

2010-02-02 Thread glenn
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 options, visit

[Lift] Error saving Mapper object

2009-12-14 Thread glenn
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 this group, send email to lift

[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? Glenn -- You

[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 feeder.of.the.be...@gmail.com wrote: On Mon, Dec 14, 2009 at 9:11 AM, glenn gl...@exmbly.com wrote: I started a new 1.1-Snapshot

[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 feeder.of.the.be...@gmail.com wrote: Folks (HarryH -- this means you), I've just checked in code on the dpp_issue_213 that does Mapper

[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, Jim Wise jw

[Lift] Re: A sensible AJAX approach

2009-11-30 Thread glenn
enough to include something similar in a future release of Lift. Glenn . On Nov 24, 5:53 pm, David Pollak feeder.of.the.be...@gmail.com 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

[Lift] Re: A sensible AJAX approach

2009-11-24 Thread glenn
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 gl...@exmbly.com 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 added to the mapper package

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

2009-11-24 Thread glenn
satisfactory solution, but in a pinch... Glenn On Nov 24, 2:46 pm, Ross Mellgren dri...@gmail.com 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-20 Thread glenn
. The hidden form field is suppose to run the ()=Any function, and it may do that, but not in the correct sequence to do any good when the form is submitted. Glenn On Nov 19, 11:35 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Chris Lewis burningodzi...@gmail.com writes: Thanks for the feedback Jeppe

[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 feeder.of.the.be...@gmail.com wrote: Glenn, All

[Lift] Re: A sensible AJAX approach

2009-11-20 Thread glenn
it 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 feeder.of.the.be...@gmail.com wrote: On Fri, Nov 20, 2009 at 10:14 AM, glenn gl...@exmbly.com wrote: David, That's what I thought. All I needed to do was create the Mapper.toForm like so

[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 group

[Lift] Firefox error in returning a CreatedResponse

2009-11-18 Thread glenn
:: 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 group, send email to liftweb

[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 indraj...@gmail.com wrote: Still, something looks wrong: http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.1-M7/l... has the .scala sources buthttp://scala

[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 dri...@gmail.com wrote: Try turning off the XHTML mime type

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

2009-11-18 Thread glenn
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 je...@ingolfs.dk wrote: Kris Nuttycombe kris.nuttyco...@gmail.com writes: On Wed, Nov 18, 2009 at 1:51 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Kris Nuttycombe

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
marked. Glenn On Nov 12, 8:35 am, glenn gl...@exmbly.com 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 hold a list of foreign

[Lift] Re: ManyToMany decision

2009-11-12 Thread glenn
, if turned on. Glenn On Nov 11, 9:31 am, Naftoli Gugenheim naftoli...@gmail.com 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 have similar

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

2009-11-10 Thread glenn
on this error] tdnbsp;/td This line is inserted before the Save button in the Mapper-generated form. Glenn On Nov 10, 2:40 pm, glenn gl...@exmbly.com 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 template

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

2009-11-10 Thread glenn
(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 isn't called. Any help is appreciated? Thanks, Glenn On Nov 10, 3:58 pm, David Pollak

[Lift] Compiler errors switching to M6

2009-11-03 Thread glenn
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 unsubscribe from this group, send email to liftweb+unsubscr

[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 feeder.of.the.be...@gmail.com wrote: On Tue, Nov 3, 2009 at 8:56 AM

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread glenn
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 gl...@exmbly.com wrote: David, I understand how to fix the compiler error

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

2009-11-03 Thread glenn
but the messageHandler isn't called. Any help is appreciated? Thanks, Glenn On Oct 22, 10:57 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I wrote a quick blog piece about migrating from Scala Actors to Lift Actors athttp://blog.lostlake.org/index.php?/archives/96-Migrating-from-Scala-... I

[Lift] Re: How to create an rss?

2009-10-23 Thread glenn
feed: //Reacts 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 wibbl...@gmail.com wrote: hi guys, I'm looking

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

2009-10-07 Thread glenn
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 group. To post to this group, send email to liftweb@googlegroups.com

[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 gl...@exmbly.com wrote: My JavaScript

[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 group. To post

[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 har...@gmail.com 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 specific to my json

[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 gl...@exmbly.com wrote: Sounds like it might work for me. What package and class is render found in. Glenn On Oct 6, 8:47 am, harryh har...@gmail.com wrote: For now I am doing this.  It's not so bad. def xmlToJson(xml: Elem

[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 feeder.of.the.be...@gmail.com 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

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

2009-10-01 Thread glenn
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 feeder.of.the.be...@gmail.com wrote: On Thu, Oct 1, 2009

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

2009-09-30 Thread glenn
in the JavaScript - not the result I'm after. Glenn... On Sep 30, 11:41 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 30, 2009 at 11:36 AM, glenn gl...@exmbly.com wrote: David, I can't do this, AnonFunc(JqId(item-save) JqEmptyAfter (divthis.id was toggled/div)) , if that's

[Lift] Help with using JSExp and JsCmd traits

2009-09-29 Thread glenn
)} was toggled/div)) 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 this message because you are subscribed to the Google Groups Lift group. To post

[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(divthis.id was toggled/div);} They simply treat this.id as part of the passed in NodeSeq, divthis.id was toggled/div. I need it to output divthis.id + was toggled/div. Glenn On Sep 29, 1:46

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

2009-09-29 Thread glenn
the Tree selected. val func = JsRaw(function() $('#item-save').html(this.id + ' was toggled')) TreeView(tree, JsObj((persist, location),(toggle, func)), loadTree, loadNode) 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

[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 feeder.of.the.be...@gmail.com wrote: val myLoc

[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? Glenn

[Lift] Using Mapper to model entity hierarchies

2009-09-24 Thread glenn
, 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 email to liftweb+unsubscr...@googlegroups.com

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

2009-09-23 Thread glenn
? 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 liftweb+unsubscr...@googlegroups.com For more

[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 to this group, send email

[Lift] Code Plugability in Lift

2009-09-21 Thread glenn
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 liftweb+unsubscr...@googlegroups.com For more

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread glenn
be the ticket. Glenn On Sep 21, 12:47 pm, David Pollak feeder.of.the.be...@gmail.com 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

[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 gl...@exmbly.com wrote: David, Does this mean you could write an entity class, like so: class User(val firstName: String, val

[Lift] Re: JSON forms problem

2009-09-17 Thread glenn
to the variable anywhere in the function body, so this should work just as nicely without it (case case JsonCmd(processForm...) Glenn On Sep 16, 10:11 am, Derek Chen-Becker dchenbec...@gmail.com wrote: I'll fix the book right now, but could you please send your complete head method so that I make sure

[Lift] Re: JSON forms problem

2009-09-16 Thread glenn
Marius, You are right. I added script type=text/javascript src={/ + LiftRules.resourceServerPath + /jlift.js} / 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. marius.dan...@gmail.com wrote

[Lift] Code broken due to hanges to ModelView

2009-09-16 Thread glenn
(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@googlegroups.com

[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 gl...@exmbly.com wrote: I realize the  risk

[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 gl...@exmbly.com wrote: Further compounding my confusion

[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 naftoli...@gmail.com wrote: If you useModelViewin a ModelSnippet, read

[Lift] Re: JSON forms problem

2009-09-15 Thread glenn
even though, on the page source, the button's onclick method is wired up. Glenn On Sep 15, 11:59 am, Derek Chen-Becker dchenbec...@gmail.com wrote: The apply method should be getting called because the SHtml.json method should register it as the handler for the form. Would you mind sending me

[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: 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 gl...@exmbly.com wrote: This may be a question

[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 timo...@getintheloop.eu 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 c...@munat.com 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
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. marius.dan...@gmail.com wrote: On Sep 8, 1:18 am, glenn gl

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-08 Thread glenn
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. marius.dan...@gmail.com wrote: On Sep 8, 6:12 pm, glenn gl...@exmbly.com wrote: Marius, With your help, I think

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
) true } Full(new _root_.net.liftweb.http.auth.Role{ def name = roleName}) } case false = Empty } Rather verbose, don't you think. elipsisless Glenn On Sep 6, 8:27 am, Timothy Perrett timo...@getintheloop.eu wrote

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
. 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 there. On Sep 7, 12:53

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-07 Thread glenn
} 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 pm, marius d. marius.dan...@gmail.com wrote: On Sep 7, 10:53 pm, glenn gl...@exmbly.com wrote

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-05 Thread glenn
package and I would have been surprised if it had. Glenn... On Sep 5, 12:38 am, marius d. marius.dan...@gmail.com 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 support both BASIC and DIGEST HTTP

[Lift] Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
to 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 message

[Lift] Re: Using Roles and LIftRules.authentication

2009-09-04 Thread glenn
, 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 timo...@getintheloop.eu wrote: Glenn, If Marius doesn't beat ne to it, I'll reply tomorrow morning. The   system we implemented for auth was not meant

[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 Sep 3, 7:55

[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 gl...@exmbly.com wrote: I'm not sure of what the exact problem is. I

[Lift] Recent change in MappedField._toForm?

2009-09-01 Thread glenn
: 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.com To unsubscribe from this group, send email

[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 gl...@exmbly.com 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 error in my

[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 feeder.of.the.be...@gmail.com wrote: On Tue, Sep 1, 2009 at 9:43 AM, glenn gl...@exmbly.com wrote: It seems that MappedField._toForm method changed recently in 1.1

[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 gl...@exmbly.com wrote: Oops, looks like my error. I didn't see any change

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

2009-09-01 Thread glenn
% 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 feeder.of.the.be...@gmail.com wrote: On Tue, Sep 1, 2009 at 9:43 AM, glenn gl...@exmbly.com wrote

[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 alex.blew...@gmail.com wrote

[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 feeder.of.the.be...@gmail.com wrote

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
. 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 feeder.of.the.be...@gmail.com wrote: On Wed, Aug 26, 2009 at 10:13 AM, glenn gl...@exmbly.com wrote: Timothy, I'm still not convinced

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
helpful. Glenn... On Aug 27, 12:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Aug 27, 2009 at 11:22 AM, glenn gl...@exmbly.com wrote: David, Returning menu items from your init function is OK, but forces the user of your module to guess on function-call order I don't

[Lift] Re: Modularization of Lift code

2009-08-26 Thread glenn
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 timo...@getintheloop.eu 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 for work which just require me

[Lift] Re: New features

2009-08-25 Thread glenn
suggestions would be appreciated. Glenn... On Aug 25, 7:08 am, Naftoli Gugenheim naftoli...@gmail.com 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: object m2m extends MappedManyToMany(.../*the two

[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 naftoli...@gmail.com wrote: Google code? Sourceforge? ProjectLocker? There are a lot of choices... On Tue

[Lift] multiselect example in Liftbook problem

2009-08-24 Thread glenn
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 liftweb@googlegroups.com To unsubscribe from

[Lift] Re: multiselect example in Liftbook problem

2009-08-24 Thread glenn
. Glenn... On Aug 24, 3:37 pm, glenn gl...@exmbly.com 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 (String

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
//td /tr /table:items 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... On Aug 20, 3:44 pm, Naftoli

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
} /select where e represents my Mapper instance. Then I just bound selectRoles to the tag in my template. It was really pretty simple. Glenn... On Aug 21, 11:06 am, glenn gl...@exmbly.com wrote: Naftoli, I must be doing something wrong. I tried the following, as you suggested

[Lift] Re: TableEditor article

2009-08-21 Thread glenn
my own particular situation, I will let you know. Glenn... On Aug 21, 1:05 pm, Naftoli Gugenheim naftoli...@gmail.com 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 thing

[Lift] Re: TableEditor article

2009-08-20 Thread glenn
that will resolve this? Glenn... On Aug 12, 2:48 pm, Naftoli Gugenheim naftoli...@gmail.com 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

[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 gl...@exmbly.com wrote

[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 field:toXml instead of a field:form tag. Thanks for your help. Glenn... On Aug 20, 2:20 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: The name is really

[Lift] Re: CMS for Lift?

2009-08-19 Thread glenn
feeder.of.the.be...@gmail.com wrote: 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 timo...@getintheloop.euwrote: Just my two cents, but I

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

2009-08-19 Thread glenn
/div hr / div id=user-edit/ /lift:surround }) On Aug 19, 3:08 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Glenn, Lemme see if I can put together some abstractions that might help out. Thanks, David On Tue, Aug 18, 2009 at 4:58 PM, glenn gl...@exmbly.com wrote

[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 gl...@exmbly.com wrote: David, Sounds like you know where I'm coming from

[Lift] Re: CMS for Lift?

2009-08-18 Thread glenn
to throw mine out there for comment anyway. Glenn... On Aug 17, 4:43 am, Jefken De Vleesetenden Boterham cultoftheholysquir...@gmail.com wrote: thirded, I'd try to help out a bit On Sun, Aug 16, 2009 at 11:53 PM, TylerWeirtyler.w...@gmail.com wrote: @Glenn - is your project public? Seconded

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

2009-08-18 Thread glenn
David, I just ran the basic from SNAPSHOTS and Boot.scala still has private def makeUtf8(req: HttpServletRequest) { req.setCharacterEncoding(UTF-8) } in Boot.scala. Glenn... On Aug 17, 10:10 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:42 AM, glenn

[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 Next 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

[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

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

2009-08-17 Thread glenn
Is anyone planning on fixing the archetype snapshots to add this change, and import provider._ in Boot.scala. Thanks in advance, Glenn... On Aug 10, 10:36 am, marius d. marius.dan...@gmail.com wrote: Your makeUTF8 should look like this:   private def makeUtf8(req: HTTPRequest): Unit

[Lift] Re: CMS for Lift?

2009-08-16 Thread glenn
as, if not better than, these systems. Glenn... On Aug 15, 11:08 pm, philip philip14...@gmail.com wrote: Hi, Has anyone made a CMS for Liftweb? or I should say, in liftweb. Thanks, Philip --~--~-~--~~~---~--~~ You received this message because you

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

2009-08-10 Thread glenn
I just got a type mismatch found error in LiftRules.early.append (makeUtf8) in Boot.scala. It's now looking for an net.liftweb.http.provider.HTTPRequest instead of a javax.servlet.http.HttpServletRequest. Is this a new change, and if so, where is the net.liftweb.http.provider package? Glenn

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

2009-08-10 Thread glenn
I realize the need to improve the code, but do you have to break existing in the process? That's bad form. Glenn... On Aug 10, 9:55 am, Tim Nelson tnell...@gmail.com wrote: There were changes made to remove the requirement for lift to run in a servlet container. See: http

[Lift] Re: New features

2009-08-10 Thread glenn
(MappedLong.scala:223) net.liftweb.mapper.ManyToMany$MappedManyToMany.own(ManyToMany.scala: 78) My code that generates the error is: entity.roles += r where entity is a User and roles is the MappedManyToMany object in User. Glenn... On Aug 8, 10:35 pm, Naftoli Gugenheim naftoli...@gmail.com wrote

[Lift] Re: StatefulSnippet link and functionMap

2009-08-07 Thread glenn
at 3:09 PM, glenn gl...@exmbly.com wrote: I have a stateful snippet with multiple StatefulSnippet links in the bind helper. Clicking on each link gives me a 403 error. I noticed that the function map for each link is different. Shouldn't they be the same, since I'm trying to reload the same

[Lift] Re: New features

2009-08-06 Thread glenn
think. Glenn... On Aug 5, 8:24 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Building causes a stack overflow? So the question is, is it the resident compiler or plain scalac also crashes? Or just the presentation compiler? What do you see in the error log view or file? I get compiler

  1   2   3   >