cody koeninger c...@koeninger.org writes:
On Dec 6, 9:16 pm, Alex Boisvert alex.boisv...@gmail.com wrote:
Lift's mapper doesn't change the default isolation level of your
connections, nor does it make explicit use of pessimistic concurrency
control.
Anything beyond that we can probably
You don't need to configure anything in boot.
Assume this is an Ajax function:
def howdy: JsCmd = {
S.error(howdy error)
fadeOutErrors(5 seconds, 1 second)
}
... in your snippet you can say:
SHtml.a(Text(Click me)(howdy _)
If you want to fade out errors in a page and not via
I want the date field keep the last submited value. I tried with
below code, but it's dosn't work. The date value(display in page)
awalys the date of today.
the form:
lift:mySnippet.form1 form=POST
f:date/
f:submit/
/lift:mySnippet.form1
MySnippet:
class MySnippet extends
Are you using field validate into an Ajax context or not? If not using
something like:
def howdy = {
S.error(howdy error)
spanHello there/span ++
head{Script(OnLoad(fadeOutErrors(5 seconds, 1 second)))}
/head
}
from your snippet should be ok.
If you are using validate from an
Ah !
In fact the problem did not appear when I upgraded to 1.1-SNAPSHOT but
when I enabled maven resource filtering (which assumes all files use
UTF-8).
Anyway I'll look for a correct setting to have both ISO 8859-1
properties file and maven resource filtering enabled.
On Dec 8, 10:41 am,
Hi,
Can you send me a sample project offline that illustrates this problem? Its not
one i've seen before and im a little confused why your getting this because we
are leveraging the Java properties localisation under the hood for actual
loading and parsing of strings. That is:
private def
Ahhh! That is interesting... i'd not thought of that :-)
You'll need to specify a proper encoding type for sure otherwise maven will
just assume your platform default... for example, MacRoman. Perhaps IRC or Josh
will be able to advise...
Cheers, Tim
On 8 Dec 2009, at 10:02, Jean-Adrien
Yes, I do something like
// do the DB stuff
vmyMapper.validate match {
case Nil =
case xs = S.error(xs)
}
But I should always add fadeOutErrors(5 seconds, 1 second)?
I want lift highlight every error/notice information.
On Tue, Dec 8, 2009 at 5:56 PM, Marius marius.dan...@gmail.com
you could select which file should be filtering, else every resources are
filtering and converted (to UTF-8)
/davidB
On Tue, Dec 8, 2009 at 11:18, Timothy Perrett timo...@getintheloop.euwrote:
Ahhh! That is interesting... i'd not thought of that :-)
You'll need to specify a proper encoding
Yes you need to send down fadeOut... call
def myFunc: JsCmd = {
// do some DB stuff
vmyMapper.validate match {
case Nil = Noop
case xs = S.error(xs); fadeOutErrors(5 seconds, 1 second)
}
}
On Dec 8, 3:01 pm, Xuefeng Wu ben...@gmail.com wrote:
Yes, I do something like
// do the DB
I think It's better I could configure it, but not code every where.
On Tue, Dec 8, 2009 at 9:23 PM, Marius marius.dan...@gmail.com wrote:
Yes you need to send down fadeOut... call
def myFunc: JsCmd = {
// do some DB stuff
vmyMapper.validate match {
case Nil = Noop
case xs =
Hi!
Cool to see me there:
* @author Alex Siman
You can also set attribute maxlength of HTML input tag based of JPA
size anno. See http://www.w3schools.com/TAGS/att_input_maxlength.asp
Checkout full code for more ideas. You can create more generic
architecture and wrap existent JPA entities with
Also take a look at JPA example from Lift sources:
http://github.com/dpp/liftweb/tree/master/lift-examples/JPADemo/
On 8 дек, 02:20, wstrange warren.stra...@gmail.com wrote:
After some experimenting I have field validation working with JSR 303
annotations. See:
Folks,
A month or so ago, I made the DB.buildLoanWrapper lazy. While it provided a
request-duration transaction, it did not actually pull the JDBC connection
from the pool until the first request for the JDBC connection. This led to
some problems. Basically:
object MySnippet {
def render =
Folks,
We are nearing the Lift 1.1 Milestone 8 release. The code (except for bug
fixes) that's going to be in M8 is currently in SNAPSHOT.
Please do a mvn -U clean install on your project and test heartily against
SNAPSHOT. Please report any defects ASAP to the Lift list (and subsequently
open
Good catch! I'll take a look.
Jean, can you please send a zip of your project (just enough to recreate
the scenario, no sensitive code necessary)?
Cheers, Indrajit
On 08/12/09 3:48 PM, Timothy Perrett wrote:
Ahhh! That is interesting... i'd not thought of that :-)
You'll need to specify a
On Tue, Dec 8, 2009 at 6:27 AM, Indrajit Raychaudhuri
indraj...@gmail.comwrote:
Good catch! I'll take a look.
Jean, can you please send a zip of your project (just enough to recreate
the scenario, no sensitive code necessary)?
And perhaps something that we can add as a test to the Lift
On Dec 8, 7:31 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Dec 8, 2009 at 6:27 AM, Indrajit Raychaudhuri
indraj...@gmail.comwrote:
Good catch! I'll take a look.
Jean, can you please send a zip of your project (just enough to recreate
the scenario, no sensitive code
You should use a SessionVar or a stateful snippet.
Here's how you would use a SessionVar,
object lastSubmittedDate extends SessionVar[Date](new Date)
...
bind(...,
date - SHtml.text(lastSubmittedDate.is, lastSubmittedDate(_),
class - datepicker),
alex
On
Hi all,
How can bind more than one element in the render method in
CometActor ?
The msg1 is an
###
class TestComet extends CometActor {
override def defaultPrefix = Full(info)
...
def render = { bind(One - span1/span,
Two - span2/span,
BTW, when the partialUpdate method is called , the result is
correct.
But when refreshing the browser or open a new browser, the result
also is 3,
Cheers,
Neil
On Dec 9, 12:44 am, Neil.Lv anim...@gmail.com wrote:
Hi all,
How can bind more than one element in the render method in
You can vote up or down here :)
http://www.dzone.com/links/video_interview_with_marius_danciu_author_of_the.html
Br's,
Marius
On Dec 7, 9:59 am, Marius marius.dan...@gmail.com wrote:
Hi,
After a long day I ended up giving this interview.
http://vimeo.com/7986506
Br's,
Marius
P.S.
Hi Jeppe - thanks for your response.
So, am I correct in saying that I just need to do something like
this? (not tested code - just an approximation)
//Assuming fooDb and barDb are some form of connection wrapper...
S.addAround(List(new LoanWrapper {
def apply[T](f: = T): T = {
Off the top of my head, I don't think that SHtml.radio supports putting
attributes on just one of the items. This seems like a reasonable thing to
want, so please open a ticket.
Derek
On Tue, Dec 1, 2009 at 10:45 PM, sunanda sunanda.pa...@gmail.com wrote:
Hi,
I have got two radio button
On Dec 8, 2:19 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
record will not be unlocked until the session times out
I thought it was stated above that the transaction is scoped to the
request by default, not the session?
A much better solution imo is to use optimistic locking.
I'm
My slide deck (for any that are interested) can be found here:
http://docs.google.com/present/view?id=dcbpz3ck_24f3v83ggz
-harryh
On Dec 8, 12:19 am, Xuefeng Wu ben...@gmail.com wrote:
6:30 p.m. the time zone is -8:00?
On Tue, Dec 8, 2009 at 12:58 PM, David Pollak
Very nice stuff !
On Dec 8, 8:58 pm, harryh har...@gmail.com wrote:
My slide deck (for any that are interested) can be found here:
http://docs.google.com/present/view?id=dcbpz3ck_24f3v83ggz
-harryh
On Dec 8, 12:19 am, Xuefeng Wu ben...@gmail.com wrote:
6:30 p.m. the time zone is -8:00?
On Dec 7, 7:36 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Mon, Dec 7, 2009 at 6:59 PM, Peter Robinett pe...@bubblefoundry.comwrote:
One thing mentioned briefly in the talk that I'd like to know more
about is oAuth Server code. Is anyone working on that?
It's on my to-do list.
deadfolk deadf...@gmail.com writes:
Hi Jeppe - thanks for your response.
So, am I correct in saying that I just need to do something like
this? (not tested code - just an approximation)
//Assuming fooDb and barDb are some form of connection wrapper...
S.addAround(List(new LoanWrapper {
Thanks, David, \u00B0 did it.
Peter
On Dec 7, 7:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
Peter,
My understanding is that JavaScript strings must be ASCII or escaped to
Unicode: \u4455 (or whatever the unicode character is for degrees).
Thanks,
David
On Mon, Dec 7, 2009
On Tue, Dec 8, 2009 at 11:57 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
deadfolk deadf...@gmail.com writes:
Hi Jeppe - thanks for your response.
So, am I correct in saying that I just need to do something like
this? (not tested code - just an approximation)
//Assuming fooDb and
OK, I've run into a snag. Schemifier does support foreign key creation, as
do most of the database vendors. The ManyToMany Mapper support, however,
seems to expect no foreign key constraints, since it's explicitly testing
broken refs in the ManyToManySpecs tests:
ManyToMany should {
skip
I think he might just mean the last submitted value for this particular form
instance, in which case you want a RequestVar, not a SessionVar.
On Tue, Dec 8, 2009 at 8:22 AM, Alex Boisvert alex.boisv...@gmail.comwrote:
You should use a SessionVar or a stateful snippet.
Here's how you would use
David Pollak feeder.of.the.be...@gmail.com writes:
Folks,
A month or so ago, I made the DB.buildLoanWrapper lazy. While it provided a
request-duration transaction, it did not actually pull the JDBC connection
from the pool until the first request for the JDBC connection. This led to
some
Anyone still looking into uploading the video version of this prezo?
M
On Tue, Dec 8, 2009 at 12:38 PM, Peter Robinett pe...@bubblefoundry.com wrote:
On Dec 7, 7:36 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
On Mon, Dec 7, 2009 at 6:59 PM, Peter Robinett
cody koeninger c...@koeninger.org writes:
On Dec 8, 2:19 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
record will not be unlocked until the session times out
I thought it was stated above that the transaction is scoped to the
request by default, not the session?
It is. But even if
It looks like the JTA jar isn't being added to the classpath for the
LiftConsole runner. I've never touched scala:console, so I'm not sure what
you would need to do to make it work. Off the top of my head, you might need
to put the dependencies for JPA into the plugin config, but I'm not
positive.
Im sure n8han will put it on blip.tv when he gets a chance. Be patient, im sure
it'll come soon :-)
Cheers, Tim
On 8 Dec 2009, at 20:50, Mateo Barraza wrote:
Anyone still looking into uploading the video version of this prezo?
M
On Tue, Dec 8, 2009 at 12:38 PM, Peter Robinett
N8han upped it a while ago: http://www.vimeo.com/8057986
On Dec 8, 4:08 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Im sure n8han will put it on blip.tv when he gets a chance. Be patient, im
sure it'll come soon :-)
Cheers, Tim
On 8 Dec 2009, at 20:50, Mateo Barraza wrote:
Haha, upvoted :)
On Dec 9, 3:57 am, Marius marius.dan...@gmail.com wrote:
You can vote up or down here :)
http://www.dzone.com/links/video_interview_with_marius_danciu_author_...
Br's,
Marius
On Dec 7, 9:59 am, Marius marius.dan...@gmail.com wrote:
Hi,
After a long day I ended up
that last link works. THanks Tyler!
M
On Tue, Dec 8, 2009 at 2:18 PM, TylerWeir tyler.w...@gmail.com wrote:
N8han upped it a while ago: http://www.vimeo.com/8057986
On Dec 8, 4:08 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Im sure n8han will put it on blip.tv when he gets a chance.
On Dec 8, 2:53 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Maybe I don't really understand what you mean when you say data
consistency. A pessimistic lock is only useful within a single database
transaction. In my experience, in a web app, a user transaction (such as
loading a record,
OK, I've run into a snag. Schemifier does support foreign key creation,
as do most of the database vendors. The ManyToMany Mapper support,
however, seems to expect no foreign key constraints, since it's
explicitly testing broken refs in the ManyToManySpecs tests:
I do not really know
Hi guys,
thanks to this great community i could finish a project today which i
found worth to be made available public.
The topic says it all, check it out at https://github.com/fbettag/lift-stamped/
Tell me what you guys think!
best regards
--
You received this message because you are
This was from a while ago but I just wanted to note that it works
well, though I do have some issues with when render is then called,
since localSetup is no longer used.
Also, why does setupComet take a boxed name parameter?
Thanks,
Peter
On Oct 12, 8:15 am, David Pollak
Specifically, I have:
case Setup(newDatacenter) = {
datacenter = Full(newDatacenter)
DatacenterBroker.datacenters(newDatacenter.id) ! AddAListener
(this)
DatacenterBroker.datacenters(newDatacenter.id) !? GetPackets
match {
case Packets(packets) = {
I've been with Foursquare for four months, and during this time I've
decided to change their infrastructure to Scala and Lift. LOL.
Good luck hiring devs for this, guys. You will need it.
On Dec 8, 1:49 pm, Mateo Barraza mateo.barr...@gmail.com wrote:
that last link works. THanks Tyler!
M
On Tue, Dec 8, 2009 at 7:34 PM, DMB combust...@gmail.com wrote:
I've been with Foursquare for four months, and during this time I've
decided to change their infrastructure to Scala and Lift. LOL.
Good luck hiring devs for this, guys. You will need it.
Why do you say this? There is an
Thank you for you guys answer. RequestVar is what I needed.
On Dec 9, 4:34 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
I think he might just mean the last submitted value for this particular form
instance, in which case you want a RequestVar, not a SessionVar.
On Tue, Dec 8, 2009 at
Thank you for you guys answer. RequestVar is what I needed.
On Dec 9, 4:34 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
I think he might just mean the last submitted value for this particular form
instance, in which case you want a RequestVar, not a SessionVar.
On Tue, Dec 8, 2009 at
Whether I have to create six comet to archieve this purpose ?
I want to use only one comet to update the six parts.
The layouf is like this:
###
part1 part2
part3 part6
part4
part5
###
###
...
lift:comet type=TestComet
info:One/
/lift:comet
Neil,
bind() works the same everywhere... CometActors, Helpers.bind, etc.
If you are having a problem with bind, I would strongly recommend writing a
test with a template that allows your to figure out how bind works and then
take the template and binding and put it in your CometActor.
Thanks,
cherry-pick from a relatively small, tremendously talented pool of developers
Startups never get to cherry pick from anything since they don't
have the dough to pay for best work. If I'm a kick ass dev, why would
I trade my six figure salary for a five figure one with a tiny sliver
of equity
Here is the code:
###
override def defaultPrefix = Full(info)
def show(in: NodeSeq): NodeSeq = {
bind(show, in,
list1 - Text(1),
list2 - Text(2)
)
}
def render = {
bind(
list1 -
Very nice work, I don't deal with records but it looks very useful.
On Dec 9, 1:33 pm, Franz Bettag fr...@bett.ag wrote:
Hi guys,
thanks to this great community i could finish a project today which i
found worth to be made available public.
The topic says it all, check it out
That's great!
What's more,
I'm not sure whether every model need
creator/createDate,lastUpdator/lastUpdateDate?
I want to have a Action Log, which could record user activities.
Any model change history or change object could restore from action log
Did any one do something about this?
On Wed,
DMB combust...@gmail.com writes:
cherry-pick from a relatively small, tremendously talented pool of
developers
Startups never get to cherry pick from anything since they don't
have the dough to pay for best work. If I'm a kick ass dev, why would
I trade my six figure salary for a five
57 matches
Mail list logo