> > > 1) I assume each page get their own instance of the actor so they can
> > > hold their own data. Is this correct?
>
> > Yes.
>
> No, it's not correct. There's one CometActor of a given type/name per
> session.
Sorry for this. I just hat the relation "one page -> user (==
session)" in mind..
Hi,
I'm writting Selenium tests with Scala JUnit.
The problem is when i try to put value in SHtml.ajaxText field.
Selenium RC doesn't call my js function from this ajaxText.
I would really appreciate any help.
best regards,
Darek
--
You received this message because you are subscribed to the
On Wed, Mar 3, 2010 at 10:30 AM, Tweek wrote:
> Hi,
>
> I'm writting Selenium tests with Scala JUnit.
>
> The problem is when i try to put value in SHtml.ajaxText field.
> Selenium RC doesn't call my js function from this ajaxText.
>
Not sure exactly what you mean by the above, but IIRC, the ajax
See David's last post on this thread, and the updated diff on RB.
-
Jeppe Nejsum Madsen wrote:
Naftoli Gugenheim writes:
> Would it be a bad idea to use java.util.Date for now, and if and when support
> is added for JodaTime, change it to a DateHolder (which
When are the implicits on a companion object invoked without needing to be
imported?
-
Jeppe Nejsum Madsen wrote:
Naftoli Gugenheim writes:
> Would it be a bad idea to use java.util.Date for now, and if and when support
> is added for JodaTime, change it to
okej, so:
i've got code like this:
var testStr : String = ""
def set(s : String) : JsCmd ={
println(s)
testStr = s
JsRaw("")
}
def render(ns : NodeSeq) : NodeSeq ={
bind("fields", ns,
"name" -> SHtml.ajaxText(testStr, (s : String) => setName(s) ) % ("id"
-> "name"),
...
}
and JUnit test with Se
Ok,
What happens if you, manually, type in "new value" in the field (only
the text, don't press enter, dont click etc)??
My guess is nothing (unless you've added your own keyboard event
handlers). And this is what your selenium test does.
If so take a look here
http://www.eviltester.com/index.ph
thanks a lot Jeppe,
selSession.fireEvent("edit_field_1", "blur") works
it was really helpful.
best regards,
Darek
On 3 Mar, 13:11, Jeppe Nejsum Madsen wrote:
> Ok,
>
> What happens if you, manually, type in "new value" in the field (only
> the text, don't press enter, dont click etc)??
>
> My
Thank your the code snippet. It's a lot cleaner than what I have.
I'll wait for the official implementation so as not to get into an
IP / copyright issues.
Thanks again for posting.
Cheers,
Achint
On Mar 2, 8:32 pm, Jonathan Hoffman wrote:
> I'm sure you've got this covered, but I've also had
There is no problem with the .obj syntax, just that I found it a
little un-natural given how it works in the other direction
(anAuthor.books). I've raised a ticket as per David's request.
On Mar 2, 8:19 pm, Naftoli Gugenheim wrote:
> Yes, because, as in the database, essentially it's a MappedLong
A quick followup on this minified js concern...
The initial reason why I reopened still holds [1]
Marius and I had a quick chat on this point over IM where we agreed to
take it up separate from this particular ticket and see if we can arrive
at a consensus.
Conventionally, Lift keeps the un-
Indrajit Raychaudhuri writes:
> A quick followup on this minified js concern...
[...]
> So the question is, should we:
>
> 1. Continue using yuicompressor (to compress js files at build time)
> and apply the strategy universally to all toserve/**/*.js
> OR
> 2. Include the minified version of t
Probally worth sticking this on the wiki
Cheers, Tim
Sent from my iPhone
On 2 Mar 2010, at 14:37, Jeppe Nejsum Madsen wrote:
ced writes:
When I use Mapper outside a request, say in an actor, how do I wrap
it
in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper)
to have t
On 03/03/10 9:21 PM, Jeppe Nejsum Madsen wrote:
Indrajit Raychaudhuri writes:
A quick followup on this minified js concern...
[...]
So the question is, should we:
1. Continue using yuicompressor (to compress js files at build time)
and apply the strategy universally to all toserve/**/*.
On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger <
heiko.seeber...@googlemail.com> wrote:
> On 3 March 2010 00:03, David Pollak wrote:
>
>>
>>
>> On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger <
>> heiko.seeber...@googlemail.com> wrote:
>>
>>> Hi,
>>>
>>> Isn't it possible to put snippets in sub
On Mar 3, 2010, at 11:25 AM, David Pollak wrote:
> On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger
> wrote:
> On 3 March 2010 00:03, David Pollak wrote:
> On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger
> wrote:
> Hi,
>
> Isn't it possible to put snippets in subpackages of xxx.snippet?
> Som
On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett wrote:
> Probally worth sticking this on the wiki
>
> Cheers, Tim
>
> Sent from my iPhone
Wait... you've got a broken hand and you can still type on your iPhone?!?!
:-)
>
>
> On 2 Mar 2010, at 14:37, Jeppe Nejsum Madsen wrote:
>
> ced writes:
On Wed, Mar 3, 2010 at 8:27 AM, Ross Mellgren wrote:
> On Mar 3, 2010, at 11:25 AM, David Pollak wrote:
>
> On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger <
> heiko.seeber...@googlemail.com> wrote:
>
>> On 3 March 2010 00:03, David Pollak wrote:
>>>
>>> On Tue, Mar 2, 2010 at 1:05 PM, Heiko See
On 03/03/10 9:58 PM, David Pollak wrote:
On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett mailto:timo...@getintheloop.eu>> wrote:
Probally worth sticking this on the wiki
Cheers, Tim
Sent from my iPhone
Wait... you've got a broken hand and you can still type on your
iPhone?!?!
Thank you for the explanation David.
I've raised a ticket as requested:
http://www.assembla.com/spaces/liftweb/tickets/394-request-for-convenience-conversion-on-mappedlongforeignkey-fields
Cheers,
Achint
On Mar 2, 8:21 pm, David Pollak wrote:
> On Tue, Mar 2, 2010 at 5:09 PM, Achint Sandhu wrot
Info about yuicompressor-maven-plugin :
* could aggregate js
* could be configured to avoid minified some files
* could generate minified under src with suffix (default "-min")
* could generate the gzip version and avoid doing it at runtime
* could be invoked only in a profile (for release) or from
Indrajit Raychaudhuri writes:
[...]
> My interest in the current context, is to have consistent behavior in
> the js artifacts bundled with Lift.
>
> To me (and Marius) #2 is also worth consideration. True that you'd
> have a compressed (IDE unfriendly) js in the codebase but you'd also
> be abl
David Pollak writes:
[...]
> One of the things I do with page-specific snippets is call them out in
> SiteMap:
>
> Loc(..., Snippet("foo", snipetFunc))
That's actually a neat trick! I've been using this as well, but more in
a CRUDify style way. I'm still trying to come up with some good ways t
On 03/03/10 10:21 PM, Jeppe Nejsum Madsen wrote:
Indrajit Raychaudhuri writes:
[...]
My interest in the current context, is to have consistent behavior in
the js artifacts bundled with Lift.
To me (and Marius) #2 is also worth consideration. True that you'd
have a compressed (IDE unfriendl
Yep, that would help a lot!
Heiko
On Wednesday, March 3, 2010, David Pollak wrote:
>
>
> On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger
> wrote:
>
> On 3 March 2010 00:03, David Pollak wrote:
>
>
>
>
> On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger
> wrote:
>
> Hi,
> Isn't it possible to
On Wed, Mar 3, 2010 at 9:30 AM, Heiko Seeberger <
heiko.seeber...@googlemail.com> wrote:
> Yep, that would help a lot!
>
>
Cool. Please open a ticket and assign it to Ross... if he wants, he can
assign it to me or you. ;-)
> Heiko
>
> On Wednesday, March 3, 2010, David Pollak
> wrote:
> >
> >
Haha okay okay I'll write it, but you have to review it ;-)
-Ross
On Mar 3, 2010, at 12:37 PM, David Pollak wrote:
>
>
> On Wed, Mar 3, 2010 at 9:30 AM, Heiko Seeberger
> wrote:
> Yep, that would help a lot!
>
>
> Cool. Please open a ticket and assign it to Ross... if he wants, he can
>
On Wed, Mar 3, 2010 at 10:08 AM, Ross Mellgren wrote:
> Haha okay okay I'll write it, but *you* have to review it ;-)
>
Will do.
>
> -Ross
>
> On Mar 3, 2010, at 12:37 PM, David Pollak wrote:
>
>
>
> On Wed, Mar 3, 2010 at 9:30 AM, Heiko Seeberger <
> heiko.seeber...@googlemail.com> wrote:
>
>
I like Jeppe's option:
> Or 2.5: use 1. for the js artifacts included with Lift and let the user
> decide how to handle their own js files. I would hate to be forced into
> using the yui compressor for my own files that I put in toserve (not
> that it isn't a good idea :-)
This lets us keep plain
Just wanted to share the cause of this in case anyone else bangs their
head against it for several days like me. I had several issues:
1. The surefire plugin definition was in my reporting node in my pom
(d'oh!)
2. It wasn't set to always fork -- setting configuration/forkMode to
always
All is we
Is a syntax like this okay (inside an Author mapper)?
object created extends MappedDateTime(this) with CreatedTimestamp[Author]
Although if we say that timestamps are always a date-time (not date only or
time only) this could be shortened to
object created extends CreatedTimestamp(this)
Folks let's keep in mind that even now users can decide whichever
version they want for the underlying js script framework. Just
override
override def pathRewriter: PartialFunction[List[String],
List[String]] from the JsArtifacts.
JQuery13Artifacts and JQuery14Artifacts are just helpers and IMHO
Hi,
I am getting familiar with the lift-couchdb module, and trying to put together
a sample based on the tests in the module. Trying to create a record, based on
this test code:
def testRec1: Person = Person.createRecord.name("Alice").age(25)
this is what I have:
class Account exte
I asked about this before:
http://groups.google.com/group/liftweb/browse_thread/thread/9daa4692acbfce6/00be519d77901fb0
Can anyone suggest a good way to set Expires headers?
- I'd like our images, JS and CSS to have expires headers perhaps 1
month in the future
- I'd like to set certain pages' ex
Unfortunately the compiler error is bizarre (due to some of the type shuffling
involved), but the underlying problem you're experiencing is that
DateTimeFields (and therefore JSONDateTimeFields) have a storage type of
Calendar, and you're trying to assign a Date to them. Try Calendar.getInstance
Ok,
This is the last time I'll bump this (I promise) - anyone using TextMate can
follow the bundle on github.
I improved the bundle and it's fairly usable now, check out a teaser video
here: http://www.sidewayscoding.com/2010/03/textmate-lift-bundle-v02.html
Thanks
On 23/02/2010, at 19.08,
Hello,
I really like the use of Box (perhaps one of the best thing in lift :),
safe for how it handles ParamFailure - so I'm wondering why ParamFailure
is a subclass of Failure, and not a full case of Box ? Or why Failure
does not have (always) an option param, like its option exception/chain
The short answer is that sometimes inheritance is better than a flat ADT.
A Box can be full or empty: Full or EmptyBox
An empty box can contain no additional information as to why it's empty (the
Empty singleton) or it can contain more information as to why the Box is
empty: Failure. Now, a Fail
Yep, that seems to be better. Sorry for the noise, I don't know why I didn't
think to check that.
Thanks for the quick answer.
Craig
On Mar 3, 2010, at 4:44 PM, Ross Mellgren wrote:
> Unfortunately the compiler error is bizarre (due to some of the type
> shuffling involved), but the underlyi
It's no problem, as I mentioned the compiler error is practically useless.
Hope you get along well, let me know if you have any other issues.
-Ross
On Mar 3, 2010, at 7:29 PM, Craig Blake wrote:
> Yep, that seems to be better. Sorry for the noise, I don't know why I didn't
> think to check th
Sure, will do. The only thing I think I'll need to figure out is how to
persist an enumeration by name rather than ordinal value, but I imagine that it
should be pretty straight-forward to add a new field type in my app to handle
it.
Thanks,
Craig
On Mar 3, 2010, at 7:45 PM, Ross Mellgren wro
Try this:
/** Enum data field for JSON records. Encodes as JString */
class JSONEnumNameField[OwnerType <: JSONRecord[OwnerType], EnumType <:
Enumeration]
(rec: OwnerType, enum: EnumType)(implicit enumValueType:
Manifest[EnumType#Value])
extends EnumField[OwnerType, Enum
Just took a minor change to compile (didn't like ?~) and I'll let you know how
it goes soon. I'm running into one more problem, this time a runtime exception
saving a document:
java.lang.AbstractMethodError:
test.Settings$updated$.encode(Ljava/lang/Object;)Ljava/lang/String;
at
net.li
AbstractMethodError means you need to do a clean build and make sure you don't
have multiple scala versions.
-
Craig Blake wrote:
Just took a minor change to compile (didn't like ?~) and I'll let you know how
it goes soon. I'm running into one more problem,
I'm new to Lift and am trying to use Lift within a subpath of my web
application. For example, http://domain.com is an existing webapp,
but my LiftFilter handles the "user_mgt" subpath (http://domain.com/
user_mgt/*). My existing webapp already handles user authentication,
but I want to use the l
The Lift Web Framework team is pleased to announce the framework-2.0-
M3 release!
Lift is an expressive and elegant framework for writing web
applications. Lift stresses the importance of security,
maintainability, scalability and performance while allowing for high
levels of developer productivit
Awesome work team! A special thanks to Charles and Indrajit for spinning
the build!
On Wed, Mar 3, 2010 at 8:10 PM, Indrajit Raychaudhuri
wrote:
> The Lift Web Framework team is pleased to announce the framework-2.0-
> M3 release!
>
> Lift is an expressive and elegant framework for writing web
>
After fielding calls as to why my UI doesn't look correctly on IE, I
discovered that Lift is doing an "optimization" in "production mode"
that is effectively breaking my application's compatibility for IE...
To get around IE6 deficiencies, I am leveraging JQuery. For example,
if I have a CSS styl
There's a FactoryMaker in LiftRules that looks like it may do what you want --
try:
LiftRules.stripComments.default = () => false
-Ross
On Mar 4, 2010, at 1:38 AM, aw wrote:
> After fielding calls as to why my UI doesn't look correctly on IE, I
> discovered that Lift is doing an "optimization"
I don't know the answer, but did you look through LiftRules to see if there's
any setting about comments?
-
aw wrote:
After fielding calls as to why my UI doesn't look correctly on IE, I
discovered that Lift is doing an "optimization" in "production mode"
that
On Mar 3, 10:56 pm, Ross Mellgren wrote:
> There's a FactoryMaker in LiftRules that looks like it may do what you want
> -- try:
>
> LiftRules.stripComments.default = () => false
>
> -Ross
This looks promising. Alas: error: reassignment to val
(I'm not familiar with FactoryMaker.) I see tha
51 matches
Mail list logo