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 a
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 th
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" wrote:
>
>
> in the /index.html
> ### both of them are not work !
> Log in
> Log in
>
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" wrote:
> In your "students" class:
>1. declare a "teacher" object of type "MappedLongForeignKey(this,
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 lift-core
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" wrote:
> Thanks guys!
>
> Maybe i should look at this thread first!
> http://groups.google.com.my/group/lift
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 =
defaultLocaleCa
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 wrote:
> Hi Niel,
>
> Please see:
>
> http://blog.get
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 wro
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 ?
tr
Log in 222
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" wrote:
> tryo(r.getParameter("locale")) match {
> case Full(null) => wor
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 som
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 c
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 wrote:
> Yes, your template
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 pac
...
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 wrote:
> setLocale was a method created by me, specific to my application - it
> does not exist in Lift... hence why I removed it in my simp
Probably a copy-paste error.
-
Neil.Lv 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 that th
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 wi
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 em
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 wrote:
> The browser already knows the locale, you have it backward! Your
> localeCalculator is so that the browser can get lift to return the
> right c
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 ab
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 wrote:
>
> Hello,
>
> I use the "_toForm" method of the MappedFields. Why do they not have
> a
> field for spec
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
wrote:
> Lift 1.0.2,
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
> w
On Mon, Oct 26, 2009 at 9:05 AM, bob 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 suggesting th
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 2
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
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
compone
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 Mo
David Pollak 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 context when ajax requests for a
On Mon, Oct 26, 2009 at 9:52 AM, Jeppe Nejsum Madsen wrote:
>
> David Pollak 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.
Thank you for your very detailed answer!
Heiko
2009/10/26 David Pollak
> 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,
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.
-
Hannes wrote:
Hi Lifters,
Is there a way to automatically generate a Diagram (e.g. UML) from
existing source fi
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
wrote:
>Lift is always on the most rec
Hello guys,
I have a many-to-many relationship between two mappers called, Users
and Devices.
There is also an API that receives and XML message that contains one
user and one device.
The API could create the Device and User with the relationship or it
could create only the relationship in
my bad, i missed it. thanks
On Oct 26, 12:12 pm, Timothy Perrett wrote:
> 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 200
Hi Lifters,
Is there a way to automatically generate a Diagram (e.g. UML) from
existing source files, that shows composition, association, class
attributes, methods, etc.?
thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
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 must
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
wrote:
> There are parts of a comet component that may not change on every "render"
> of the component. For examp
On Mon, Oct 26, 2009 at 11:43 AM, GA wrote:
> I have made a test that worked. I have modified my code like this:
>
> newUser.save
> newUser.devices += newDevice
> newUser.save
>
> The newDe
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 = U
http://github.com/dpp/liftweb/blob/master/lift-examples/example/src/main/scala/net/liftweb/example/comet/Chat.scala
On Mon, Oct 26, 2009 at 11:43 AM, Peter Robinett wrote:
>
> fixedRender sounds very useful and was something I didn't know about.
> How do you use it? Do you call render from within
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 Barrows wrote:
On Mon, Oct 26, 2009 at 11:43 AM, GA wrote:
> I h
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
wrote:
> http://github.com/dpp/liftweb/blob/master/lift-examples/example/src/m...
>
> On Mon, Oc
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, "Neil
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 hole.
Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lif
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 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 hole.
>
> Mark
--~
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 github.
David Pollak writes:
> On Mon, Oct 26, 2009 at 9:52 AM, Jeppe Nejsum Madsen wrote:
>
>>
>> David Pollak 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
>> > interest
"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 wrote:
> "Listing 2.7: The Embedded Expense Table" in the LiftBook.pdf, page
>
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
Thanks, Indrajit. I created the ticket here:
http://github.com/dpp/liftweb/issues/#issue/135
Peter
On Oct 26, 12:57 pm, Indrajit Raychaudhuri
wrote:
> Yes please, file a ticket.
>
> Just noticed, oddly flotDemo isn't part of the reactor either (not
> listed as sub-module for lift-examples). Wo
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 wrote:
>
> 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.
OneToMany it make
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 = {
{columns.map{{_}}.reduceLeft(_+_)) }
}
but i
What do you mean by that? Every primary key is unique.
-
Jim Barrows wrote:
On Mon, Oct 26, 2009 at 12:05 PM, Naftoli Gugenheim wrote:
>
> It would be feasible to refactor ManyToMany to remove this restriction.
> OneToMany does not require either side to be s
Thanks Ross
On Oct 27, 2:33 am, Ross Mellgren 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(
bob 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 in a templa
On Mon, Oct 26, 2009 at 12:20 PM, Peter Robinett wrote:
>
> 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
> wrote:
> > http
On Mon, Oct 26, 2009 at 2:36 PM, Naftoli Gugenheim wrote:
>
> 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.
---- ---
|Table1|->|Pivot|<
that's nice. thank you
On Oct 26, 6:04 pm, Jeppe Nejsum Madsen wrote:
> bob 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, a
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 Barrows wrote:
On Mon, Oct 26, 2009 at 2:36 PM, Naftoli Gugenheim wrote:
On Mon, Oct 26, 2009 at 3:42 PM, Naftoli Gugenheim wrote:
>
> 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.
>
Yes, the pivot table has 2 foreign keys as it's p
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 code
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
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 wrote:
> 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 merge off master, pl
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 wrote:
>
>> Folks,
>>
>> may I suggest cutting a Lift 1.1 Milestone 7 branch and deploy from that?
>> (It'd eliminate the potential problems of synchronizing o
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( By
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, SetHtml("editcold
Could someone fix #121 (loginRedirect using S.uri; not getting part after '?')
-
David Pollak wrote:
On Mon, Oct 26, 2009 at 4:24 PM, Viktor Klang wrote:
> Folks,
>
> may I suggest cutting a Lift 1.1 Milestone 7 branch and deploy from that?
> (It'd eliminate
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 quir
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 createCo
Hi,
2009/10/27 sunanda
>
> Hi,
> I need to retain the value of gridid throughout the session.
>
Then use a SessionVar instead of a RequestVar.
Heiko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
T
81 matches
Mail list logo