[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 marc+lift...@boschma.cx wrote: Personally I

[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

[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

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
Wouldn't this work with the Scala XML parser? xml:group h2Welcome/h2 pPut welcome details here./p /xml:group 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

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
/2009, at 8:59 PM, Marc Boschma wrote: Wouldn't this work with the Scala XML parser? xml:group h2Welcome/h2 pPut welcome details here./p /xml:group On 25/06/2009, at 1:08 AM, Nolan Darilek wrote: --~--~-~--~~~---~--~~ You received this message because you

[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

[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 - span{Unparsed(result.description)}/span, 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

[Lift] Re: XML unescaping

2009-03-16 Thread Marc Boschma
(there are 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 Jeremy 2009/3/17 Marc

[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

[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 codeinterpr. ç

[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 looking at http

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

2009-03-15 Thread Marc Boschma
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 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 looking

[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: 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 ccedil; 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

[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

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 runner

[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

[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 alan.morten...@gmail.com wrote: I'm using maven for builds.. on .11-SNAPSHOT.. will this go there or will I have to switch over to building my

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/

[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] 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: demo.liftweb.net gone? bad news from Google...

2009-01-18 Thread Marc Boschma
. And if you need testing, let me know. Does this help? Chas. Marc Boschma wrote: 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

[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 title/ tags in the head/ tag, which isn't compliant to XHTML. Here is a suggested patch which merges the title/ tags space separating them... That should allow templates to progressively add to the

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

2009-01-09 Thread Marc Boschma
and see if I can fix it. Worst case scenario rollback ... which I hope it won't be the case. In my tests I used similar examples as you did and worked with no problems. But I did not test with latest changed. Br's, Marius On Jan 9, 10:35 am, Marc Boschma marc+lift...@boschma.cxmarc %2blift

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
and over? Thanks, David On Tue, Jan 6, 2009 at 9:57 PM, Marc Boschma marc+lift...@boschma.cxmarc%2blift...@boschma.cx wrote: Cool code! Works nicely... Would it make sense to also add something similar to this from S.attr ? def apply[T](what: String, f: String

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

2009-01-06 Thread Marc Boschma
until snippet child- node attributes are exposed in one way or another. Br's, Marius Marc Boschma wrote: I have been playing with the ToDo example application and having fun in manipulating XML. With the todo:list/ node I thought it would be good if the XHTML designer could pass in some

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

2009-01-06 Thread Marc Boschma
= 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 ability to curry :) Marc On 06/01/2009, at 9:51 PM, Marius wrote

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

2009-01-06 Thread Marc Boschma
inspect attributes to your heart's content. Give it an hour or two for these changes to make their way through Hudson. Thanks, David On Tue, Jan 6, 2009 at 4:50 AM, Marc Boschma marc+lift...@boschma.cx marc%2blift...@boschma.cx marc%2blift

[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 todo:list/ node I thought it would be good if the XHTML designer could pass in some guidance to the doList(...) method used in bind(..). ie. todo:list singular=true.../todo:list Looking over

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

[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

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
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 have a very old archetype that's refering to Scala 2.7.1 On Dec 23, 2008 2:15 PM, Marc Boschma marc+lift...@boschma.cx wrote: It refers to 0.10

[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
sure you're running maven 2.0.9 On Dec 23, 2008 6:09 PM, Marc Boschma marc+lift...@boschma.cx wrote: 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

[Lift] Re: todo_steps feedback

2008-12-23 Thread Marc Boschma
, 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 marc+lift...@boschma.cx wrote: Yep, checked that one... Pro:src marc$ mvn -version Maven version: 2.0.9 Java version: 1.5.0_16 OS name: mac os x version: 10.5.6

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

[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