Why not with varargs like on below?
case class Link(pathParts: String*)
and I can say Link(a, b)?
- Vesa
On 3 marras, 00:15, Jim Barrows jim.barr...@gmail.com wrote:
On Mon, Nov 2, 2009 at 1:34 PM, Vesa brut...@gmail.com wrote:
You're right about that. You probably wouldn't get very far
I needed a button that goes back, so I created an ajaxButton with
code like:
SHtml.ajaxButton(Cancel, () = JsCmds.jsExpToJsCmd(JsRaw
(history.back();)))
So, is this the best version? Or can this be simplified?
(I didn't feel well acquainted to leveraging Javascript from reading
the
Works :-) Thanks.
/Jeppe
On Tue, Nov 3, 2009 at 12:20 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Fixed
On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen je...@ingolfs.dk
wrote:
David Pollak feeder.of.the.be...@gmail.com writes:
It's a bug. Please file a ticket.
Done.
Hi Tim,
I think you mean jGit, eGit is the eclipse plugin wrapper for jGit.
But I only knew eGit till now, so it was not in focus.
The way to get the information is quite equal via InputStreamReader. I
will try it out.
But the problem means to be the same. How can I display a list with
strings?
Hi Torsten,
In your html, you have to use list:item/ according to how you bind:
def list(xhtml:NodeSeq):NodeSeq = {
elem.flatMap(file = bind(list, xhtml, item - pfile/p))
}
plift:HelloWorld.howdy //p
lift:HelloWorld.list
item /
/lift:HelloWorld.list
Thanks, that made it.
On 3 Nov., 10:34, Thiébaut Champenier tchampen...@gmail.com wrote:
Hi Torsten,
In your html, you have to use list:item/ according to how you bind:
def list(xhtml:NodeSeq):NodeSeq = {
elem.flatMap(file = bind(list, xhtml, item - pfile/p))
}
Hi,
Thanks very much, that's exactly what I'm after !
For anyone reading this and wondering how to put Lift in test mode,
here is one way if you're using maven+jetty :
mvn jetty:run -Drun.mode=test
--~--~-~--~~~---~--~~
You received this message because you
I think the slf4j-simple you suggest might work better than the slf4j-nop I
had settled upon. I just picked one out of the slf4j-1.4.2.jar that didn't
have any other downstream dependencies. I am sure slf4j-nop does absolutely
nothing (old school /dev/null style logging) whereas slf4j-simple
On Tue, Nov 3, 2009 at 1:16 AM, Vesa brut...@gmail.com wrote:
Why not with varargs like on below?
case class Link(pathParts: String*)
and I can say Link(a, b)?
At this point, we can't overload the object Link.apply method because the
compiler will get confused.
If this is bothering you
Folks,
Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks
uncover). It's time for everyone to do some testing of their code against
SNAPSHOT. Specifically:
- SNAPSHOT and M7 are compiled against Scala 2.7.7. Please update your
build system and dependencies to
On Mon, Nov 2, 2009 at 3:26 PM, Marcin Jurczuk mjurc...@gmail.com wrote:
Hello,
I would like to use lift ORM(Mapper) without lift, as a part of small
cli app.
I assume that it is possible but question is how to init MetaMapper/
Mapper class/objects without Boot.scala and DB setup inside it
Thank you Troy for the detailed ticket!
A fix is up for review: http://reviewboard.liftweb.net/r/90/
slf4j-simple is preferred common denominator. slf4j-nop is
self-defeating IMHO :)
Good point regarding slf4j-log4j12 for legacy fallback. I have added an
inline note in the POM.
Cheers,
I have not added anything that seems unusual to me. My code looks
just like what I have listed below except for the table and column
names. I am putting Foo.menus into another menu in the SiteMap,
that part seems to be working properly. I have some other tables
that reference this one as a
I would expect that any time the form fails to validate(try clicking
submit without typing a password or a valid email in hellolift) i
would get a message saying what is wrong.
On Nov 3, 12:58 am, Heiko Seeberger heiko.seeber...@googlemail.com
wrote:
2009/11/3 DFectuoso santiago1...@gmail.com
I get the following compiler error when switching from M5 to M6
versions of Lift:
..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView
does not take type parameters
val view: ModelView[User] = new UserView(new User, this)
Here's my code to this point:
class
On Tue, Nov 3, 2009 at 8:56 AM, glenn gl...@exmbly.com wrote:
I get the following compiler error when switching from M5 to M6
versions of Lift:
..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView
does not take type parameters
val view: ModelView[User] = new UserView(new
David,
I understand how to fix the compiler error in my code. Are you
suggesting
I'm better going back to the Snapshots, and taking my chances with
the
many code changes that requires?
Glenn
On Nov 3, 9:06 am, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, Nov 3, 2009 at 8:56 AM,
On Tue, Nov 3, 2009 at 9:11 AM, glenn gl...@exmbly.com wrote:
David,
I understand how to fix the compiler error in my code. Are you
suggesting
I'm better going back to the Snapshots, and taking my chances with
the
many code changes that requires?
You are going to have to make the
David,
To follow up. I'd much rather use Snapshots than Milestones. Interim
is interim, and
I prefer to be in lockstep with the most current code base. But
warnings on this
forum notwithstanding, I have found myself in the past spending a lot
of time fixing
unexpected compiler errors, and I
Yes, changing the binding to the full errors,notices and warning fixed
it, now i just need to override the messages on fail(don't know how to
change those password.must.set and the default password) and i'll be
over this signup thing
On Nov 3, 2:49 pm, DFectuoso santiago1...@gmail.com wrote:
Wow, its working allright, let me compare your code with mine, so far
the only diff is that you are using the full error snippet
lift:Msgs showAll=true
lift:error_classerror/lift:error_class
lift:notice_classnotice/lift:notice_class
2009/11/3 DFectuoso santiago1...@gmail.com
Wow, its working allright, let me compare your code with mine, so far
the only diff is that you are using the full error snippet
lift:Msgs showAll=true
lift:error_classerror/lift:error_class
Folks,
I've got Lift compiling under Scala 2.8. Well, not all of Lift, but enough
of Lift to run the examples program. I had to remove some parts of Mapper
(the type-checker was cranky about some casts) and other parts of Mapper are
subclasses of Scala collection classes (so the new APIs broke
It wasn't able to read the local repository data, and deleting .m2/ didn't
help?
On Tue, Nov 3, 2009 at 12:09 AM, Randinn rand...@gmail.com wrote:
I just had this occur as well with a basic archetype build, cleaned
out the local maven repo and still the same problem.
On Nov 2, 11:49 pm,
Thank you. It's my contribution to the W-JAX Challenge where several web
frameworks compete.
But to be honest: The others are really nicely designed ...
Heiko
2009/11/3 Randinn rand...@gmail.com
Nicely designed site, just to go a bit off-topic, very clean.
On Nov 4, 4:33 am, Heiko Seeberger
I think all you'd need to do is throw some CSS and Jquery in and
you'll there :)
On Nov 4, 6:42 am, Heiko Seeberger heiko.seeber...@googlemail.com
wrote:
Thank you. It's my contribution to the W-JAX Challenge where several web
frameworks compete.
But to be honest: The others are really nicely
What database are you using? MySQL? H2? Other
Please try again with 1.1-SNAPSHOT or wait until tomorrow (Nov 4th) when
1.1-M7 is released.
David fixed some things in Mapper just yesterday (issue # 151) related to
uppercase dbTableName and dbColumnName to remedy a similar Mapper problem we
It sounds good, it's a good new for us!
Congratulations , the M7 is coming !
Cheers,
Neil
On Nov 3, 10:05 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
Folks,
Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks
uncover). It's time for everyone to do
You can find my User.scala file in http://etherpad.com/someScalaCode
(saved on rev 1). I need to add an EULA and thats it tho... i would
like to keep it as simple as possible(i hate the idea of having html
hardcoded in a model, and using signupFields is great! so my only real
issues to solve is
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Wait a minute. You want me to test that my change works--that simple
messages are not multipart--or that other messages still are multipart?
Both.
Test that mail sent as plain text is not multipart and that all
This is on MySQL. I see the same behavior on Oracle.
My key column is a CHAR column rather than VARCHAR. I noticed
that some places in the code check for VARCHAR and CHAR types,
whereas some only check for VARCHAR. I tried hacking the code to
add CHAR in those places, but that did not make
I verified locally via dumbster that the content type is test/plain;
charset=us-ascii for a single PlainMailBodyType. For two, or an
XHTMLMailBodyType, it's multipart/alternative.
Do I still need to contribute a test to Lift?
-
David
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
I verified locally via dumbster that the content type is test/plain;
charset=us-ascii for a single PlainMailBodyType. For two, or an
XHTMLMailBodyType, it's multipart/alternative.
Do I still need to contribute a
2009/11/3 DFectuoso santiago1...@gmail.com
I would expect that any time the form fails to validate(try clicking
submit without typing a password or a valid email in hellolift) i
would get a message saying what is wrong.
That's how it works.
Go to http://174.143.152.248:8080/kix-1.0/ to see
David,
I attempted to follow your blog piece and rewrite the code in
Integrating Flex, BlazeDS, and Scala/Lift, at http://flexonrails.net/?p=103.
Maybe I'm being a bit ambitious to redo this, but when I run just the
Lift portion (without Flex/BazeDS) and make a call to my LiftActor
Nicely designed site, just to go a bit off-topic, very clean.
On Nov 4, 4:33 am, Heiko Seeberger heiko.seeber...@googlemail.com
wrote:
2009/11/3 DFectuoso santiago1...@gmail.com
I would expect that any time the form fails to validate(try clicking
submit without typing a password or a
Wait a minute. You want me to test that my change works--that simple messages
are not multipart--or that other messages still are multipart? Or something
else?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
I asked you how to write one. I have no clue how to unit test email, or
what content type an email is. And the test has to not fail on computers
that don't have an SMTP server, I presume?
I don't know how to write
So then can you answer my last question? What is a safe port to run Dumbster on?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
I verified locally via dumbster that the
On Tue, Nov 3, 2009 at 1:08 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Can someone look at Review Board? Is my addition okay?
Did you write a test?
Also, it's not going into M7, so it's not going to get merged into master
until Thursday.
On Sat, Oct 31, 2009 at 10:00 PM, Naftoli
Hi,
I am using eclipse to write JUnit test.
For the following sample code I am getting error:No Junit tests
found. Where am I going wrong?
package test
import junit.framework.TestCase
class UnitTest extends TestCase{
def test1() ={
println(Hello)
}
}
I asked you how to write one. I have no clue how to unit test email, or what
content type an email is. And the test has to not fail on computers that
don't have an SMTP server, I presume?
As I mentioned on review board, I did test it manually though and it works
fine. Do most commits include a
Let's say I write a test using dumbster. What port will it run on?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Wait a minute. You want me to test that my change works--that
2009/11/3 DFectuoso santiago1...@gmail.com
Yes, changing the binding to the full errors,notices and warning fixed
it, now i just need to override the messages on fail(don't know how to
change those password.must.set and the default password) and i'll be
over this signup thing
Is there any easy way like ActiveRecord's transaction ? I'd prefer
ModelA.transaction { ModelB.transaction {
ModelA.create fill someField save_!;
ModelB delete_! someId
...
}}
If no block-like methods, something like the following is OK
DB.beginTransaction
...
I think it's called DB.use, not sure.
-
night_stalkerusur...@gmail.com wrote:
Is there any easy way like ActiveRecord's transaction ? I'd prefer
ModelA.transaction { ModelB.transaction {
ModelA.create fill someField save_!;
ModelB delete_! someId
well that seems great! I use the snapshot so if you finish that and
want to make someone very happy, you can send me an example of how it
ended up working and i will be very very thankful!
The last piece of the puzzle is the ** default value of the
mappedPassword, since its part of the
2009/11/4 DFectuoso santiago1...@gmail.com
well that seems great! I use the snapshot so if you finish that and
want to make someone very happy, you can send me an example of how it
ended up working and i will be very very thankful!
It is a bug in MappedPassword (not ProtoUser):
I thought of a smarter way to test it. Please tell me if you have any
objections.
I noticed that some of the specs extend the class they test. The idea is to
refactor the call to actually send the email into an outside method. Then,
after making some private members of Mailer protected, the
Thank you. solved:
import net.liftweb.mapper.{DB, DefaultConnectionIdentifier}
DB.use(DefaultConnectionIdentifier) { conn =
conn.setAutoCommit(false)
... // CRUDs
if(success) conn.commit
else conn.rollback
conn.setAutoCommit(true)
}
On Nov 4, 2:52 pm,
2009/11/4 Heiko Seeberger heiko.seeber...@googlemail.com
2009/11/4 DFectuoso santiago1...@gmail.com
well that seems great! I use the snapshot so if you finish that and
want to make someone very happy, you can send me an example of how it
ended up working and i will be very very thankful!
51 matches
Mail list logo