Yoryos,
You probably missed the part where you can add a head element inside the
surround tags and it will replace the default element:
lift:surround with=default2 at=content
head
titleA better title than the one in default.html/title
/head
h2Welcome to your project!/h2
Try posting your conceptual questions to the list. Maybe folks here can
help, and once we understand what you need, we can look into providing
some documentation to support it.
No book can fill all needs. Lots of people just want clear examples and
can go from there. The Lift book addresses
Nope, it's in there. Thanks.
刘浩 wrote:
I think you need to add snapshots repository in your pom.xml
repositories
repository
idscala-tools.org http://scala-tools.org/id
nameScala-Tools Maven2 Repository/name
urlhttp://scala-tools.org/repo-releases/url
Nope. Now it just can't find the lift-jpa jar.
Thanks.
Chas.
Atsuhiko Yamanaka wrote:
Hi,
On Sun, May 31, 2009 at 9:37 AM, c...@munat.com wrote:
Missing:
--
1) org.scala-libs:scalajpa:jar:1.1-SNAPSHOT
Instead of the artifactId for scalajpa, I think that problem will be
Yes looks like this is exactly what you would need. Please see
partialUpdate from CometActor. As an example you can see sites/example/
src/main/scala/net/liftweb/example/comet/Clock.scala. partialUPdate
function returns a JsCmd but there are of course implicit conversions
between JsExp and JsCmd.
class SomeSnippet {
val foo: Box[Foo] = tryo(session1.get(S.param(id).getOrElse
())) // But I think with this code you'll always get a Full Box due
to getOrElse ?
def render(func: foo = NodeSeq) = foo.map(l = func(l)) openOr
(your code in case foo is empty and potentially return
A couple of years ago I did the same thing with drag and drop ... but
I wrote the JS code, and for some reason I didn't really look for an
existent solution :) ... I think I still have the damn thing and if
you want to I could send it to you.
On May 31, 3:01 am, Derek Chen-Becker
Agreed with Tim. I also don't see any value. And the point of viewing
the template statically is not an argument to me because the template
is still incomplete for a proper rendering, xhtml browser would
probably complain about prefixes it doesn't know about etc.
Br's,
Marius
On May 31, 5:32
I just checked repository. I think no 1.1-SNAPSHOT for scalajpa.
Only 1.0-SNAPSHOT their.
That should be the problem.
2009/5/31 Charles F. Munat c...@munat.com
Nope. Now it just can't find the lift-jpa jar.
Thanks.
Chas.
Atsuhiko Yamanaka wrote:
Hi,
On Sun, May 31, 2009 at 9:37 AM,
And also a thread scalajpa 1.1 you could follow.
http://groups.google.com/group/liftweb/browse_thread/thread/3dc4c71216a24e6c?pli=1
2009/5/31 刘浩 sniperliu...@gmail.com
I just checked repository. I think no 1.1-SNAPSHOT for scalajpa.
Only 1.0-SNAPSHOT their.
That should be the problem.
Now you mention it though, it might well work quite nicely. Talk to me
Viktor - what are you thinking?
Cheers, Tim
On 31/05/2009 14:10, Viktor Klang viktor.kl...@gmail.com wrote:
Couldn't they just define an XSLT template to view the lift templates with?
That helped. Thanks.
刘浩 wrote:
And also a thread scalajpa 1.1 you could follow.
http://groups.google.com/group/liftweb/browse_thread/thread/3dc4c71216a24e6c?pli=1
2009/5/31 刘浩 sniperliu...@gmail.com mailto:sniperliu...@gmail.com
I just checked repository. I think no 1.1-SNAPSHOT
No, because they're intended to be formatting for the Scaladoc. Note that I
escape entities within the table that should be displayed.
Derek
On Sat, May 30, 2009 at 9:38 AM, Timothy Perrett timo...@getintheloop.euwrote:
Just an off the wall shot, but do the entities have to be encoded? E.g.
Try shooting David B a mail offline he¹s the vscaladoc master Not sure
that he watches the lift list too much these days. Having said that I¹ve not
seen him on Gtalk for sometime so not sure what his movements are.
Cheers, Tim
On 31/05/2009 22:50, Derek Chen-Becker dchenbec...@gmail.com
The velocity warnings are normal. What you're seeing may be a bug. I haven't
tested the archetype since the change to 2.7.4, so it may be related. I'll
test it out this week.
Derek
On Sat, May 30, 2009 at 6:38 PM, c...@munat.com wrote:
I tried again, running this:
mvn archetype:generate \
Hi,
On Sun, May 31, 2009 at 4:30 PM, Charles F. Munat c...@munat.com wrote:
Nope. Now it just can't find the lift-jpa jar.
Liftweb project recommends to use 'lift-jpa'.
Refer to the content of its pom file[1].
scalajpa.jar 1.1 will be downloaded from
If it's not too much trouble to find that would be great, but don't work too
hard searching :
Derek
On Sun, May 31, 2009 at 2:59 AM, marius d. marius.dan...@gmail.com wrote:
A couple of years ago I did the same thing with drag and drop ... but
I wrote the JS code, and for some reason I
Compare two cases. First:
class SnippetName {
object oVar extends RequestVar(O.create)
def processAdd(o: O) { ... }
def add(xml: NodeSeq): NodeSeq = {
bind (f, xml,
field - SHtml.text(oVar.is.field, oVar.is.field(_)),
submit - SHtml.submit(Submit, () = processAdd(oVar.is)
No! I didn't missed that part. Like Xavi said the benefit is a valid
html page. It would be much more intresting having something like
html xmlns=http://www.w3.org/1999/xhtml; xmlns:lift=http://
liftweb.net/
head!-- I don't not if it's valid to just not even have a head tag
when we don't want to
As I proceed to enhance the ToDo example, I have added a new field to
the ToDo.scala model:
object dueOn extends MappedDateTime(this) {
final val dateFormat = DateFormat.getDateInstance
(DateFormat.SHORT)
override def asHtml = Text(dateFormat.format(is))}
Next, I added a binding in the
Folks,
There's nothing that Lift does magically with lift:surround/ or
lift:embed/ They just replace XML nodes.
If you want to structure your apps to not have surround or embed, that's
fine. If you want to surround or embed at different points in your files,
totally cool. Do it however you
class SomeSnippet {
implicit def boxOpener(in: Box[NodeSeq]): NodeSeq = in openOr
{S.error(Inactive); S.redirectTo(S.referer openOr /)}
def showA(xhtml: NodeSeq): NodeSeq =
for {
id - S.param(id)
info - session1.get(id)
} yield bind(foo, xhtml, thing - info.x)
}
The implicit
22 matches
Mail list logo