That should be "...to determine how to set up..."
On Sat, Apr 18, 2009 at 11:59 PM, Derek Chen-Becker
wrote:
> Would using the run mode to determine to set up a Derby or HSQL DB for test
> purposes in your Boot class work? Usually I use this method combined with
> DBUnit to load test data.
>
> De
Would using the run mode to determine to set up a Derby or HSQL DB for test
purposes in your Boot class work? Usually I use this method combined with
DBUnit to load test data.
Derek
On Fri, Apr 17, 2009 at 3:43 PM, erik.karls...@iki.fi <
erik.b.karls...@gmail.com> wrote:
>
> Hi,
>
> I'm a little
I'll add in an example for StatefulSnippet. We have one already in
PocketChange, so I just need to copy the code listing in. You should be able
to mix the two as you see fit.
Derek
On Sat, Apr 18, 2009 at 6:58 PM, bradford wrote:
>
> Thanks, Derek. I read the updated PDF version of the book on
Thanks, Derek. I read the updated PDF version of the book on "The
Lift Book" group. I think it looks good. I think an example with
redirectTo may be better than link. Also, personally, I'm not sure if
I understand StatefulSnippet now. It doesn't seem like you can mix
the two. I updated my co
OK, I just added some more explanation on passing state between snippets to
section 3.15 in the book. I just uploaded a new PDF. When you have a chance
could you look at it and let me know if that makes sense? Also, I wasn't
sure if this should be a separate section ("Passing Data Between Snippets"
A RequestVar is only "live" for the duration of the request, and a
redirectTo ends up sending a 307 temp redirect to the browser, which results
in a new request. S.redirectTo does have an overload that allows you to pass
a function that will be called when the redirected request is handled. Some
sk
Still not clear. Are you trying to avoid error messages or all messages?
If the latter, then simply remove the entire element from
your template. Messages won't be displayed if there's nowhere to put them.
Chas.
bradford wrote:
> It seems like I'm forced to define My Custom Message lift:error
Thanks, Tim. I worked around that issue.
I would still like to know whether or not it's possible have
RequestVars carry over to the redirected page. I'm attaching a
modified demo. If I use just a var, it will maintain the state. If I
use RequestVar, it won't transfer the state.
Well.. I coul
It seems like I'm forced to define My Custom Message or lift will render "Error". But I don't want
anything being displayed.
On Apr 18, 2:40 pm, "Charles F. Munat" wrote:
> Can you explain a bit more? Are you trying to show warnings and notices,
> but not errors? Or are you trying to eliminate
Can you explain a bit more? Are you trying to show warnings and notices,
but not errors? Or are you trying to eliminate messages entirely? Or
just trying to restyle them?
Chas.
bradford wrote:
> How can I get rid of the ? I know I can use my own
> message, but I can't figure out how to hide i
Its talking about Hibernate session, not lift session. Perhaps you have a
detached model or something your trying to work on?
Cheers, Tim
On 18/04/2009 19:08, "bradford" wrote:
> no session or session was
> closed
>
> I'll look into this some more.
--~--~-~--~~~--
Thanks, Sergey. When I removed the reuqestVar, changing these two
lines
object productVar extends RequestVar(new Product())
def selectedProduct = productVar.is
to
var selectedProduct = new Product()
It worked. Now I'm having a Hibernate problem.
Message: org.hibernate.LazyInitializationExce
Could you attach a sample code which doesn't work?
On Sat, Apr 18, 2009 at 8:41 PM, bradford wrote:
>
> I have "changed class Products {" to read "class Products extends
> StatefulSnippet {"
>
> Instead of S.redirectTo, I now have this.redirectTo and it still
> doesn't seem to be saving the sta
How can I get rid of the ? I know I can use my own
message, but I can't figure out how to hide it.
I've tried the following:
error-red
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to
I have "changed class Products {" to read "class Products extends
StatefulSnippet {"
Instead of S.redirectTo, I now have this.redirectTo and it still
doesn't seem to be saving the state.
On Apr 17, 10:55 pm, Derek Chen-Becker wrote:
> OK, first, your snippet class needs to extend StatefulSnip
So your talking about reflection right? Take a look at scala Manifests
(which aide getting round type erasure) - other than that scala supports all
the normal reflection tooling that Java does.
Tim
On 18/04/2009 06:56, "Amit Kumar Verma" wrote:
> "Scala is a static language, so the class for
Amit,
There is no way that I know of in Java to construct a string at runtime and
use that string for casting. If you can show me an example of what you mean
in Java I'll show you the equivilent Scala code.
In terms of the roadmap, you started a thread on that. If you have
follow-up questions,
Hi David,
Sorry I used dynamic binding which was not correct.
But in the previous thread you said :
"Scala is a static language, so the class for casting must be known at
compile time. It's not possible to construct a String at runtime and
cast
an object into a class represented by that String.
Welcome sir!
On Apr 18, 1:19 am, "marius d." wrote:
> Welcome,welcome,welcome !
>
> On Apr 18, 1:42 am, David Pollak
> wrote:
>
>
>
> > Folks,
>
> > I am pleased at announce that Atsuhiko Yamanaka has joined the Lift
> > committers. He did some great Google App Engine work with Lift and has be
19 matches
Mail list logo