Re: [Lift] Sending malformed HTML in custom dispatch

2009-12-26 Thread Ross Mellgren
You can use a standard xml-style response, but use Unparsed to embed unparsed (and possibly malformatted) XML as a string. -Ross On Dec 26, 2009, at 12:53 AM, tommycli wrote: I'm using custom dispatch (to handle both XML media files). Often, I will want to send a page that contains

[Lift] Re: Lift is awesome (with reservations)

2009-12-26 Thread Marius
While I admit that there is not yet enough documentation material or at least probably not in a single place I disagree with some complaints. The Lift book for example describes in quite detail that request processing lifecycle, disspath functions, rendering pipeline, LiftRules, S, SHtml,

[Lift] Re: Sending malformed HTML in custom dispatch

2009-12-26 Thread Marius
You can implement your own response by extending LiftResponse, such as: case class RiskyHtmlResponse(text: String, headers: List[(String, String)], code: Int) extends LiftResponse { def toResponse = { val bytes = text.getBytes(UTF-8) InMemoryResponse(bytes, (Content-Length,

[Lift] Re: Mapper validation workflow thoughts

2009-12-26 Thread Marius
I would actaully use: var inputString: Box[String] = Empty . However I'm not sure if toForm should be implemented like that. I'd rather let the refinements to decide when to render the inputString or the actual value. But it's an implementation detail mostly I think that we should apply this

[Lift] Re: Lift is awesome (with reservations)

2009-12-26 Thread greekscala
Hello, It would be great to see some more bind examples in more complex scenarios and how different snippets can work together. How to build fragments and replace fragments for ajax. I think the people that do a lot with lift have some patterns for this. Are there any Idioms out. This is my

[Lift] Re: Lift is awesome (with reservations)

2009-12-26 Thread Marius
Great stuff. Could you please describe more complex scenarios ? I mean let's start from some step-by-step use-case/workflow definitions that you're looking for and we'll try to provide different approaches, and potentially put them on the wiki for future reference. Br's, Marius On Dec 26, 6:27 

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-26 Thread David Flemström
On Saturday 26 December 2009 15:30:34 Marius wrote: So I believe it is much more constructive for ALL of us to ask concrete questions, described concrete problems and let's see how we can fix it. Many things though may be subjective and leading to endless discussions without substance. OK,

[Lift] source of working demo of Lift+JPA on google app engine

2009-12-26 Thread qingshan
Hi, I am a new Lifter just came from Grails world (with 6 months experiences with Grails + GAE playing a couple of toy apps). Because Grails (even the latest release of v1.2) does not really support GAE, or precisely only semi support, as said at google site, I look for a new framework has better

[Lift] guid - function mapping not occuring for ajax generator rendered by CometActor

2009-12-26 Thread ChrisX
Hi guys, I've recently migrated some code which leverages ajax and comet quite heavily, from 1.1-M4 to 1.1-M8 and have found that the function binding for a rendered ajax element, bound to a template which is itself the target of another ajax element, rendered via a CometActor (a mouthful I know)

[Lift] Lift with MS Access database

2009-12-26 Thread Gang
Hi All, I'm learning Lift, and get to do a small project in Lift. The requirement is to connect to MS Access database. I got an error at the Schemifier.schemify() call. I have setup DSN in window and was able to connect to the database from NetBeans. the error in the log INFO: ERROR -