On Thu, Dec 4, 2008 at 2:41 PM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
> OK, I see them now. I'm writing up a little section on sharding and these
> methods feel like they're not quite what I would want to use. Specifically,
> they're using different criteria for insert and retrieval, which m
Hi,
I use the generated API documentation almost every day - thanks a lot for
that!
The documentation (http://scala-tools.org/mvnsites-snapshots/liftweb/lift-
webkit/scaladocs/index.html) used to be updated from trunk (I think :). The
current pages are not current, newly added things like SHtml
Sorry, I forgot to mention that this would have to hook into the QueryParams
code as well. I don't know if it could be made type safe in the sense that
omitting the shard field in the params would throw a compile error, but at
least the selection would be uniform.
Derek
On Thu, Dec 4, 2008 at 4:4
OK, I see them now. I'm writing up a little section on sharding and these
methods feel like they're not quite what I would want to use. Specifically,
they're using different criteria for insert and retrieval, which makes it
seem like things would get lost. In the example posting I referenced
earli
On Thu, Dec 4, 2008 at 2:05 PM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
> OK, one last question for today before I start hacking at the text: You
> mention some methods here for multiple databases with a single entity:
On KeyedMetaMapper, override:
def dbSelectDBConnectionForFind: PartialFu
OK, one last question for today before I start hacking at the text: You
mention some methods here for multiple databases with a single entity:
http://groups.google.com/group/liftweb/msg/76c965c189a85103?pli=1
But looking in the code I can't find those methods. Are they essentially
gone now? You a
Of course! If it had teeth, it would have bit me.
I'll dig into that code.
Thanks David!!
Dano
On Dec 4, 1:06 pm, "David Pollak" <[EMAIL PROTECTED]>
wrote:
> Dan,
>
> In the Buy a Feature SVN repository, look in the stress_test directory.
> It's got code that uses the testkit.
>
> Thanks,
>
Cool. I guess I'm editing my chapter this afternoon now :)
On Thu, Dec 4, 2008 at 3:40 PM, David Pollak
<[EMAIL PROTECTED]>wrote:
>
>
> On Thu, Dec 4, 2008 at 7:33 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
>
>> I'm mostly done with the rough draft of our Record/Mapper chapter and I
>> wante
Hi Tyler,
Thanks for your response.
The closest code to what I am looking for is under the sites/example/
src/test area. Under this area, the WikiUsages.scala code is a nice
example of how to test a web page. It uses a jwebunit WebTester class
to browse the page and perform tests on it.
Since
On Thu, Dec 4, 2008 at 7:33 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
> I'm mostly done with the rough draft of our Record/Mapper chapter and I
> wanted to clarify a few points to make sure that my reading of the docs and
> code is accurate:
>
>1. ByRef appears to me to essentially be an
Dan,
In the Buy a Feature SVN repository, look in the stress_test directory.
It's got code that uses the testkit.
Thanks,
David
On Thu, Dec 4, 2008 at 10:26 AM, Dano <[EMAIL PROTECTED]> wrote:
>
> Hello Fellow Lifters!
>
> I am working on a set of REST APIs for a new Innovation Game and was
>
On Thu, Dec 4, 2008 at 12:38 PM, Marius <[EMAIL PROTECTED]> wrote:
>
>
>
> On Dec 4, 10:29 pm, "David Pollak" <[EMAIL PROTECTED]>
> wrote:
> > On Thu, Dec 4, 2008 at 12:24 PM, Marius <[EMAIL PROTECTED]> wrote:
> >
> > > Unless I'm missing something LiftRules.addTemplateBefore should
> > > suffice.
On Dec 4, 10:29 pm, "David Pollak" <[EMAIL PROTECTED]>
wrote:
> On Thu, Dec 4, 2008 at 12:24 PM, Marius <[EMAIL PROTECTED]> wrote:
>
> > Unless I'm missing something LiftRules.addTemplateBefore should
> > suffice. Lift (see findVisibleTemplate which is called before
> > processSurroundAndInclude
Cool, I missed the viewDispatch call in findAnyTemplate. As always, you're
one step ahead :)
Derek
On Thu, Dec 4, 2008 at 2:28 PM, David Pollak
<[EMAIL PROTECTED]>wrote:
>
>
> On Thu, Dec 4, 2008 at 11:27 AM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
>>
>> I am indeed talking about lift:surround
Hey Dano,
For getting examples of how to write tests, the main tree has a bunch
of tests in it:
http://github.com/dpp/liftweb/tree/master/lift/src/test
and
http://github.com/dpp/liftweb/tree/master/sites/example/src/test/
Poke around and you'll see that most of the tests are Specs
+Scalacheck.
Joachim,
I've put code into 0.10-SNAPSHOT that will emit JNDI get/release (close)
debug information if you've got your log level set to debug.
Please run the code and see what's happening. Alternatively, if you could
put together a simple example of the problem so that I can reproduce it
locally
On Thu, Dec 4, 2008 at 12:24 PM, Marius <[EMAIL PROTECTED]> wrote:
>
> Unless I'm missing something LiftRules.addTemplateBefore should
> suffice. Lift (see findVisibleTemplate which is called before
> processSurroundAndInclude) will look for your template so your Pf can
> return it virtually from
On Thu, Dec 4, 2008 at 11:27 AM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
> I am indeed talking about lift:surround :)
>
> I see processSurroundAndInclude and what it does, but what i really
> want to do it set the content of the surround dynamically (from a
> layout i'll store in the DB)
>
> How
Unless I'm missing something LiftRules.addTemplateBefore should
suffice. Lift (see findVisibleTemplate which is called before
processSurroundAndInclude) will look for your template so your Pf can
return it virtually from anywhere.
Br's,
Marius
On Dec 4, 10:10 pm, "Derek Chen-Becker" <[EMAIL PROT
Ahh. What would make this really simple is if LiftRules.finder was a PF
instead of a straight def, since LiftRules.finder is what actually tries to
locate the template using ClassLoader.getResourceAsStream currently. In the
meantime, you might have luck with LiftRules.liftTagProcessing. You can
def
I am indeed talking about lift:surround :)
I see processSurroundAndInclude and what it does, but what i really
want to do it set the content of the surround dynamically (from a
layout i'll store in the DB)
How would one go about doing this?
Cheers
Tim
On Dec 4, 7:01 pm, "Derek Chen-Becker"
Are you talking about tags? Those are handled in
LiftSession.processSurroundAndInclude, line 697. Here's some example code
for a utility method from an old app that uses it in some DispatchPFs I was
running:
def process (xhtml : NodeSeq) : XmlResponse = {
val data = {xhtml}
XmlResponse(
Sorry, I thought Hudson would update the docs and it was still showing it
without the parameter. Should have checked the source :(
Derek
On Thu, Dec 4, 2008 at 12:08 PM, David Pollak <[EMAIL PROTECTED]
> wrote:
>
>
> On Thu, Dec 4, 2008 at 6:46 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
>
>
Hey guys,
Within lift, I cant seem to find where the content returned from
whatever template mech then gets bound to the layout content?
Can someone point me in the right direction?
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subsc
Hello Fellow Lifters!
I am working on a set of REST APIs for a new Innovation Game and was
browsing around the lift group for advice on how this is done.
>From one of dpp's posts, I gathered that lift-testkit is what I should
use. Has anyone used lift-testkit to test REST api's or know of any
s
On Thu, Dec 4, 2008 at 6:46 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:
> Another follow up on the SQL validation; OrderBySql needs the audit as
> well. As a test, the following SQL fragment works in PostgreSQL:
>
I added the validation to OrderBySql yesterday.
>
> val stmt = conn.createSta
Josh,
Worked like a "charm". Thanks a lot!
(maven looks like voodoo to me. I am just glad I am not expected to dance
around my laptop and poke a wax model of a mouse)
On Thu, Dec 4, 2008 at 8:01 PM, Josh Suereth <[EMAIL PROTECTED]>wrote:
> Here's your issue:
>
> [INFO] Archetype repository miss
I'm mostly done with the rough draft of our Record/Mapper chapter and I
wanted to clarify a few points to make sure that my reading of the docs and
code is accurate:
1. ByRef appears to me to essentially be an old-style join (using the
where clause instead of join syntax). Is that accurate?
Another follow up on the SQL validation; OrderBySql needs the audit as well.
As a test, the following SQL fragment works in PostgreSQL:
val stmt = conn.createStatement()
stmt.executeQuery("select * from members order by userid; create table dummy
(id serial primary key);")
It throws an exception
Here's your issue:
[INFO] Archetype repository missing. Using the one from
[net.liftweb:lift-archetype-blank:RELEASE ->
http://scala-tools.org/repo-releases] found in catalog internal
It's not pulling from the snapshot repository.
Try using archetype:create instead of archetype:generate. (The
On Thu, Dec 4, 2008 at 6:39 PM, David Bernard <[EMAIL PROTECTED]>wrote:
>
> It's the correct server.
>
> Could you retry (the command from the initial mail) with "-e" argument
> at end (to print error + stackstrace) ?
Here is the whole trace:
~/local/apache-maven-2.0.9/bin/mvn archetype:generat
On Thu, Dec 4, 2008 at 5:40 PM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
>
>
> Regarding my previous note with the maven command, can you check the
> pom.xml
> of the generated project and tell us if is 2.7.1 or 2.7.2 ?
>
It is 2.7.1.
These are the the choices I made (interactively):
Choose a
It's the correct server.
Could you retry (the command from the initial mail) with "-e" argument
at end (to print error + stackstrace) ?
On Thu, Dec 4, 2008 at 13:10, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
>
> Pinging scala-tools.org works no worries for me. It does appear that
> liberty.harpoo
Pinging scala-tools.org works no worries for me. It does appear that
liberty.harpoon.me points to that server as well. No biggy tho, 2 domains
pointing to the same server that is.
Regarding my previous note with the maven command, can you check the pom.xml
of the generated project and tell us if
Ping gives me this somewhat suspicious result (harpoon.me ?)
PING scala-tools.org (64.27.11.180) 56(84) bytes of data.
64 bytes from liberty.harpoon.me (64.27.11.180): icmp_seq=1 ttl=50 time=281
ms
Do you guys get the same? I am sorry if this is getting off-topic for Lift,
but I am stuck miserabl
On Thu, Dec 4, 2008 at 10:52, Harshad RJ <[EMAIL PROTECTED]> wrote:
>
>
> On Thu, Dec 4, 2008 at 3:02 PM, David Bernard <[EMAIL PROTECTED]>
> wrote:
>>
>> On Thu, Dec 4, 2008 at 09:22, Harshad RJ <[EMAIL PROTECTED]> wrote:
>> > That's strange!
>> >
>> > I did see those tips on blowing away ~/.m2,
Hi,
I have a lift application running in a tomcat container (using 0.10-SNAPSHOT)
using a MySQL database. Tomcat is setup to provide connections via JNDI.
It runs very well. But now it has happened twice that the connection to MySQL
fails. In the log appears a section which says that the connect
Hi,
Actually my mind keeps flipping between SEAM and Liftweb, for months.
Today my feeling is I should focus on the JPA for my project in Java
using seam generate, then to take the JPA across to the Liftweb
environment and to program my website in Liftweb. Since my database is
big, nearly 100 ta
On Thu, Dec 4, 2008 at 3:02 PM, David Bernard <[EMAIL PROTECTED]>wrote:
>
> On Thu, Dec 4, 2008 at 09:22, Harshad RJ <[EMAIL PROTECTED]> wrote:
> > That's strange!
> >
> > I did see those tips on blowing away ~/.m2, and in fact, I had started
> with
> > a clean Fedora install.
> >
> > For extra me
On Thu, Dec 4, 2008 at 2:35 PM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> Personally, I wouldnt bother with those long commands, I find there
> impossible to remember! Try:
>
> mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/
This sort-of worked. It did create the pro
On Thu, Dec 4, 2008 at 09:22, Harshad RJ <[EMAIL PROTECTED]> wrote:
> That's strange!
>
> I did see those tips on blowing away ~/.m2, and in fact, I had started with
> a clean Fedora install.
>
> For extra measure, I tried removing ~/.m2 now, and I still get the same
> error...
>
> One thing I not
Guys,
Personally, I wouldnt bother with those long commands, I find there
impossible to remember! Try:
mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/
This will present you with an interactive shell - just answer the
questions and it will create a skeleton project for you.
Yo
That's strange!
I did see those tips on blowing away ~/.m2, and in fact, I had started with
a clean Fedora install.
For extra measure, I tried removing ~/.m2 now, and I still get the same
error...
One thing I notice is that, at this location:
http://scala-tools.org/repo-snapshots/net/liftweb/lif
43 matches
Mail list logo