In your students class:
1. declare a teacher object of type MappedLongForeignKey(this,
Role)
In your teacher_student class:
I have a silly question, I don't understand this code that the
Role.
Why is the Role not the teacher_student ?
Cheers,
Neil
On Oct 26, 1:09 pm, Naftoli
I'm a fan of Trac, which is one incarnation of Wiki+Tracking+Planning. I've
set up a repo here:
http://github.com/dchenbecker/LiftTicket
My preference is for this to be an issue tracking system first and a
Wiki/CMS second, but I'm open to any and all ideas on how this can be
fleshed out. I would
Hi,
In CometActor, what's the puropse of fixedRender? What's the
difference/relation to render?
Thanks
Heiko
--
My job: weiglewilczek.com
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net
Hi all;
I have a newbie question, I'm confused with the LiftRules.rewrite
and LiftRules.dispatch.
When we need to use the rewrite and dispatch ?
I feel that they are very similar.
Cheers,
Neil
--~--~-~--~~~---~--~~
You received this message because you
Hi Niel,
Please see:
http://blog.getintheloop.eu/2009/5/3/url-rewriting-with-the-lift-framework
Have a read, that will explain rewriting for you. Dispatching is quite
different; one would use it where you want to supply a response
without a HTML file (for instance, with a json api)
Does
Neil,
Can you zip and send me an example? It's quite likley your missing
something and without seeing the code it's difficult to say.
Cheers, Tim
Sent from my iPhone
On 26 Oct 2009, at 03:54, Neil.Lv anim...@gmail.com wrote:
in the /index.html
### both of them are not work !
Thanks guys!
Maybe i should look at this thread first!
http://groups.google.com.my/group/liftweb/browse_thread/thread/5793917fee419f89
Cheers,
Neil
On Oct 26, 2:21 pm, Neil.Lv anim...@gmail.com wrote:
In your students class:
1. declare a teacher object of type
1:) I create a file in the i18n folder
/src/main/resources/i18n/lift-core_zh_CN.properties
.
login = \u767b\u5f55
logout = \u9000\u51fa
log.in = \u767b\u5f55
log.out = \u9000\u51fa
sign.up = \u6ce8\u518c
logged.in = \u5df2\u7ecf\u767b\u5f55
..
the others are default (copy from
Neil,
If you found this useful we would very much appreciate it if you could
put something on the wiki about it to help people who follow.
Cheers, Tim
On Oct 26, 8:22 am, Neil.Lv anim...@gmail.com wrote:
Thanks guys!
Maybe i should look at this thread first!
Hmm - you posted a link to my article at the begining of this thread;
in that article I explain lifts locale calculator. Without this, Lift
has no idea how you want to handle different locales. By default, the
following is used:
var localeCalculator: Box[HTTPRequest] = Locale =
Thanks Timothy, this thread is very good and helpful.
But the the partial function link maybe broken, :)
http://suereth.blogspot.com/2008/11/using-partial-functions-and-pattern.html
Cheers,
Neil
On Oct 26, 4:09 pm, Timothy Perrett timo...@getintheloop.eu wrote:
Hi Niel,
Please
Hey Indrajit,
No that branch does not work either - im trying to build from the very
root of lift - this should work!! I have the maven plugin in my local
repo and build lots of other scala projects fine; this has only been
an issue since your restructure.
Any ideas what could be going
tryo(r.getParameter(locale)) match {
case Full(null) = workOutLocale
case Empty = workOutLocale
case Failure(_,_,_) = workOutLocale
case Full(selectedLocale) = {
setLocale(selectedLocale)
selectedLocale
}
}
In this code , what's the tryo ? is try ?
tryo ()
lift:loc locid=loginLog in 222/lift:loc
That means this code is correctly, the problem is that the browser
doesn't know the locale?
So we need to calculate the locale in the Boot.scala file ?
Cheers,
Neil
On Oct 26, 5:09 pm, Neil.Lv anim...@gmail.com wrote:
Yes, your template code is right - your just seeing the default value
because you have not told lift what resources to use when it gets the
locale header from the browser.
tryo() is like try/catch however, it will catch exceptions and returns
Box[T]
I would really suggest starting with
Hi,
I'm using the same rewriting code as in CRUDify, so that URLs like
tender/results/2
show a result page for the tender with id 2. This page contains lots of
snippets, defined (as in CRUDify) within a SnippetTest partial function.
The page renders fine when hit for the first time. The user
Tim,
That's confusing to me too. I was trying to see if it has something
related to the problem that affects Netbeans. Looks like it's not.
Can you please send me the output of mvn goal with -X switch?
Cheers, Indrajit
On 26/10/09 2:23 PM, Timothy Perrett wrote:
Hey Indrajit,
No that
I have a silly question , where is the setLocale method ?
I don't know where the package located.
src\main\scala\bootstrap\liftweb\Boot.scala:63: error: not found:
value setLocale
setLocale(selectedLocale)
:)
Cheers,
Neil
On Oct 26, 5:50 pm, Timothy Perrett timo...@getintheloop.eu
setLocale was a method created by me, specific to my application - it
does not exist in Lift... hence why I removed it in my simplified
example.
Cheers, Tim
On 26 Oct 2009, at 11:45, Neil.Lv wrote:
I have a silly question , where is the setLocale method ?
I don't know where the
...
Where is the locale to be set that the browser can know the
locale ?
Thanks very much!
Cheers,
Neil
On Oct 26, 7:50 pm, Timothy Perrett timo...@getintheloop.eu wrote:
setLocale was a method created by me, specific to my application - it
does not exist in Lift... hence why I
Probably a copy-paste error.
-
Neil.Lvanim...@gmail.com wrote:
In your students class:
1. declare a teacher object of type MappedLongForeignKey(this,
Role)
In your teacher_student class:
I have a silly question, I don't understand this code
The browser already knows the locale, you have it backward! Your
localeCalculator is so that the browser can get lift to return the
right content.
Take a look at:
http://scala-tools.org/mvnsites/liftweb-1.1-M6/lift-webkit/scaladocs/net/liftweb/http/provider/HTTPRequest.html
I would start
http://www.123maza.com/domain-web-design/earn-money/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send
I feel the information of this page is less for me,
but Thanks all the same ! :)
Cheers,
Neil
On Oct 26, 9:12 pm, Timothy Perrett timo...@getintheloop.eu wrote:
The browser already knows the locale, you have it backward! Your
localeCalculator is so that the browser can get lift to
Hello,
I use the _toForm method of the MappedFields. Why do they not have
a
field for specifing a CSS-class by default. Ok, it is easy to override
the
_toForm method, but I think there may be a reason that such a field is
not
provided by default???
hyperion
is there a list of Lift-compatible versions of software? i'm still
struggling with actual (from maven) or rumored (from private
conversations) incompatibilities among scala, lift, IntelliJ, IntelliJ
scala plugin, Databinder Dispatch. and the best the maven plug-in
seems to be able do is tell me
SetHtml(msg, Text(hello)) After(1 minute, SetHtml(msg, Empty))
-Ross
On Oct 25, 2009, at 9:03 PM, sunanda wrote:
Hi,
I need to display a message only for few seconds using SetHtml.
E.g. SetHtml(msg,Text(Hello)).
How can I do this
Thanks.
Sunanda
Lift 1.0.2, 1.1-M6 and 1.1-SNAPSHOT are all Scala 2.7.5. 2.7.5 is the
latest stable release of Scala. If you want to use a 2.7.4 or 2.7.6
compiled library, it should work (the changes across 2.7.4-2.7.6 do not
trigger any of the trait inheritance problems.)
You can consult your library for what
Cool feature. Please open a ticket at
http://github.com/dpp/liftweb/issuesfor formStyle: Box[String] and
formClass: Box[String] on MappedField
On Mon, Oct 26, 2009 at 7:46 AM, hyperion hyperion1...@googlemail.comwrote:
Hello,
I use the _toForm method of the MappedFields. Why do they not
Dispatch requires 2.7.6, but Josh Suereth told me not to use 2.7.6
with Lift http://groups.google.com/group/maven-and-scala/msg/0f0574b08d72
this is why i'm suggesting there needs to be a single voice for Lift
for version compatibility
On Oct 26, 11:55 am, David Pollak
Bob,
This is not right. Dispatch can use 2.7.5... I have a lift project
running on 1.1-SNAPSHOT that works seamlessly with dispatch and lift
within the same lift app.
Cheers, Tim
On 26 Oct 2009, at 16:05, bob wrote:
Dispatch requires 2.7.6, but Josh Suereth told me not to use 2.7.6
On Mon, Oct 26, 2009 at 9:05 AM, bob rbpas...@gmail.com wrote:
Dispatch requires 2.7.6, but Josh Suereth told me not to use 2.7.6
Don't use 2.7.6 period. It's a very broken release of Scala.
with Lift
http://groups.google.com/group/maven-and-scala/msg/0f0574b08d72
this is why i'm
Further to my last email, checkout the numerous versions of dispatch
latest:
http://scala-tools.org/repo-releases/net/databinder/
n8han makes sure that he is 2.7.5 compatible.
Cheers, Tim
On 26 Oct 2009, at 16:05, bob wrote:
Dispatch requires 2.7.6, but Josh Suereth told me not to use
On Sun, Oct 25, 2009 at 10:46 PM, Heiko Seeberger
heiko.seeber...@googlemail.com wrote:
I agree, the names could be improved.
Is there still a chance to do so?
No. This code was in the repository for 1 month and was well advertised.
The time to make suggestions was while the code was in a
There are parts of a comet component that may not change on every render
of the component. For example, if a Chat component were to re-render its
whole self on every chat message, the input box would be re-rendered,
erasing any in-process input. So, there's a fixed part of the the comet
The ajax rendering is not done in the same SiteMap context as the full page
request, so the page-specific snippets are not being accessed. This is an
interesting problem and deserves a ticket. I'll capture the current custom
snippet context when ajax requests for a given page are executed.
On
David Pollak feeder.of.the.be...@gmail.com writes:
The ajax rendering is not done in the same SiteMap context as the full page
request, so the page-specific snippets are not being accessed. This is an
interesting problem and deserves a ticket. I'll capture the current custom
snippet
On Mon, Oct 26, 2009 at 9:52 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
David Pollak feeder.of.the.be...@gmail.com writes:
The ajax rendering is not done in the same SiteMap context as the full
page
request, so the page-specific snippets are not being accessed. This is
an
Thank you for your very detailed answer!
Heiko
2009/10/26 David Pollak feeder.of.the.be...@gmail.com
There are parts of a comet component that may not change on every render
of the component. For example, if a Chat component were to re-render its
whole self on every chat message, the input
Don't know. It would be neat if someone would write a compiler plugin to
generate ispace diagrams (an eclipse plugin). Probably not very hard.
-
Hanneshannes.flo...@gmx.li wrote:
Hi Lifters,
Is there a way to automatically generate a Diagram (e.g. UML)
from http://www.scala-lang.org/downloads/
Current Stable Release: The current version of Scala is 2.7.6
if Lift doesnt support 2.7.6, then maybe the Lift POM needs to say so.
or at least the Downloads page should warn.
On Oct 26, 12:12 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
I have made a test that worked. I have modified my code like this:
newUser.save
newUser.devices += newDevice
newUser.save
The newDevice was already saved. It looks like both parents
fixedRender sounds very useful and was something I didn't know about.
How do you use it? Do you call render from within fixedRender?
Peter Robinett
On Oct 26, 9:40 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
There are parts of a comet component that may not change on every render
of
On Mon, Oct 26, 2009 at 11:43 AM, GA my_li...@me.com wrote:
I have made a test that worked. I have modified my code like this:
newUser.save
newUser.devices += newDevice
newUser.save
Thanks for the answer.
I understand now. But I have a follow up question. This is the code
for my relationship table, which I've done following some examples and
previous discussions about this subject:
class UserDevice extends LongKeyedMapper[UserDevice] with IdPK {
def getSingleton =
It would be feasible to refactor ManyToMany to remove this restriction.
OneToMany does not require either side to be saved first.
Can you describe a use case where it would be desirable?
-
Jim Barrowsjim.barr...@gmail.com wrote:
On Mon, Oct 26, 2009 at 11:43
Thanks, David. To make sure I'm not confused, the fixed part isn't
redrawn by render because render binds to bodyArea, not the inputArea
bound in fixedRender?
Peter
On Oct 26, 11:45 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
The flot demo in lift-examples/flotDemo on github.com/dpp/liftweb
won't compile because of the following errors:
lift/lift-examples/flotDemo/src/main/scala/net/liftweb/flot_demo/web/
comet/FlotCometExample.scala:34: error: type mismatch;
found : net.liftweb.flot_demo.web.comet.FlotCometExample
That is exactly what I described above does. jsFunc: Call is the
javascript function call that will receive an extra parameter which is
the function that does your Ajax call. You can choose whne to invoke
the ajax call.
Do you need a more concrete example?
Br's,
Marius
On Oct 26, 4:07 am,
That's a start but I'm sure we don't want broken code in the
repository! =)
Peter
On Oct 26, 12:48 pm, Java1Guy mark.cha...@gmail.com wrote:
I got it to run pretty easily by locally back porting to 1.1m4.
Just change back the one package name change, IIRC.
Otherwise it was becoming a big rat
Yes please, file a ticket.
Just noticed, oddly flotDemo isn't part of the reactor either (not
listed as sub-module for lift-examples). Would have been trapped by now
otherwise.
Cheers, Indrajit
On 27/10/09 12:54 AM, Peter Robinett wrote:
The flot demo in lift-examples/flotDemo on
David Pollak feeder.of.the.be...@gmail.com writes:
On Mon, Oct 26, 2009 at 9:52 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
David Pollak feeder.of.the.be...@gmail.com writes:
The ajax rendering is not done in the same SiteMap context as the full
page
request, so the page-specific
Listing 2.7: The Embedded Expense Table in the LiftBook.pdf, page
19, has a great example of generating individual rows of a table.
But lets say you wanted to generate the columns in the table, as well
as the rows.
is there a good example of how to do this in a template+snippet?
TIA, bob
PS: I know I can generate the TABLE, THEAD, TBODY, TR and TD elements
directly in my snippet (although SHtml doesnt seems to be geared
towards FORMs, rather than HTML generation like htmlKona)
On Oct 26, 4:30 pm, bob rbpas...@gmail.com wrote:
Listing 2.7: The Embedded Expense Table in the
Sorry I can't give you code, but the key here is the the BindParam can take a
function from a NodeSeq to a NodeSeq. Say each column represents a field.
eachfield - bindIndividualFields
where bindIndividalField is a function that takes and returns a NodeSeq. Its
input will be the contents of
I was just thinking about your question. If you want Paginator to generate
links with query parameters indeed it's not straightforward. But if you want to
optionally allow users to specify the page in the URL, add code like the
following in a (possibly anonymous) subclass of Paginator (example
On Mon, Oct 26, 2009 at 12:05 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
It would be feasible to refactor ManyToMany to remove this restriction.
OneToMany does not require either side to be saved first.
Can you describe a use case where it would be desirable?
I don't think there is.
Thanks, Naftoli -- so are you suggesting a separate template for the
TD and for the TR? bind the TD template, and then concatenate them up
for each row?
nevertheless, I started out with this:
var columns : Set
def buildHeader : NodeSeq = {
TR{columns.map{TD{_}/TD}.reduceLeft(_+_)) }/TR
What do you mean by that? Every primary key is unique.
-
Jim Barrowsjim.barr...@gmail.com wrote:
On Mon, Oct 26, 2009 at 12:05 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
It would be feasible to refactor ManyToMany to remove this restriction.
Thanks Ross
On Oct 27, 2:33 am, Ross Mellgren dri...@gmail.com wrote:
SetHtml(msg, Text(hello)) After(1 minute, SetHtml(msg, Empty))
-Ross
On Oct 25, 2009, at 9:03 PM,sunandawrote:
Hi,
I need to display a message only for few seconds using SetHtml.
E.g. SetHtml(msg,Text(Hello)).
bob rbpas...@gmail.com writes:
Listing 2.7: The Embedded Expense Table in the LiftBook.pdf, page
19, has a great example of generating individual rows of a table.
But lets say you wanted to generate the columns in the table, as well
as the rows.
is there a good example of how to do this
On Mon, Oct 26, 2009 at 12:20 PM, Peter Robinett pe...@bubblefoundry.comwrote:
Thanks, David. To make sure I'm not confused, the fixed part isn't
redrawn by render because render binds to bodyArea, not the inputArea
yep
bound in fixedRender?
Peter
On Oct 26, 11:45 am, David Pollak
On Mon, Oct 26, 2009 at 2:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
What do you mean by that? Every primary key is unique.
The pivot table is typically only 2 columns, which are the PK's for each
side of the MTM.
---- ---
that's nice. thank you
On Oct 26, 6:04 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
bob rbpas...@gmail.com writes:
Listing 2.7: The Embedded Expense Table in the LiftBook.pdf, page
19, has a great example of generating individual rows of a table.
But lets say you wanted to generate
Do you mean foreign keys? Why does that preclude linking them before they're
saved? OneToMany also uses a foregn key / primary key relationship, and you can
use LongMapperMapper.
-
Jim Barrowsjim.barr...@gmail.com wrote:
On Mon, Oct 26, 2009 at 2:36 PM,
Folks,
We are scheduled to release Lift 1.1 Milestone 7 on Wednesday November 4th.
We would like to release M7 against Scala 2.7.7 final if EPFL's schedule can
accommodate this.
We are going into code-slush on Thursday October 29th (this means we're not
going to make material changes to the
Folks,
may I suggest cutting a Lift 1.1 Milestone 7 branch and deploy from that?
(It'd eliminate the potential problems of synchronizing on a master/HEAD
freeze)
On Tue, Oct 27, 2009 at 12:18 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
Folks,
We are scheduled to release Lift 1.1
Hi,
When using ajaxSelectObj and I have the currently selected object in a
SessionVar and refreshes the page, the selected object is not selected
in the browser after the page refresh, even if the generated html has
the correct selected=selected option.
This only happens on Firefox (OS X), not
On Mon, Oct 26, 2009 at 4:24 PM, Viktor Klang viktor.kl...@gmail.comwrote:
Folks,
may I suggest cutting a Lift 1.1 Milestone 7 branch and deploy from that?
(It'd eliminate the potential problems of synchronizing on a master/HEAD
freeze)
And it makes it more complex to figure out what to
On Tue, Oct 27, 2009 at 12:34 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
On Mon, Oct 26, 2009 at 4:24 PM, Viktor Klang viktor.kl...@gmail.comwrote:
Folks,
may I suggest cutting a Lift 1.1 Milestone 7 branch and deploy from that?
(It'd eliminate the potential problems of
Is there any way to do this, but have it match on OR instead of AND?
User.findAll(Like(User.firstName, % + q + %), Like(User.lastName,
% + q + %))
I couldn't see a way to do it, so I tried out BySQL instead. However,
when I put in the % wildcards I get a sql exception..
User.findAll(
I am trying to display the message for 2 seconds and remove the
message using following code. It is displaying the meassage but not
removing after 2 seconds. Where am I going wrong.
SetHtml(editcoldefmsg,Text(Edited Column Definition
+coldef.displayname)) After(2 seconds,
Could someone fix #121 (loginRedirect using S.uri; not getting part after '?')
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Mon, Oct 26, 2009 at 4:24 PM, Viktor Klang viktor.kl...@gmail.comwrote:
Folks,
may I suggest cutting a Lift 1.1 Milestone
I have an ExtJS form that it failing in IE7 Standards mode (works fine
on IE8 or in quirks mode on IE7). I don't want to force quirks mode on
all browsers or serve the form improperly. I read that inserting a
comment between the XML processing tag and the DOCTYPE declaration will
force IE7 to
Hi,
I need to retain the value of gridid throughout the session.
The sample code is given below.
object gridid extends RequestVar(S.param(gridid) openOr )
class CreateDominoColDefinition extends StatefulSnippet{
def dispatch = {
case createColDef = createColDef _
}
def
75 matches
Mail list logo