[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-27 Thread Marc Boschma
Your right... I've been thinking about that and how the current mapper only does the regex check.. could always override the validate method... Marc On 27/08/2009, at 6:39 PM, Viktor Klang wrote: > > > On Thu, Aug 27, 2009 at 10:27 AM, Marc Boschma > wrote: > Personally I

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-27 Thread Marc Boschma
Personally I use: "^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-] +)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01- \x09\x0b\x0c\x0e-\x7f])*")@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a- z0-9](?:[a-z0-9-]*[a-z0-9])?$" Marc On 27/08/2009, at 9:32 AM, David Pol

[Lift] Re: Multiple sites, same login

2009-08-27 Thread Marc Boschma
Maybe https://opensso.dev.java.net/ might be of interest? Might also be a bit of work... Marc On 26/08/2009, at 2:53 AM, Charles F. Munat wrote: > > Now this is an interesting idea. I'll think about it... > > Thanks! > > Chas. > > David Pollak wrote: >> >> >> On Mon, Aug 24, 2009 at 3:23 PM,

[Lift] Re: ws-generated code in lift

2009-08-18 Thread Marc Boschma
So I assume XMPP and AMQP would be other sinks / sources? If so the mind is boggling with old ideas laid to rest for some time... A thought that comes to mind is that of a source and sink are of the same type, eg. AMQP, would the interconnection make use of that technologies underlying impl

[Lift] Re: Anyone tried to use Velocity with scala/lift?

2009-07-09 Thread Marc Boschma
I think your right - see http://www.scala-lang.org/docu/files/api/scala/reflect/BeanProperty.html and http://scala.sygneca.com/code/defining-bean-properties for how to add the annotations to the classes for Velocity to be able to see the properties... Marc On 10/07/2009, at 3:04 AM, Ewan wro

[Lift] Re: Pagination in lift?

2009-06-28 Thread Marc Boschma
See the Lift book (http://tinyurl.com/mta3h5), section 6.1.10 & 6.1.8 which discusses pagination with Mapper... Marc On 29/06/2009, at 5:44 AM, Naftoli Gugenhem wrote: > > Does lift have built in support for pagination -- breaking up a > query and continuing it across multiple pages, and cl

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
Sleeping on it the snippet would be as simple as def group(c : scala.xml.NodeSeq) : scala.xml.NodeSeq = scala.xml.Group(c) which would allow for: Welcome Put welcome details here The advantage is that it is in the lift name space... Marc On 25/06/2009, at 8:59 PM, Marc Boschma

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
Wouldn't this work with the Scala XML parser? Welcome Put welcome details here. On 25/06/2009, at 1:08 AM, Nolan Darilek wrote: > > On 06/24/2009 09:40 AM, Derek Chen-Becker wrote: >> Wait a second. I have plenty of templates that have multiple elements >> in them. What exactly is the problem

[Lift] Re: Jetty and Apache

2009-06-21 Thread Marc Boschma
I must admit I am grappling with this at the moment (in my spare time). I have a VPS with ngix installed, scala etc... but have no background on running up a 'production' instance of a JEE stack. Especially in a resource constrained environment like a VPS. I also got 'distracted' with OSGi

[Lift] Re: The Lift 1.1 list

2009-04-03 Thread Marc Boschma
I have been reading up on OSGi with some discipline it could allow Erlang like live upgrades (also nice to not have to shutdown a JVM, so +1. I'm curious on the Portlet support - is that embedding portlets in snippets and/or creating portlets (rather than servlets)? Marc On 02/04/2009, at

[Lift] Re: Ticket #19 (mail and character encoding)

2009-03-17 Thread Marc Boschma
It depends upon what is meant by "plain". According to RFC 2045 (5.2) the default character encoding for a non-MIME message is us-ascii and the transfer encoding would be 7bit. Given that I think we are speaking of MIME encoded messages I think that the default of UTF-8 is ok in a lift conte

[Lift] Re: XML unescaping

2009-03-16 Thread Marc Boschma
a few > floating around for Java that will parse poorly formed HTML) and > then walk the nodes and build XML. I would argue that this would > satisfy any contractual requirements, although I no longer practice > law, so I can't argue it on your behalf. :-) > > > > Cheers > J

[Lift] Re: XML unescaping

2009-03-16 Thread Marc Boschma
On 17/03/2009, at 12:36 PM, Jeremy Mawson wrote: > If I change the line to "description" -> > {Unparsed(result.description)}, it compiles but I have > an unwanted span tag and worse ... if result.description is not well > formed XML my page will fail to render! Firefox complains of an XML

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread Marc Boschma
s. ie. does ç work instead of ç ? If so then that is probably what is happening on this issue. > > > Chas. > > Marc Boschma wrote: >> Now I have some breakfast in me, to be clear it appears that UTF-8 >> byte >> stream is being interpreted as Latin1 and t

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread Marc Boschma
Now I have some breakfast in me, to be clear it appears that UTF-8 byte stream is being interpreted as Latin1 and then converted to unicode... Marc On 16/03/2009, at 6:25 AM, Marc Boschma wrote: > excuse the typo: > On 16/03/2009, at 6:23 AM, Marc Boschma wrote: > >> Just

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread Marc Boschma
excuse the typo: On 16/03/2009, at 6:23 AM, Marc Boschma wrote: > Just looking at http://jeppesn.dk/utf-8.html , I found the following > lines: > Character Latin1 Unicode UTF-8 Latin1 > code

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread Marc Boschma
Just looking at http://jeppesn.dk/utf-8.html , I found the following lines: Character Latin1 Unicode UTF-8 Latin1 codeinterpr. ç E7 00 E7 C3 A7 ç à is C38C, § is C2

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-14 Thread Marc Boschma
Which parser are you using? Quick tests with PCDataXmlParser seems to indicate all ç get mapped to the unicode character. In fact it does that for all entities in object HtmlEntities (line 26 onwards in lift-util/src/main/scala/ net/liftweb/util/PCDataMarkupParser.scala) If I enter the ç in

[Lift] Re: Why does HelloWorld index.html contain a snippet rather than a complete XHTML page?

2009-03-14 Thread Marc Boschma
Apologies for the poor wording, but David got the right interpretation Marc On 14/03/2009, at 6:57 PM, David Pollak wrote: > index.html is well formed XML... in fact all the "html" files that > Lift reads must be well formed. You may choose to include XML > header information in your

[Lift] Re: Why does HelloWorld index.html contain a snippet rather than a complete XHTML page?

2009-03-13 Thread Marc Boschma
Hi Mal, That aspect of the lift templating approach also warped my head for a while, having seen so many examples of the opposite approach (PHP, JSP, etc)... There is a certain part of me that still is unsettled about it, but I can see the advantages of it. Marc Ps. can the files such as

[Lift] Re: Removing xmlns:lift="http://liftweb.net/" in rendered page

2009-02-27 Thread Marc Boschma
I think what Ross is asking for isn't necessarily a bad thing for a given page which doesn't actually use the lift namespace after all processing has occurred. Think of it in a more general sense: how do I filter any namespace that isn't actually present in the result XML? This is actually a

[Lift] Re: Build problems...

2009-02-17 Thread Marc Boschma
Yep on the pull and even deleting the entire directory structure and a clone... Same result. Marc On 17/02/2009, at 8:21 PM, Tim Perrett wrote: > > I'm not at my mac right now, but as of last night it was compilling > fine on mac with the very latest master. > > What version of maven are you

Re: [maven-and-scala] [Lift] Build problems...

2009-02-17 Thread Marc Boschma
It does sound like a command length issue... here are some environmental info Mac:~ marc$ mvn -v Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.6" arch: "i386" Family: "unix" Mac:~ marc$ which scala /usr/local/bin/scala Mac:~ marc$ scala -version Scala code ru

Re: [maven-and-scala] [Lift] Build problems...

2009-02-16 Thread Marc Boschma
On 17/02/2009, at 3:35 PM, Josh Suereth wrote: > Hm All the integration tests pass, perhaps you should try > using the new maven-scala plugin (run mvn install on the maven-scala- > plugin directory). You do *not* want to clear your .m2 directory > after doing so. Then see if the n

Re: [maven-and-scala] [Lift] Build problems...

2009-02-16 Thread Marc Boschma
On 17/02/2009, at 3:18 PM, Josh Suereth wrote: > Marc, Also try running the scalac command directly. Here's what > Maven is trying to run on your machine: The result is: Mac:liftweb marc$ sh cmd cmd: line 1: 10785 Segmentation fault /System/Library/Frameworks/ JavaVM.framework/Versions

[Lift] Re: Getting the "file" out of a Put Request..

2009-02-16 Thread Marc Boschma
Cool. That will make WebDAV and CalDAV support easier :) On 17/02/2009, at 10:38 AM, David Pollak wrote: > > > On Mon, Feb 16, 2009 at 3:34 PM, Alan M > wrote: > I'm using maven for builds.. on .11-SNAPSHOT.. will this go there or > will I have to switch over to building my own? > > It'll get

[Lift] Build problems...

2009-02-10 Thread Marc Boschma
I just removed my maven repository in ~/.m2 , "git clone git:// github.com/dpp/liftweb.git" and Mac:liftweb marc$ mvn -e -U clean install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Lift [INFO] Lift Utils [INFO] Lift WebKit [INFO]

[Lift] Re: ** breaking change **

2009-01-25 Thread Marc Boschma
Would the same key appear if there where resource bundles for different variations of the same language. eg. 'en-AU', 'en-US', 'en- ZA', and 'en' ? Marc On 26/01/2009, at 4:46 AM, Marius wrote: > If you have the same key in different files the first one found will > be returned. Nevertheless

[Lift] Re: Heartbeat

2009-01-21 Thread Marc Boschma
Not from me... can the period be configurable or turned off it desired? eg. the server could ask the client to back off if needed? Do I read between the lines the heartbeat could be independent of comet? if so how would it work? Marc On 22/01/2009, at 10:52 AM, David Pollak wrote: > Folks, >

[Lift] Re: demo.liftweb.net gone? bad news from Google...

2009-01-18 Thread Marc Boschma
or so, and I need > whatever I use to just work. > > (That said, I've got some older sites I want to convert over and they > use Markdown, so I'd like to stick with it there no matter what.) > > Keep me posted, please. And if you need testing, let me know. > > Does

[Lift] demo.liftweb.net gone? bad news from Google...

2009-01-18 Thread Marc Boschma
Hey Chas, why the move from Markdown to Textile? (in the midst of implementing Markdown parser in scala...) Marc On 19/01/2009, at 11:57 AM, Charles F. Munat wrote: > > I was trying to find something on the wiki about Textile as I'm > considering changing over from Markdown. I used Google to

[Lift] Re: Suggested change to HeadHelpers.scala

2009-01-16 Thread Marc Boschma
ndense into one for performance reasons. > > I'll keep in mind the requirement for only 1 tag per head > and I'll likely hardcode that rule. > > Thanks, > > Davod > > On Fri, Jan 16, 2009 at 2:57 PM, Marc Boschma +lift...@boschma.cx> wrote: > I have b

[Lift] Suggested change to HeadHelpers.scala

2009-01-16 Thread Marc Boschma
I have been playing with templates and noticed that it is possible to accumulate multiple tags in the tag, which isn't compliant to XHTML. Here is a suggested patch which merges the tags space separating them... That should allow templates to progressively add to the title. I had consider

[Lift] Re: Writing data to the HttpServletResponse

2009-01-10 Thread Marc Boschma
I'm not an expert but I would model a Response class in much the same way as: package net.liftweb.http object PlainTextResponse { def apply(text: String): PlainTextResponse = PlainTextResponse(text, Nil, 200) def apply(text: String, code: Int): PlainTextResponse = PlainText

[Lift] AppTest.scala in lift-archetype-basic

2009-01-09 Thread Marc Boschma
I've just noticed that the test in AppTest.scala for XML and XHTML etc doesn't take into account Html entities... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to li

Re: Build problem. Was: [Lift] accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-09 Thread Marc Boschma
ug :D >> >>> Hmmm... that'd suck. >> >> Oh yeah big time ... If indeed my assumption is correct (which I need >> to verify) I'll open a compiler bug and see if I can fix it. Worst >> case scenario rollback ... which I hope it won't be the case. >&g

Build problem. Was: Re: [Lift] Re: accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-08 Thread Marc Boschma
its IMHO should be motivated byt strong design > rationales and I think this is the case. > > Thoughts? > > Very cool! > > > > Br's, > Marius > > On Jan 7, 7:40 pm, Marius wrote: > > I'll look into it. > > > > On Jan 7, 7:38 pm

[Lift] Re: accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-06 Thread Marc Boschma
re > > > > > > current node at the head of the list. If you're doing > hierarchical > > > > > binding, > > > > > > you can see all the nodes that were passed into bind this > was. > > > > > > > > currentNod

[Lift] Re: accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-06 Thread Marc Boschma
ram { def calcValue(in: NodeSeq): NodeSeq = value(in.prefix, in.label, in.child) } etc... On 06/01/2009, at 10:51 PM, Marc Boschma wrote: > > (you can tel I'm sleeping well :/ - too hot) > > The toList function is one of David's (todo example app). I do love > the abi

[Lift] Re: accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-06 Thread Marc Boschma
(you can tel I'm sleeping well :/ - too hot) The toList function is one of David's (todo example app). I do love the ability to curry :) Marc On 06/01/2009, at 9:51 PM, Marius wrote: > > > > On Jan 6, 12:47 pm, Marc Boschma wrote: >> A quick just before going

[Lift] Re: accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-06 Thread Marc Boschma
u still can not access the param attribute below >> >> >> >> but you can do it like: >> >> >> >> and you have full access to the meta node as it is a child of >> todo:exclude. Hence you can pass state. >> >> I know, it is not ideal bu

[Lift] accessing the attributes of the XML node associated with a FuncBindParam in bind(...)

2009-01-05 Thread Marc Boschma
I have been playing with the ToDo example application and having fun in manipulating XML. With the node I thought it would be good if the XHTML designer could pass in some guidance to the doList(...) method used in bind(..). ie. ... Looking over the bind code I noticed that the attributes

[Lift] Re: Can or Box or something else

2008-12-26 Thread Marc Boschma
Funny thing is the first thought that came to mind here was a Cricket Box :) (and not the KFC variety) To close the season and thread with some humour: I wanted to send some sort of Christmas (whoops I mean) holiday greeting to my friends, but it is so difficult in today's world to know ex

[Lift] Re: Can or Box or something else

2008-12-25 Thread Marc Boschma
I know David has resigned to keeping 'Can', but wouldn't 'Jar' be an alternative? That way Empty and Full still make sense... Initially I thought 'Tin' sounded better but I recognise that term wouldn't be as universal. Marc On 26/12/2008, at 4:14 AM, Michael Campbell wrote: > > David Polla

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
- "It lives!!!" Strange how mvn archetype:generate didn't work... On 24/12/2008, at 3:25 PM, David Pollak wrote: > Are you behind some sort of proxy that has some old jars cached? > > > On Dec 23, 2008 6:53 PM, "Marc Boschma" > wrote: > > Yep,

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
/12/2008, at 1:28 PM, David Pollak wrote: > Please make sure you're running maven 2.0.9 > > > On Dec 23, 2008 6:09 PM, "Marc Boschma" > wrote: > > There is something seriously wrong with my Mac's set up... Google > time... as despite the reference to the

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
There is something seriously wrong with my Mac's set up... Google time... as despite the reference to the right repository it ignores that... Marc On 24/12/2008, at 10:04 AM, David Pollak wrote: > The line: > > -DremoteRepositories=http://scala-tools.org/repo-releases \ > > Should be

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
assume others can... My maven version is: Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.6" arch: "i386" Family: "unix" Time for Breakie I think... Marc On 24/12/2008, at 9:18 AM, David Pollak wrote: > Looks like you ha

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
: > Marc, > > Does the pom.xml file refer to Lift 0.9 or 0.10-SNAPSHOT? > > Thanks, > > David > > On Tue, Dec 23, 2008 at 2:00 PM, Marc Boschma +lift...@boschma.cx> wrote: > I was just trying out the Little Lift example and noticed that the > archetype:generate

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
I was just trying out the Little Lift example and noticed that the archetype:generate lift-archetype-basic created an old pom.xml and Boot.scala that was pre the changes that removed LiftRules.addTemplateBefore(User.templates) and S.addArround(User.requestLoans) lines of Boot.scala... Is t

[Lift] Re: liftweb xml schema location

2008-12-17 Thread Marc Boschma
Maybe Oliver is being a bit lose with the language and is looking for the /lift/ DTD (Document Type Definition) ? Marc On 18/12/2008, at 4:05 AM, Viktor Klang wrote: > Ah, I read "I have a client doesn't want an external link like > xmlns:lift="http://liftweb.net/""; > > If you're only talk

[Lift] Re: HTTP Client?

2008-09-26 Thread Marc Boschma
Given Lift's focus on security I envisioned that the POST URL would contain a random element, to reduce the threat of fake PayPal interactions. It is a small risk, but then it is the small risks that usually allow a hacker in, eventually. David said there was support for per session dispatc

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

2008-09-11 Thread Marc Boschma
My current understanding is that Lift is a snippet rather than page oriented framework. SiteMap focuses on access or not to page level. Thinking about this overnight it sounds like we need some way to inform a snippet of who is trying to interact with it and what rights they have is needed.

[Lift] Netbeans & /lift/

2008-08-31 Thread Marc Boschma
Hi, I've been playing with Netbeans + Scala plug-in, and now just starting to consider /lift/ as well... From what I can tell (googling) it is still necessary to create a maven /lift/ project by hand (command line) and then open that in Netbeans... is that correct? Ideally it would be ni