I've never tried this on a scalar query, but a constructor expression
example should be something like this:
select new com.chas.values.AnswerCount(t.answer, count(distinct
answer)) from ...
class AnswerCount(answer: String, count: Long) {
private def nullToOption[T](v: T) = v match { case
Thanks Timothy, but can you give an example of checkbox, because no
matter what I try, the binding function of checkbox doesn't seem to be
called when checkbox is set. I tried some trivious binding function,
but it's no effect still.
--~--~-~--~~~---~--~~
You
The example from the lift book doesn't work.
Listing 4.4: A checkbox example
SHtml.checkbox(false, if (_) frobnicate(), Full(snazzy), class -
woohoo)
and mine is
bind(entry, xhtml,
test_mode - SHtml.checkbox(false, if (_) option_list
= option_list ::: List(FlagEnum.TEST_MODE),
A checkbox should look like this:
var booleanThing: Boolean = false
def another(xhtml: NodeSeq): NodeSeq = {
bind(c,xhtml,
checkbox - SHtml.checkbox(booleanThing, booleanThing = _) %
(class - myCSSclass)
)
}
Cheers, Tim
On Apr 24, 2:16 am, sailormoo...@gmail.com
Your confussing things I think. InMemoryResponse is a HTTP response
designed for use in conjunction with DispatchPF.
If your getting the PDF dynamically then you'll need to read the PDF
either into memory and return it from a url or do a streaming response
- checkout my blog post here about
Hi,
I would like to get a PDF document (produced via IText) from my app.
It should be triggered via a submit button
The PDF document should be presented in a separate browser window.
In the lift book there is an example how to do this via a link and
with mapping a request via
Thoughts about that presentation[1] (german): The slides indicate that
the presentation was for the W-JAX 2008 conference (Nov 2008), so it's
a bit older. While most of the stuff is nothing special (except that
he left out JPA in the persistence slides - was probably too new for
the submission
Hi Tim,
thanks for responding.
I think I don't know enough.
O.k. I've to use StreamingResponse. What I would like to know is how
can I set the StreamingResponse instance as response served by lift
when my snippet handles the request triggered from the submit button.
In the pure servlet tech I
What doesn't work about the example? Do you get a compilation error, or it
just doesn't do what you want?
Derek
On Thu, Apr 23, 2009 at 7:16 PM, sailormoo...@gmail.com
sailormoo...@gmail.com wrote:
The example from the lift book doesn't work.
Listing 4.4: A checkbox example
Mates,
Forget about that old presentation! I have seen it live and it is just
not relevant.
There will be ab Scala Day at W-JAX 09 (11 Nov) and I will give a
*very* positive talk there.
Cheers
Heiko
On 24/04/2009, Daniel Mueller dan.in.a.bot...@gmail.com wrote:
Thoughts about that
On Fri, Apr 24, 2009 at 3:27 AM, Daniel Mueller
dan.in.a.bot...@gmail.comwrote:
Thoughts about that presentation[1] (german): The slides indicate that
the presentation was for the W-JAX 2008 conference (Nov 2008), so it's
a bit older. While most of the stuff is nothing special (except that
Very very nice ... and that is something that would probably keep
audience with the mouth open for a few minutes. However it's just like
showing the dog a bone :) ... people would inherently wonder so maybe
a bit of more explanations on the wiring between the global chat
actor and the Comet
Folks,
I did a draft of a screencast for a real-time chat app. It's at
http://tunaforcats.com/LiftScreenCast.avi
I'd like to get some critical feedback on it so I can improve it.
Thanks,
David
PS -- What's the best output format? AVI, QuickTime, Flash?
--
Lift, the simply functional web
I prefer QuickTime.
Thanks,
Bradford
On Apr 24, 12:21 pm, marius d. marius.dan...@gmail.com wrote:
Very very nice ... and that is something that would probably keep
audience with the mouth open for a few minutes. However it's just like
showing the dog a bone :) ... people would inherently
The fact it's real-time is excellent.
It's the right amount of info/code to whet someone's appetite to dive
into Lift a bit more. And since the amount of code is small, someone
would be able to follow along easily.
The areas of improvement would be upping to production levels a bit.
The
Martin,
You need to write a DispatchPF and put that in your boot.scala file.
e.g
LiftRules.dispatch.append {
case Req(my :: path :: Nil, pdf, GetRequest) = // do
steaming response stuff here
}
Does that help?
Cheers, Tim
On Apr 24, 12:22 pm, maku martin.kuhn...@gmail.com wrote:
Hi
Very nice. I don't think it matters whether it's AVI or Flash, but it would
definitely help to pick a good codec for screencasts so that it's not a
200MB file. You might even want to look at Wink:
http://www.debugmode.com/wink/
It does isolated screenshots, but in many cases that's clearer than
Oh and trait names were not very visible after code completion due to
net bean's coloring ... :(
Br's,
Marius
On Apr 24, 7:21 pm, marius d. marius.dan...@gmail.com wrote:
Very very nice ... and that is something that would probably keep
audience with the mouth open for a few minutes. However
A snippet, by definition, returns a scala.xml.NodeSeq, so there's not a
direct way to do it. I haven't tested the code, but you may be able to get
away with using the ResponseShortcutException object to force a particular
response like so:
def mySnippet (...) ... {
def doSubmit () {
...
Martin,
You now have all the information to complete this solution - I will
continue to provide help, however the best way forward is for you to
do some research in the list archive and try writing some code :-)
If you post some code that doesn't work I'll tell you how to fix it or
improve it,
Derek,
Thats an interesting idea, but as you say, its not exactly best
practice as snippets are for returning NodeSeq.
@martin: You need to implementing a dispatchPF in your Boot.scala file
(google around in the mailing list, this has been discussed a lot),
then in your snippet just do a
Or better still, just make a channel on Blip... then we could have a
whole series of Lift related screen casts in a single channel done
by various committers.
http://blip.tv/
Thoughts?
Cheers, Tim
On Apr 24, 8:48 pm, Derek Chen-Becker dchenbec...@gmail.com wrote:
Very nice. I don't think it
I'm trying to avoid having to clear the browser cache when I change a
javascript file.
One approach is to append a timestamp to the script src tag in the html
file.
script id=json src=/classpath/json.js type=text/javascript/
becomes:
script id=json src=/classpath/json.js?*12341234*
When I viewed that on my Mac the audio was out of sync with what was
happening on the screen. It might be some codec issue on my machine
since it was an AVI.
On Apr 24, 11:50 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
Folks,
I did a draft of a screencast for a real-time chat app.
I didn't get a compilation error, but the function in the checkbox
(Boolean) = Any doesn't seem to be called
bind(c,xhtml,
checkbox - SHtml.checkbox(booleanThing, booleanThing = _) %
(class - myCSSclass)
)
As the example, booleanThing is always false no matter if I clicked
the
On Thu, Apr 23, 2009 at 8:28 PM, bradford fingerm...@gmail.com wrote:
Thanks again for your help. If I call this ! ShutDown in my
CometActor, it will redirect me back to the home page once ShutDown is
received.
Did you want me to open up a ticket for this?
This is correct behavior, no
On Thu, Apr 23, 2009 at 8:28 PM, bradford fingerm...@gmail.com wrote:
Thanks again for your help. If I call this ! ShutDown in my
CometActor, it will redirect me back to the home page once ShutDown is
received.
Did you want me to open up a ticket for this?
I just added code for:
class
On Apr 24, 3:23 pm, Patrick Down patrick.d...@gmail.com wrote:
When I viewed that on my Mac the audio was out of sync with what was
happening on the screen. It might be some codec issue on my machine
since it was an AVI.
This initially happened to me, too. But I got a phone call in the
On Fri, Apr 24, 2009 at 8:50 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
I'd like to get some critical feedback on it so I can improve it.
I'm short on criticism - this was really cool.
You might want to comment on how much compile time there is when
you're rapidly updating a Lift
29 matches
Mail list logo