[Lift] Re: Documentation

2008-09-01 Thread David Pollak
Rob Dickens wrote: Maybe good documentation starts with good documentation of the source code itself. How many people really understand what even the initialisation stuff does, I wonder; complicated and undocumented enough for me to give up, anyway (which is saying something). Rob, Do

[Lift] Re: Snippet Failure

2008-09-01 Thread David Pollak
/projects, I use emacs. As a general rule, if I've got a large number of bulk edits to make, I also use emacs. After 30+ years, emacs still has a better interface for editing text than anything else I've used. David Pollak wrote: On Aug 31, 9:43 pm, David Pollak [EMAIL PROTECTED] wrote

[Lift] Re: Logo for Lift

2008-09-01 Thread David Pollak
Viktor Klang wrote: On Mon, Sep 1, 2008 at 2:59 PM, David Pollak [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 12:15 AM, Viktor Klang [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yeah, it was frickin awesome. Now, how about

[Lift] Please Welcome Francois Bertrand to the Lift Committers

2008-09-01 Thread David Pollak
Folks, I'm psyched to announce that Francois Bertrand has joined the Lift Committers. Francois wrote the amazing Flot widget for Lift ( http://code.google.com/p/flot-widget-liftweb/ ) as well as other front end components. I'm looking forward to these being rolled into the standard Lift

[Lift] Re: lift YUI on wiki

2008-09-02 Thread David Pollak
On Tue, Sep 2, 2008 at 5:15 AM, Marius [EMAIL PROTECTED] wrote: Yes YUI is used for Ajax, Comet and everything else. The very cool thing that Marius did was abstract out the JavaScript library so it is possible to write a Prototype/Scriptaculous module for Lift and exclusively use that module

[Lift] Re: IE issue with ajax-form

2008-09-02 Thread David Pollak
We did make some changes to the way we handle selects to work around stuff in IE. I checked it out against the latest Lift code and it works fine. On Tue, Sep 2, 2008 at 10:05 AM, TylerWeir [EMAIL PROTECTED] wrote: Is anyone else getting an error using IE7 to hit

[Lift] Publishing an RSS feed from a Lift app

2008-09-02 Thread David Pollak
Folks, Has anyone created an RSS publisher from a Lift app? If so, do you have sample code floating around? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some:

[Lift] Re: Problems with persistence context (Lift/JPA)

2008-09-04 Thread David Pollak
have another module that uses the persistence tier but just talks web service. Could you split Lift into separate jars for useful utilities like Can and persistence utilities - just kidding :-) On Thu, Sep 4, 2008 at 3:32 PM, David Pollak [EMAIL PROTECTED] wrote: On Wed, Sep 3, 2008

[Lift] Re: bind and node attributes

2008-09-04 Thread David Pollak
) at scala.runtime.RichString.toInt(RichString.scala:213) at com.cianaidan.aws.web.snippet.PanelGrid.grid(PanelGrid.scala:8) On Thu, Sep 4, 2008 at 9:58 AM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Sep 4, 2008 at 6:43 AM, Daniel Green [EMAIL PROTECTED] wrote: Well, not exactly. I'm

[Lift] Re: lift tags not replace (new JPA tutorial)

2008-09-06 Thread David Pollak
, Sep 6, 2008 at 7:59 AM, David Pollak [EMAIL PROTECTED] wrote: Are you making a request on /foo.html or on /foo? I strongly recommend against /foo.html Marius wrote: On Sep 6, 12:04 pm, Tim Perrett [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: FYI - when I ctrl-c to stop jetty, I see

[Lift] Re: New SiteMap/Menu features

2008-09-07 Thread David Pollak
=class_for_li_tags li_item:class=class_for_current_page li_path:class=class_for_breadcrumb_path/ Perfect, thanks Dave! On Aug 17, 7:23 am, Viktor Klang [EMAIL PROTECTED] wrote: Slick! On Sat, Aug 16, 2008 at 7:48 PM, David Pollak [EMAIL PROTECTED] wrote: Folks

[Lift] Re: SiteMaps and multiple menus

2008-09-07 Thread David Pollak
on the page. Chas. David Pollak wrote: Make the top of the page sitemap elements Hidden. This means they will not be displayed by default, but are accessible as long as the access control rules are me. On the top bar, do lift:Menu.item name=about/ etc. to display the items. For more

[Lift] Back in Lift-land on Monday

2008-09-11 Thread David Pollak
Folks, I'm going to spend Monday going through all the various emails that I haven't had a chance to answer including the Access Control and Menu threads. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me:

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread David Pollak
http://www.youtube.com/watch?v=JFJMpFkpoQU Marius Danciu wrote: Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time the videos quality is better so I can actually see you :) Br's, Marius On Thu, Sep 11, 2008 at 10:07 AM, David Pollak [EMAIL PROTECTED

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
need is a way to programmatically force evaluation of some template-code? Then if a snippet has an embed passed into it, it can choose to force that embed to evaluate before doing further processing on it. --j On Thu, Sep 11, 2008 at 2:49 PM, David Pollak [EMAIL PROTECTED] wrote: Kris

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
force evaluation of some template-code? Then if a snippet has an embed passed into it, it can choose to force that embed to evaluate before doing further processing on it. --j On Thu, Sep 11, 2008 at 2:49 PM, David Pollak [EMAIL PROTECTED] wrote: Kris, I don't think I understand your

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
lift:MySnippet eager_eval=true lift:embed... /lift:MySnippet will do the right thing (give Hudson about 2 hours to get the code into the Lift Maven respository). Kris Nuttycombe wrote: On Thu, Sep 11, 2008 at 3:49 PM, David Pollak [EMAIL PROTECTED] wrote: If you are trying to embed

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
Kris Nuttycombe wrote: Very cool, this works exactly as I had hoped. I'll put together a bit of documentation together on the wiki this evening. Great. Documentation is good. Thanks again, You are welcome. Kris On Thu, Sep 11, 2008 at 4:52 PM, David Pollak [EMAIL PROTECTED

[Lift] Re: Site map question

2008-09-11 Thread David Pollak
Charles F. Munat wrote: I'm trying to access a page about/index.html using the url about/ If I add it to the site map: Menu(Loc(about, List(about, index), About)) I can access it at about/ but if I use lift:Menu.item name=about / to put the link on the page, then the link url comes

[Lift] Re: bind() and lift:embed

2008-09-12 Thread David Pollak
) net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:475) On Thu, Sep 11, 2008 at 4:10 PM, David Pollak [EMAIL PROTECTED] wrote: lift:MySnippet eager_eval=true lift:embed... /lift:MySnippet will do the right thing (give Hudson about 2 hours to get the code into the Lift Maven respository

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-12 Thread David Pollak
The missing piece is the ability to un-rewrite URLs via SiteMap such that it's easy to create nicely formed URLs with nicely placed parameters using SiteMap and have the rules be bi-directional. It's been on my noodling list for a while, but hasn't been high priority. Charles F. Munat wrote:

[Lift] Re: Source file encoding ...

2008-09-13 Thread David Pollak
Yeah... I get that. I figured it was part of Eric's tests. Marius wrote: Is anyone seeing this? IO error while decoding /media/WORK/marius/workspace/lift/liftweb- framework/src/test/scala/net/liftweb/util/StringHelpersSpec.scala with UTF-8 Please try specifying another one using the

[Lift] Re: Lift Scala 2.7.2-rc1

2008-09-13 Thread David Pollak
Marius, Jorge has a 2.7.2 branch that he's actively maintaining. Thanks, David Marius wrote: Hi, Has anyone tried to compile lift with Scala 2.7.2-rc1 ? I just did and the only change I had to do was in CometActor object ActorWatcher extends Actor { def act = loop { react {

[Lift] Re: Demo app error

2008-09-13 Thread David Pollak
I've been meaning to put up the latest Lift demo app... haven't had time. I'll get to it on Monday. Kris Nuttycombe wrote: Just thought I should point out that http://demo.liftweb.net/lift/simple/ is puking: Message: java.lang.reflect.InvocationTargetException

[Lift] Re: Lift Scala 2.7.2-rc1

2008-09-13 Thread David Pollak
in on this, but there'll be little to no change to Lift apps resulting from 2.7.2 The biggest API changes in 2.7.2 are Actor related and Philipp Haller was kind enough to check with me before implementing the breaking changes. Cheers Tim On 13 Sep 2008, at 14:40, David Pollak wrote

[Lift] Re: Snippet question

2008-09-13 Thread David Pollak
If your root package is com.foo and you've got a line in Boot: LiftRules.addToPackages(com.foo) then the Misc class has to live in com.foo.snippet to be found by Lift. On Thu, Sep 11, 2008 at 10:37 PM, Charles F. Munat [EMAIL PROTECTED] wrote: I copied the Misc snippet over from the example,

[Lift] Re: Lift, Jetty and OneJar

2008-09-16 Thread David Pollak
16, 2008 at 2:08 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: Do you mean a JAR that you can just run, a la java -jar mywebapp.jar ? On Mon, Sep 15, 2008 at 5:25 PM, David Pollak [EMAIL PROTECTED] wrote: Folks, Has anyone built a Lift app that's deployable as a JAR file with Jetty

[Lift] Re: Massive Twitter Updates

2008-09-16 Thread David Pollak
You might ask this question on the GitHub list. Jorge Ortiz wrote: If you're following @liftweb on Twitter, I apologize for the massive updates tonight. It seems that whenever I merge changes from 'master' into 'scala-snapshot', all those commits get re-tweeted by Github. Anyone know if

[Lift] Re: snippets and html

2008-09-16 Thread David Pollak
Jorge Ortiz wrote: The mixinAttributes function is now in BindHelpers. Excellent! Thanks! --j On Fri, Aug 15, 2008 at 7:06 AM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Aug 14, 2008 at 10:42 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: The abstraction for it isn't baked

[Lift] Re: Dynamic form building powered by XML

2008-09-17 Thread David Pollak
You mean something like: https://www.lostlake.org/wizard.wmv On Wed, Sep 17, 2008 at 9:57 AM, Tim Perrett [EMAIL PROTECTED] wrote: Guys, Just been noodling a few things and one of them was how to create a process (kind of like Step 1, Step 2 etc) that can be variable? Some times I might

[Lift] Re: Deprecations / compilation failure on 0.10-SNAPSHOT

2008-09-17 Thread David Pollak
Kris, Jorge changed bind to accept the - stuff... please provide stand-along examples of -- working and - failing so he can do what he needs to do to fix up the code. Thanks, David On Wed, Sep 17, 2008 at 2:53 PM, Kris Nuttycombe [EMAIL PROTECTED]wrote: Hi, all, I noticed this in the

[Lift] Re: Further adventures in Webservices, or where do you hookup the dispatch function?

2008-09-17 Thread David Pollak
In your bootstrap/liftweb/Boot.scala file, put the following line: LiftRules.addDispatchAfter(RestAPI.dispatch) That'll hook things into the Lift HTTP handling mechanism. Alan Mortensen wrote: I finally got to the point where the code hits the compiler and I've hit a snag. Where do you put

[Lift] Re: bind and enumerations

2008-09-17 Thread David Pollak
var g: Can[Gender] = Empty SHtml.selectObj(Gender.elements.toList.map(v = (v, v.toString)), g, v = g = Full(v)) On Wed, Sep 17, 2008 at 7:33 PM, Charles F. Munat [EMAIL PROTECTED] wrote: I'm using an enumeration for Gender: @serializable object Gender extends Enumeration { type Gender

[Lift] Re: bind and enumerations

2008-09-18 Thread David Pollak
, user.nameFirst = _), username - SHtml.text(user.username, user.username = _), gender - SHtml.selectObj(Gender.elements.toList.map( v = (v, v.toString)), g, v = g = Full(v)), save - SHtml.submit(?(Save), doAdd) ) } David Pollak wrote: Please post the part of the code where you

[Lift] Re: Lift is replacing my Strict DTD with Transitional

2008-09-18 Thread David Pollak
What are the headers that are being sent to your browser? On Thu, Sep 18, 2008 at 6:25 AM, Tim Perrett [EMAIL PROTECTED] wrote: Interestingly, now the DTD is coming through properly the background of my body is all screwy (but in the static html it works fine). When the page is being served

[Lift] Re: Lift is replacing my Strict DTD with Transitional

2008-09-18 Thread David Pollak
browser are you having a problem with? Cheers Tim On Sep 18, 2:32 pm, David Pollak [EMAIL PROTECTED] wrote: What are the headers that are being sent to your browser? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: Lift is replacing my Strict DTD with Transitional

2008-09-18 Thread David Pollak
of ways in the html page markup, but it always crashed out. Is it not possible? I've not needed to do it up until now so have never tried... Is there a solution for this? Cheers Tim On Sep 18, 3:02 pm, David Pollak [EMAIL PROTECTED] wrote: On Thu, Sep 18, 2008 at 6:52 AM, Tim Perrett [EMAIL

[Lift] Re: Lift is replacing my Strict DTD with Transitional

2008-09-19 Thread David Pollak
I'll work on an example Tim Perrett wrote: Hmmm im not sure I follow. Let me be explicit: default.html div id=flight-plan class=non-repeatable-background lift:bind name=toppoint / /div ... div id=content lift:bind name=content / /div mypage.html lift:surround with=default

[Lift] Re: Lift is replacing my Strict DTD with Transitional

2008-09-19 Thread David Pollak
, but there is no corresponding bind point in the layout Cheers Tim On Sep 19, 5:03 pm, David Pollak [EMAIL PROTECTED] wrote: I'll work on an example -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http

[Lift] Re: JPA and enumerations

2008-09-19 Thread David Pollak
Rather than storing the Gender enumeration in the RDBMS, I'd suggest storing the Int value of the enumeration. @Column{val name=gender} var genderInt : Int = _ def gender: Gender = Gender(genderInt) def gender_=(what: Gender.Value) = Charles F. Munat wrote: I'm still

[Lift] Re: JPA and enumerations

2008-09-19 Thread David Pollak
it manually as you suggest. Thanks. Chas. David Pollak wrote: Rather than storing the Gender enumeration in the RDBMS, I'd suggest storing the Int value of the enumeration. @Column{val name=gender} var genderInt : Int = _ def gender: Gender = Gender(genderInt) def gender_

[Lift] Re: AbstractMethodError

2008-09-20 Thread David Pollak
Using Eclipse. If you're using Eclipse to compile your project, then you're using Scala 2.7.2-RC1/2 which has different method signatures than the version that Lift is compiled against: 2.7.1 So, please exit Eclipse, got into your project directory and type: mvn clean jetty:run and see if the

[Lift] Re: Source file encoding ...

2008-09-21 Thread David Pollak
know how to address this issue? --j On Sat, Sep 13, 2008 at 6:39 AM, David Pollak [EMAIL PROTECTED] wrote: Yeah... I get that. I figured it was part of Eric's tests. Marius wrote: Is anyone seeing this? IO error while decoding /media/WORK/marius/workspace/lift

[Lift] Re: Validations, Server side controls etc

2008-09-21 Thread David Pollak
Tim Perrett wrote: IMHO the form validation framework should work independently from any persistence related stuff ... +1 Right. The Record/Field stuff is not about persistence... it's about richer representation of data than String/Int/Long/Date. It's about the stuff that

[Lift] Ajax/JSON robustness, new menu features ** Breaking Changes **

2008-09-22 Thread David Pollak
Folks, I've radically enhanced the robustness of Lift's Ajax support. Previously, Lift's Ajax calls would silently fail and would not be retried. Now, Ajax calls are retried 3 times (tunable in LiftRules.ajaxRetryCount). The delay between calls is 2 ^ (cnt - 1) seconds. So, the first retry

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread David Pollak
the question/issue is... maybe it's just that I haven't had coffee yet and I'm going slow this morning. :-( Br's, Marius On Sep 23, 3:07 pm, David Pollak [EMAIL PROTECTED] wrote: On Tue, Sep 23, 2008 at 5:03 AM, Marius [EMAIL PROTECTED] wrote: Thoughts/comments on this? Br's

[Lift] Re: HTTP Client?

2008-09-23 Thread David Pollak
Tim, I like the work, but I tend not to like mutable data structures (stuff with properties that one sets.) I'd structure things such that the PayPal object's setters return a new, immutable instance of the PayPal object, so you're code would look like: val pp: PayPal = new

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread David Pollak
of your other code. Thanks, David Derek On Tue, Sep 23, 2008 at 9:41 AM, Oliver Lambert [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 24/09/2008, at 1:00 AM, David Pollak wrote: On Tue, Sep 23, 2008 at 7:26 AM, Oliver Lambert [EMAIL PROTECTED] mailto:[EMAIL PROTECTED

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread David Pollak
Charles F. Munat wrote: Oliver Lambert wrote: Do/should validations stop at the first error message on the field, at least by default? I much prefer that they do not. It really irritates me when I'm using an online form and it tells me that something is invalid, then I fix it,

[Lift] Re: not binding

2008-09-23 Thread David Pollak
If the error is occurring in the browser, it's because the menu:bind/ is not getting processed. So, what's the page source (the stuff that's getting delivered to the browser)? Charles F. Munat wrote: I'm still not clear on what causes this type of error: XML Parsing Error: prefix not

[Lift] Re: HTTP Client?

2008-09-24 Thread David Pollak
. As to Viktor's suggestion, having a bunch of builder methods on an object rather than an explicit constructor is the right way to go. e.g.: trait PayPal {} object PayPal { def apply(): PayPal = } Kris On Tue, Sep 23, 2008 at 7:46 PM, David Pollak [EMAIL PROTECTED] wrote: Tim, I

[Lift] Re: ExtLink not working

2008-09-24 Thread David Pollak
And how did you convert the Loc to an URL? Marius wrote: Looks to me like a bug. I mean it appears to render the random string generated instead of what createLink returns. Br's, Marius On Sep 24, 12:15 pm, Charles F. Munat [EMAIL PROTECTED] wrote: When I create an external link in

[Lift] Re: ExtLink not working

2008-09-24 Thread David Pollak
elements as do regular links. Your custom menu snippet was reaching into the Link and grabbing an internal data structure. I'm made the data structure private to avoid this issue. Chas. David Pollak wrote: And how did you convert the Loc to an URL? Marius wrote: Looks to me like

[Lift] Re: lift:surround and multiple templates

2008-09-24 Thread David Pollak
the error occurs. Chas. David Pollak wrote: There's an XML error in your admin template. Charles F. Munat wrote: I want to change the surrounding template depending on where in the site I am (and whether I'm logged in or not). I tried this: In templates-hidden I created

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-25 Thread David Pollak
Tim Perrett wrote: Hey guys, Just a quick issue (or what seems to be an issue) that i've come accross. If you do the following: SHtml.submit(Register, save) % (type - image) % (src - img/button- submit-registration.gif) For instance, it

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-25 Thread David Pollak
://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/ I was thinking something server-side so we can create appropriate HTML for the browsers. Derek On Thu, Sep 25, 2008 at 6:06 AM, David Pollak [EMAIL PROTECTED] wrote: Tim Perrett wrote: Hey guys, Just a quick issue (or what seems

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread David Pollak
On Fri, Sep 26, 2008 at 2:16 AM, Tim Perrett [EMAIL PROTECTED] wrote: Am I being dumb here - could we not just run some checks on the user- agent header and respond appropriately? It would be very cool if SHtml was browser aware. Yes... that's what I'm suggesting. Right now, I think the

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread David Pollak
else? Br's, Marius On Sep 26, 6:54 pm, David Pollak [EMAIL PROTECTED] wrote: On Fri, Sep 26, 2008 at 2:16 AM, Tim Perrett [EMAIL PROTECTED] wrote: Am I being dumb here - could we not just run some checks on the user- agent header and respond appropriately? It would

[Lift] Re: mysterious script

2008-09-26 Thread David Pollak
Charles F. Munat wrote: In my HTML output there is a script that begins: // ![CDATA[ var lift_ajaxQueue = []; var lift_ajaxInProcess = null; var lift_ajaxShowing = false; var lift_ajaxRetryCount = 3 Is there an easy way to make this download as a separate .js file instead of inline?

[Lift] Re: HTTP Client?

2008-09-29 Thread David Pollak
On Sep 24, 4:48 pm, David Pollak [EMAIL PROTECTED] wrote: Kris Nuttycombe wrote: If you're going to take that approach, why not just make the constructor or factory method ensure that the object is in a valid state to begin with? When I write immutable objects, they usually don't have

[Lift] Re: lift:surround and multiple templates

2008-09-29 Thread David Pollak
, Mateusz On Thu, Sep 25, 2008 at 9:38 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ah, ha! I knew it had to be something simple like that. Good to know that hidden-templates can't reuse the names of directories. Thanks! Chas. David Pollak

[Lift] Re: Weird RequestVar behavior (or something else?)

2008-09-29 Thread David Pollak
singletons instead. What other mechanisms exist to bind to Lift's lifecycle hooks? RequestVar does essentially what I need it to do in my hack, but relying upon the internal implementation of AnyVar makes me a little queasy. Kris On Mon, Sep 29, 2008 at 12:14 PM, David Pollak [EMAIL PROTECTED

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-29 Thread David Pollak
, Marius On Sep 26, 6:54 pm, David Pollak [EMAIL PROTECTED] wrote: On Fri, Sep 26, 2008 at 2:16 AM, Tim Perrett [EMAIL PROTECTED] wrote: Am I being dumb here - could we not just run some checks on the user- agent header and respond appropriately? It would be very

[Lift] Re: Weird RequestVar behavior (or something else?)

2008-09-29 Thread David Pollak
. Kris On Mon, Sep 29, 2008 at 2:12 PM, David Pollak [EMAIL PROTECTED] wrote: Kris, If your goal is to have some cleanup function added at the end of the request, you can do the following: trait Cleanable {def cleanup: Unit} class MyStuff { var needsCleanup: Can[Cleanable] = Empty

[Lift] Re: HTTP Client?

2008-09-29 Thread David Pollak
On Mon, Sep 29, 2008 at 3:52 PM, Tim Perrett [EMAIL PROTECTED] wrote: Hmmm... I may be misunderstanding what you're saying... but... In the PayPal landing, I'd update the user's state (e.g., credit their account), add something to S.notices and then redirect the browser to either / or

[Lift] Re: HTTP Client?

2008-09-29 Thread David Pollak
On Mon, Sep 29, 2008 at 4:07 PM, Tim Perrett [EMAIL PROTECTED] wrote: Do you mean PayPal's servers make an HTTP request on your server? Or do you mean that the user's browser is redirected from PayPal's site to your site? Of course - PayPal makes a post to our server with all the

[Lift] Re: LiftRules.useXhtmlMimeType got lost...

2008-09-30 Thread David Pollak
On Tue, Sep 30, 2008 at 7:15 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: No comments? No time to comment... I try to comment later this week. :-( On Sat, Sep 27, 2008 at 7:51 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Back in this commit:

[Lift] Re: mysterious script

2008-09-30 Thread David Pollak
Lift's changed up to send stuff via separate files rather than inline on the page. On Fri, Sep 26, 2008 at 2:40 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Daniel Green wrote: Is there an easy way to make this download as a separate .js file instead of inline? Or to suppress it if I'm

[Lift] Please Welcome Al Thompson to the Lift committers

2008-10-02 Thread David Pollak
Folks, I've know Al Thompson for longer than any of the other Lift committers. Cast you mind back to '97... I was doing crazy things with browser-based, multi-user spreadsheets. Al was my technical liaison at Sun. Now I'm doing Lift. Al is joining the Scala and Lift communities. He's offered

[Lift] Re: Todays questions

2008-10-02 Thread David Pollak
On Thu, Oct 2, 2008 at 5:13 PM, Oliver [EMAIL PROTECTED] wrote: I'm writing a wizard-like process, where when they have finished the set of forms and press submit I don't want the back button to take them back. Is there any way I can clear out the history? This is JavaScript magic and I'm

[Lift] Re: Todays questions

2008-10-03 Thread David Pollak
., disabling submit buttons). - GC'ed... These will stay around for a period of time and a certain number of page requests. - Long-lived... JSON related and Comet related. cheers Oliver On Fri, Oct 3, 2008 at 10:15 AM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008

[Lift] Re: booleans in fieldOrder cause infinite list?

2008-10-04 Thread David Pollak
in List(a,b,c) It usually doesn't matter, but the compiler isn't great at finding the common trait among the c and b elements and chooses things like Object Chas. David Pollak wrote: Charles, Try: override def fieldOrder = List(id, name, desc, isArchived) Sometimes the type

[Lift] Re: Simple Build Tool

2008-10-05 Thread David Pollak
On Sun, Oct 5, 2008 at 10:59 AM, Tim Perrett [EMAIL PROTECTED] wrote: Guys, Check this out: http://code.google.com/p/simple-build-tool/ It appeared a couple of days ago - im wondering if its something we could customize to make starting lift projects easier? Its all written in scala so

[Lift] Re: expired sessions and log in

2008-10-05 Thread David Pollak
See net.liftweb.mapper.ProtoExtendedSession This does not address the issue of the opaque identifiers used to map from form fields to functions. On Sun, Oct 5, 2008 at 1:02 PM, Tim Perrett [EMAIL PROTECTED] wrote: Indeed - me and Ty were just talking about this incidentally, and there is no

[Lift] Re: Db4o Integration

2008-10-05 Thread David Pollak
with correct implementations. Looking at how newbies approach Lift will help us make Lift more approachable. On Oct 5, 10:16 am, efleming969 [EMAIL PROTECTED] wrote: @david thanks, that did the trick. On Oct 3, 12:51 pm, David Pollak [EMAIL PROTECTED] wrote: def myUnloader(): Unit

[Lift] Re: Db4o Integration

2008-10-05 Thread David Pollak
On Sun, Oct 5, 2008 at 8:16 AM, efleming969 [EMAIL PROTECTED] wrote: @david thanks, that did the trick. Great... did you add this to the Lift wiki? :-) On Oct 3, 12:51 pm, David Pollak [EMAIL PROTECTED] wrote: def myUnloader(): Unit = { ... run when Lift is being unloaded

[Lift] Re: expired sessions and log in

2008-10-05 Thread David Pollak
names and using S.param to decode the incoming POST. :-( Chas. David Pollak wrote: See net.liftweb.mapper.ProtoExtendedSession This does not address the issue of the opaque identifiers used to map from form fields to functions. On Sun, Oct 5, 2008 at 1:02 PM, Tim Perrett [EMAIL

[Lift] Re: Db4o Integration

2008-10-06 Thread David Pollak
efleming969 wrote: I saw that syntax on a blog a few days ago, but I did not try it with version 7.6. The db4o team has been really dedicated to C# and LINQ in the past few versions, to I would image the library will become more friendly to languageas like Scala. Unfortunately, DB4O's

[Lift] Re: expired sessions and log in

2008-10-06 Thread David Pollak
that. Chas. David Pollak wrote: TylerWeir wrote: Charles, can you implement something like the auto-saving feature of GoogleDocs/GMail? I really like this idea. I'm going to noodle on a way to make it a part of Lift... basically an form that periodically serializes from browser

[Lift] Welcome Derek to the Lift committers

2008-10-06 Thread David Pollak
Folks, Derek Chen-Becker has just joined the Lift committers. One might ask What took so long? Derek's been an awesome contributor to the Lift community for more than a year and it's good to see that he's going to be contributing the the Lift codebase. Woo Hoo and Welcome. Thanks, David --

[Lift] Re: Question about Menu.scala

2008-10-06 Thread David Pollak
On Mon, Oct 6, 2008 at 5:26 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Can anyone explain to me what this line: loc - request.location.toList if loc.name != name; It excludes the link from being generated if it's the current page. is doing in this code: def item(text: NodeSeq):

[Lift] Re: lift-webkit 0.10-SNAPSHOT

2008-10-08 Thread David Pollak
Oliver wrote: When's this likely to be 0.10 and stable? Likely another month or two. When it's stable, the next version is going to be RC-1... so we're making a ton of breaking changes now. cheers Oliver --~--~-~--~~~---~--~~ You received this message

[Lift] Re: A coupel of quick questions

2008-10-08 Thread David Pollak
On Tue, Oct 7, 2008 at 1:28 PM, Charles F. Munat [EMAIL PROTECTED] wrote: What is the benefit of the Dispatch Snippet over the Snippet? When would I use one and when the other? If you're cool with looking up the snippet by class/method name use the plain old snippet. If you want some

[Lift] Re: NetBeans and complex parser combinator files

2008-10-09 Thread David Pollak
stuff is continuously being pushed through pieces of the compiler. On Wed, Oct 8, 2008 at 1:21 PM, David Pollak [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Folks, I've been using NetBean pretty successfully... except for projects that refer to complex parser

[Lift] Re: A coupel of quick questions

2008-10-09 Thread David Pollak
] = Page.findAll(PageSection.page, this.id) Page.findAll(By(PageSection.page, this.id)) You could also do: Page.findAll(By(PageSection.page, this.id), OrderBy(PageSection.page, Ascending)) ^ ?? Chas. David Pollak wrote: On Tue, Oct 7, 2008 at 1:28 PM, Charles

[Lift] Re: lift-paypal module

2008-10-09 Thread David Pollak
There are two projects I'm working on that will use the PayPal module in the next month as well. Rock and Roll! Charles F. Munat wrote: Of course I'll be happy to pass along suggestions, bugs I find, etc. This is a good opportunity to get something like this into the wild, as this is a

[Lift] Re: CometActor and JQuery Effects

2008-10-10 Thread David Pollak
Mrinal, Do you mean when the page is initially rendered or do you mean on updates? If you mean on updates, see the partialUpdate(js: JsCmd) method on CometActor: http://scala-tools.org/mvnsites/liftweb/lift-webkit/scaladocs/net/liftweb/http/CometActor.html You can send arbitrary JavaScript to

[Lift] Re: SnippetFailure

2008-10-10 Thread David Pollak
You have to define a package for Category.scala On Fri, Oct 10, 2008 at 4:00 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Thanks, Derek. Actually, I don't use .html or even add (all my html files are called index.html -- I use directories to sort them). This error came when I was

[Lift] Re: Workaround for Null pointer exception

2008-10-11 Thread David Pollak
Tim, When post is null or the responseBody is null, then you're going to get this problem. I'd make the line: lazy val reader: BufferedReader ... That way, the getResponseBodyAsStream method is called when the reader is used, rather than when the instance is created. Thanks, David On Sat,

[Lift] Re: Workaround for Null pointer exception

2008-10-11 Thread David Pollak
It's very doubtful that a subclass is causing the constructor on its superclass to be called twice. But, if you're using the immutable pattern, you're creating two instances of a given class. Try my original suggestion of making the val into a lazy val. That way, it will be constructed only

[Lift] Re: Workaround for Null pointer exception

2008-10-12 Thread David Pollak
On Sun, Oct 12, 2008 at 3:00 AM, Tim Perrett [EMAIL PROTECTED] wrote: I tried the lazy val but that didnt work :( I've pasted it onto GIST: http://gist.github.com/16384 - what are your thoughts? My gut feeling is that i need to re-factor PaypalResponse as its become too mutable; im just not

[Lift] Re: Workaround for Null pointer exception

2008-10-12 Thread David Pollak
On Sun, Oct 12, 2008 at 12:53 PM, Tim Perrett [EMAIL PROTECTED] wrote: The InputStream should be read by a factory which creates the response objects. Those response objects are immutable. That was going to be my next step - what your effectivly saying is that you have a singleton to

[Lift] Updates to sitemap.Loc

2008-10-13 Thread David Pollak
Folks, I'm made a ton of updates to sitemap.Loc. If you're using sitemap generically, these changes will not impact you. However, there are a bunch of new features: - Loc is type-safe in terms of parameters... they're not just name-value pairs - Links and Text for a given Loc can be

[Lift] Re: Updates to sitemap.Loc

2008-10-13 Thread David Pollak
On Mon, Oct 13, 2008 at 1:32 PM, Tim Perrett [EMAIL PROTECTED] wrote: Awesome stuff David! - Locs can have page-specific snippets that take as their parameter the parameter generated by the Loc during URL re-writing Out of interest, is this element of implementation useful for the

[Lift] Re: Menu Builder active element

2008-10-14 Thread David Pollak
Bjarte, What version of Lift are you using? In the current trunk-head (0.10-SNAPSHOT, which I would strongly encourage using), you can do: lift:Menu.builder li_item:class=foo li_path:class=bar / And the class of the current menu item will be foo and the class of the li's that are in the

[Lift] Re: Configuring a lift webapp for https?

2008-10-14 Thread David Pollak
Kris, You should be able to run Lift as a Servlet rather than a filter by specifying the net.liftweb.http.LiftServlet in your web.xml file. Try this... if it doesn't work, it's a bug in Lift. Thanks, David On Mon, Oct 13, 2008 at 7:49 PM, Kris Nuttycombe [EMAIL PROTECTED]wrote: Hi, all,

[Lift] Please welcome Kris Nuttycombe as a Lift committer

2008-10-14 Thread David Pollak
Folks, I pleased to announce that Kris Nuttycombe has joined the Lift committers. Please join me in welcoming him! Thanks, David -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some:

[Lift] Re: A stupid question

2008-10-14 Thread David Pollak
You mean something like: S.uri: String S.request.map(_.uri): Can[String] Charles F. Munat wrote: I must be very dense, but these cans are kicking my butt (kicking my can?). No matter what I do, I seem to end up with everything back in the can! I just... want... to get... the goodies...

[Lift] Re: A stupid question

2008-10-15 Thread David Pollak
Please also see: http://blog.lostlake.org/index.php?/archives/50-The-Scala-Option-class-and-how-lift-uses-it.html Can[T] is just like Option[T] Marius wrote: to get stuff out of a can you can do: 1. Pattern matching having c a Can[String] c match { case Full(value) = //do something

[Lift] Re: A stupid question

2008-10-15 Thread David Pollak
point the light bulb will come on and this will seem easy. I'll read the blog post. Chas. David Pollak wrote: Please also see: http://blog.lostlake.org/index.php?/archives/50-The-Scala-Option-class-and-how-lift-uses-it.html Can[T] is just like Option[T] Marius wrote: to get stuff

  1   2   3   4   5   6   7   8   9   10   >